$(document).ready(  
	function()
	{			

    $("th").mousemove(function()
    {
	  var element_index = $(this).parent().children().index(this);
    var b = $(this).parent().parent().children().length-1; 
    $(this).addClass("active");
    for ( var i=1 ; i<=b ; i++ ) { $(this).parent().parent().children().eq(i).children().eq(element_index).addClass('active'); }
  	});
    
    $("th").mouseout(function()
    { 
    $("table th").removeClass("active");
    $("table td").removeClass('active');
  	});  
  	  	
    $("td:first-child").mousemove(function()
    {
    $(this).parent().children().addClass("active");
  	});
    
    $("td:first-child").mouseout(function()
    { 
    $(this).parent().children().removeClass("active");
  	});


  			
	}); 
	
	
	
	
	


	




    
