// javascript file

// Correctif de l'affichage des images PNG dans IE5.5 et IE6 (transparent pour les autres navigateurs).
// V1.1 par Brice de Villeneuve, http://www.boursica.com/
// Licence : freeware, librement utilisable du moment que vous laissez ces commentaires dans votre source.
// Mettre ce script dans le head et dans les balises IMG ajouter simplement : onload='setpng(this)'
// Si l'image n'est pas visible (display:none par exemple), appeler la fonction juste après l'affichage de l'image
// dans un javascript avec, par exemple, un setpng(document.getElementById('idDeMonImage');

function setpng(img) { 

	if (document.all && (IEver=parseFloat(navigator.appVersion.split("MSIE")[1])) && (IEver>=5.5) && (IEver<7) && document.body.filters && img)
	{
		imgName=img.src.toUpperCase();
		
		if (imgName.substring(imgName.length-3,imgName.length)=="PNG") img.outerHTML="<span "+(img.id?"id='"+img.id+"' ":"")+(img.className?"class='"+img.className+"' ":"")+(img.title?"title=\""+img.title+"\" ":"")+"style=\"width:"+img.width+"px;height:"+img.height+"px;"+(img.align=="left"?"float:left;":(img.align=="right"?"float:right;":""))+(img.parentElement.href?"cursor:hand;":"")+"display:inline-block;"+img.style.cssText+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.src+"',sizingMethod='scale');\"></span>";
		
	}
	
}



// Fonctions sur le sous-menu FR

function Show_ss_menu_produits() {
	
	var ss_menu_produits = document.getElementById("ss_menu_produits");
	
	if (typeof timer_produits != "undefined")
	{
		clearInterval(timer_produits);
	}
	
	ss_menu_produits.style.display = "block";
}

function Hide_ss_menu_produits() {
	
	timer_produits = setInterval(function() {document.getElementById("ss_menu_produits").style.display = "none"; clearInterval(timer_produits);},300);
}

function Yes_ss_menu_produits() {
	
	var ss_menu_produits = document.getElementById("ss_menu_produits");
	
	if (typeof timer_produits != "undefined")
	{
		clearInterval(timer_produits);
	}
	
	ss_menu_produits.style.display = "block";
}

function No_ss_menu_produits() {
	
	timer_produits = setInterval(function() {document.getElementById("ss_menu_produits").style.display = "none"; clearInterval(timer_produits);},300);
}

function Show_ss_menu_societe() {
	
	var ss_menu_societe = document.getElementById("ss_menu_societe");
	
	if (typeof timer_societe != "undefined")
	{
		clearInterval(timer_societe);
	}
	
	ss_menu_societe.style.display = "block";
}

function Hide_ss_menu_societe() {
	
	timer_societe = setInterval(function() {document.getElementById("ss_menu_societe").style.display = "none"; clearInterval(timer_societe);},300);
}

function Yes_ss_menu_societe() {
	
	var ss_menu_societe = document.getElementById("ss_menu_societe");
	
	if (typeof timer_societe != "undefined")
	{
		clearInterval(timer_societe);
	}
	
	ss_menu_societe.style.display = "block";
}

function No_ss_menu_societe() {
	
	timer_societe = setInterval(function() {document.getElementById("ss_menu_societe").style.display = "none"; clearInterval(timer_societe);},300);
}

// Fonctions sur le sous-menu NL

function Show_ss_menu_produits_nl() {
	
	var ss_menu_produits_nl = document.getElementById("ss_menu_produits_nl");
	
	if (typeof timer_produits != "undefined")
	{
		clearInterval(timer_produits);
	}
	
	ss_menu_produits_nl.style.display = "block";
}

function Hide_ss_menu_produits_nl() {
	
	timer_produits = setInterval(function() {document.getElementById("ss_menu_produits_nl").style.display = "none"; clearInterval(timer_produits);},300);
}

function Yes_ss_menu_produits_nl() {
	
	var ss_menu_produits_nl = document.getElementById("ss_menu_produits_nl");
	
	if (typeof timer_produits != "undefined")
	{
		clearInterval(timer_produits);
	}
	
	ss_menu_produits_nl.style.display = "block";
}

function No_ss_menu_produits_nl() {
	
	timer_produits = setInterval(function() {document.getElementById("ss_menu_produits_nl").style.display = "none"; clearInterval(timer_produits);},300);
}


// Fonctions sur le sous-menu UK

function Show_ss_menu_produits_uk() {
	
	var ss_menu_produits_uk = document.getElementById("ss_menu_produits_uk");
	
	if (typeof timer_produits != "undefined")
	{
		clearInterval(timer_produits);
	}
	
	ss_menu_produits_uk.style.display = "block";
}

function Hide_ss_menu_produits_uk() {
	
	timer_produits = setInterval(function() {document.getElementById("ss_menu_produits_uk").style.display = "none"; clearInterval(timer_produits);},300);
}

function Yes_ss_menu_produits_uk() {
	
	var ss_menu_produits_uk = document.getElementById("ss_menu_produits_uk");
	
	if (typeof timer_produits != "undefined")
	{
		clearInterval(timer_produits);
	}
	
	ss_menu_produits_uk.style.display = "block";
}

function No_ss_menu_produits_uk() {
	
	timer_produits = setInterval(function() {document.getElementById("ss_menu_produits_uk").style.display = "none"; clearInterval(timer_produits);},300);
}


