	$j(document).ready(function(){
	
	
	$j(".tabella th:nth-child(odd)").addClass("alts");
	//$j("tr").find('td:first').addClass("tLeft");
	$j(".tabella tr").find('td:first').css("border-left","0");
		
	$j(".tabella tr:nth-child(odd)").addClass("odd");
	$j(".tabella tr").mouseover(function() {$j(this).addClass("over");}).mouseout(function() {$j(this).removeClass("over");});

	$j(".tabella table").find("th:first").css({background:"url("+root+"moduli/tariffe/img/bgTh1.jpg) no-repeat left top"});
	
	
	$j(".tabella tfoot td").css({background:"url("+root+"moduli/tariffe/img/bgTf.jpg) no-repeat center",color:"#fff", fontWeight:"bold" });
	
	
	$j(".tabella tfoot").find("td:first").css({background:"url("+root+"moduli/tariffe/img/bgTf.jpg) no-repeat left"});	
		
		
		
	$j(".tabella tfoot").find("td:last").css({background:"url("+root+"moduli/tariffe/img/bgTf.jpg) no-repeat right"});	
	
	
	var isLight=($j(".tabella table").find("th:last").attr("class")=="alts");

	if (isLight) $j(".tabella table").find("th:last").css("background","url("+root+"moduli/tariffe/img/bgTh1.jpg) no-repeat right top");
	else $j(".tabella table").find("th:last").css("background","url("+root+"moduli/tariffe/img/bgTh2.jpg) no-repeat right top");
	
	$j(".tabella").find("th:first").css("border-left","0");
	$j(".tabella").find("thead tr").css("background","none");
	
	
	
	});