var currenttab = "#tab2";
$(function() {
   $(".tab-content ul li").hover(function() {
	   var s = this.id.substring(2,this.id.length);
	   $('#b_'+s).toggleClass("active");
       $(this).find(".hover").animate({ opacity: 'toggle' });
   });
   
    
   
    $("#list ul li a").hover(function() {
		var s = this.id.substring(2,this.id.length);
		if(currenttab == "#tab2")
		{
	   $('#t_'+ s).find(".hover").animate({ opacity: 'toggle' });
		}
		else
		{
	   $('#l_'+ s).find(".hover").animate({ opacity: 'toggle' });
		}
   });
    
});



