jQuery(function() {

// Categories Sidebar Ease
jQuery(".inner li a").bind("mouseenter",function(){ 
          jQuery(this).stop().animate({backgroundColor: "#eee", paddingLeft:25 }, 400, "swing");
          jQuery(this).children('.count').fadeIn(); 
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({backgroundColor: "#ffffff", paddingLeft:15 }, 600, "swing");
            jQuery(this).children('.count').fadeOut();
       });
 });


// Letter Clickable li
$(document).ready(function(){
						   
	$(".sample-letter li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});

});

// Home Panels Clickable
$(document).ready(function(){
						   
	$(".home-feat-panel-cont").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});

});

//Back to top slider
jQuery(document).ready(function(){

	jQuery('#upTop').click(function() {  
		jQuery('body,html').animate({scrollTop:0},800);  
	}); 
   
});

// Home Page Tabber
var lastTabId = 1;
function tab_switch(id)
{
	document.getElementById('featured-tab-panel' + lastTabId).style.display = 'none';
	document.getElementById('featured-tab-panel' + id).style.display = 'block';
	lastTabId = id;
	
	var ourTabs = document.getElementById('tab-links').getElementsByTagName("li");
	
	for(var i = 0; i < ourTabs.length; i++)
	{
		if ((i + 1) == id)
		{
			ourTabs[i].className = 'tabOn' + (i+1);
		}
		else
		{
			ourTabs[i].className = 'tab' + (i+1);
		}
	}
}


