// JavaScript Document
//var strWWWDomain="localhost";
//var lid="1";
function showSub(A){
	$(this).addClass("hover");
	$("#col"+$(this).attr("id")+" img[osrc!='']").each(function(){
				$(this).attr("src",$(this).attr("osrc"))});
	$("#col"+$(this).attr("id")).show()}function hideSub(A){
		$(this).removeClass("hover");
		$("#col"+$(this).attr("id")).hide()
}


function initSiteHeader(){
	
	$("#menunav li[id^=tab]").bind("mouseenter",showSub);
	$("#menunav li[id^=tab]").bind("mouseleave",hideSub);
	
	//initHeaderTracking();
	
																														
	$("#sousmns").load('includes/panneau3cols.php',function(){
																											 
		$("#sousmnsp").load("includes/panneau4cols.php",function(){
																														
			
			$("#header .sousmn").bind("mouseenter",function(){
															
				$("#"+$(this).attr("id").substr(3)).addClass("hover");
				
			$(this).show()
			});
			
			$("#header .sousmn").bind("mouseleave",function(){
					$("#"+$(this).attr("id").substr(3)).removeClass("hover");
					$(this).hide()});
			
					//initHeaderSubTracking()
			})
	});
	
	

	
}
function initSiteHeader2(){

	$("#menunav2 li[id^=tab]").bind("mouseenter",showSub);
	$("#menunav2 li[id^=tab]").bind("mouseleave",hideSub);
	
		$("#sousmns2").load('includes/panneau2-3cols.php',function(){
																											 
		$("#sousmnsp2").load("includes/panneau2-4cols.php",function(){
																														
			
			$("#header2 .sousmn").bind("mouseenter",function(){
															
				$("#"+$(this).attr("id").substr(3)).addClass("hover");
				
			$(this).show()
			});
			
			$("#header2 .sousmn").bind("mouseleave",function(){
					$("#"+$(this).attr("id").substr(3)).removeClass("hover");
					$(this).hide()});
			
					//initHeaderSubTracking()
			})
	});
}
		
$(document).ready(function(){
	initSiteHeader();
	initSiteHeader2();
});



