/* jQuery(document).ready(function(){

 function tabSwitch(new_tab, new_content) {  
   
     jQuery('contact-us-tab').style.visibility = 'hidden';  
     jQuery('where-to-find-us-tab').style.visibility = 'hidden';   
     jQuery(new_content).style.visibility = 'visible';     
 
     jQuery('tab_1').className = '';  
     jQuery('tab_2').className = '';  
     jQuery(new_tab).className = 'active';        
   
 }
 
 jQuery('#content-tab-box #tab_1').tabSwitch();;
 jQuery('#content-tab-box #tab_2').tabSwitch();
 
 javascript:tabSwitch('tab_1', 'contact-us-tab');
 javascript:tabSwitch('tab_2', 'where-to-find-us-tab');
 
}); */


jQuery(document).ready(function() {

	//When page loads...
	//jQuery(".tab-content").hide(); //Hide all content
	jQuery(".tab-content").css('visibility','hidden'); //Hide all content
	jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
	//jQuery(".tab-content:first").show(); //Show first tab content
	jQuery(".tab-content:first").css('visibility','visible'); //Show first tab content

	//On Click Event
	jQuery("ul.tabs li").click(function() {

		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		//jQuery(".tab-content").hide(); //Hide all tab content
		jQuery(".tab-content").css('visibility','hidden'); //Hide all tab content

		var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		//jQuery(activeTab).fadeIn(); //Fade in the active ID content
		jQuery(activeTab).css('visibility','visible'); //Fade in the active ID content
		return false;
	});

});
