﻿$(document).ready(function() {
    $(".tab-content").hide();
    $(".tab-content:first").show();

    $(".tabs ul li a").click(function(e) {
        var contentSelector = $(this).attr("href");

        //hide and reset tabs
        $(".tab-content").hide();
        $(".tabs ul li").removeClass("activetab");

        //show the right tab
        $(this).parent().addClass("activetab");
        $(contentSelector).show();

        e.preventDefault();
    });
});