﻿$(document).ready(function(){
$('#HomePagetabs .tabbedDiv').hide(); // Hide all divs
$('#HomePagetabs #Tab_Special').show(); // Show the first div
$('#HomePagetabs ul li:first').addClass('active'); //Set the first link's class to active
$('#HomePagetabs ul li a').click(function(){ //When any link is clicked
$('#HomePagetabs ul li').removeClass('active'); // Remove active class from all links
$(this).parent().addClass('active'); //Set clicked link class to active
var currentTab = $(this).attr('href'); // Set variable currentTab
$("#HomePagetabs .tabbedDiv:visible").hide(); //fade out visible div
$(currentTab).show(); //fade in target div
return false;
});
 });

//$(document).ready(function(){
//$('#tabs .tabbedDiv').hide(); // Hide all divs
//$('#tabs #Tab_FeaturedItems').show(); // Show the first div
//$('#tabs ul li:first').addClass('active'); //Set the first link's class to active
//$('#tabs ul li a').click(function(){ //When any link is clicked
//$('#tabs ul li').removeClass('active'); // Remove active class from all links
//$(this).parent().addClass('active'); //Set clicked link class to active
//var currentTab = $(this).attr('href'); // Set variable currentTab
//$("#tabs .tabbedDiv:visible").fadeOut("slow",function(){ //fade out visible div
//$(currentTab).fadeIn("slow") //fade in target div
//});return false;
//});
//});



//$(document).ready(function(){
//$('#producttabs .tabbedDiv').hide(); // Hide all divs

////***
//var section = $.query.get('section');
////alert (section);
//if (section == 'reviews'){
// $('#producttabs .tabbedDiv:last').show(); // Show the first div
//$('#producttabs ul.thingy li:last').addClass('active'); //Set the first link's class to active

//}
////***

//else {
//$('#producttabs .tabbedDiv:first').show(); // Show the first div
//$('#producttabs ul.thingy li:first').addClass('active'); //Set the first link's class to active
//}

//$('#producttabs ul.thingy li a').click(function(){ //When any link is clicked
//$('#producttabs ul.thingy li').removeClass('active'); // Remove active class from all links
//$(this).parent().addClass('active'); //Set clicked link class to active
//var currentTab = $(this).attr('href'); // Set variable currentTab
//$("#producttabs .tabbedDiv:visible").fadeOut("slow",function(){ //fade out visible div
//$(currentTab).fadeIn("slow") //fade in target div


//});return false;
//});
//});


//  
//  


