// JavaScript Document
var $k = jQuery.noConflict();
$k(document).ready(function(){
    $k('#tabs div#tab-1').hide(); // Hide all divs
    $k('#tabs div#tab-2').hide();
    $k('#tabs div#tab-3').hide(); // Hide all divs
    $k('#tabs div#tab-4').hide();
    $k('#tabs div:first').show(); // Show the first div
    $k('ul.tabList li:first').addClass('active'); // Set the class of the first link to active
    $k('ul.tabList li a').click(function(){ //When any link is clicked
        $k('ul.tabList li').removeClass('active'); // Remove active class from all links
        $k(this).parent().addClass('active'); //Set clicked link class to active
        var currentTab = $k(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
        $k('#tabs div#tab-1').hide('fast'); // Hide all divs
        $k('#tabs div#tab-2').hide('fast');
        $k('#tabs div#tab-3').hide('fast');
        $k('#tabs div#tab-4').hide('fast');
        $k(currentTab).show('slow'); // Show div with id equal to variable currentTab
        return false;
    });
});
