/////////////////////////////////////////////////////////////////////////////////
function getLeft(MyObject){
	if (MyObject.offsetParent)
		return (MyObject.offsetLeft + getLeft(MyObject.offsetParent));
	else 
		return (MyObject.offsetLeft);
} 
 
/////////////////////////////////////////////////////////////////////////////////
function getTop(MyObject){
	if (MyObject.offsetParent)
		return (MyObject.offsetTop + getTop(MyObject.offsetParent));
	else
		return (MyObject.offsetTop);
}

function afficheMenuTop(nParamMenu){
	$("#produit_courant").blur();
	switch(nParamMenu){
		case 1: //menu produit
			document.getElementById('id_top_produit').style.backgroundColor = "#ffffff";
			document.getElementById('puce_top_produit').src = '/images/site/puce/puce_fleche_orange_basse.gif';
			$("#id_top_produit a").css("color","#F98722");
			break;
		case 2 : //lp
			document.getElementById('id_top_livre_photo').style.backgroundColor = "#ffffff";	
			$("#id_top_livre_photo a").css("color","#0383B8");			
			break;
		case 3 : //tirage
			document.getElementById('id_top_tirage').style.backgroundColor = "#ffffff";
			$("#id_top_tirage a").css("color","#6CAF15");
			break;
			
		case 4 : //deco
			document.getElementById('id_top_deco').style.backgroundColor = "#ffffff";
			$("#id_top_deco a").css("color","#791360");
			break;
	}

	clearInterval(oMenuTransition);
	oMenuTransition = setInterval("afficheMenuTop2(" + nParamMenu + ")", nTimerViewMenu);
}

function afficheMenuTop2(nParamMenu){
	cacheMenuTop2();
	switch(nParamMenu){
		case 1: //menu produit
			document.getElementById('top_menu_produit').style.display = "block";				
			break;
		case 2 : //lp
			document.getElementById('top_menu_livre_photo').style.display = "block";
			break;
		case 3 : //tirage
			document.getElementById('top_menu_tirage').style.display = "block";
			break;
		case 4 : //deco
			document.getElementById('top_menu_deco').style.display = "block";
			break;
	}
}

function cacheMenuTop(){
	document.getElementById('id_top_livre_photo').style.backgroundColor = "transparent";
	document.getElementById('id_top_tirage').style.backgroundColor = "transparent";
	document.getElementById('id_top_produit').style.backgroundColor = "transparent";
	document.getElementById('id_top_deco').style.backgroundColor = "transparent";
	document.getElementById('puce_top_produit').src = '/images/site/puce/puce_fleche_noire.gif';
	
	$("#id_top_produit a").css("color","#000000");
	$("#id_top_livre_photo a").css("color","#313131");
	$("#id_top_tirage a").css("color","#313131");
	$("#id_top_deco a").css("color","#313131");

	clearInterval(oMenuTransition);
	oMenuTransition = setInterval("cacheMenuTop2()", nTimerUnviewMenu);
}

function cacheMenuTop2(){
	document.getElementById('top_menu_produit').style.display="none";
	document.getElementById('top_menu_livre_photo').style.display="none";
	document.getElementById('top_menu_tirage').style.display="none";
	document.getElementById('top_menu_deco').style.display="none";
}

function HoverMenuLivre(nParamId, nParamPrix, nParamPrixSansPromo){
	var sHtml;
	
	//la classe du menu en cours
	if(document.getElementById("menu_livre_" + nHoverLivre).className.indexOf("menu_titre_livre") > -1)
		document.getElementById("menu_livre_" + nHoverLivre).className = "menu_titre_livre";
	else
		document.getElementById("menu_livre_" + nHoverLivre).className = "menu_livre";

	switch(nParamId){
		case 1:			
			sHtml = '<b>GAMME STYLE</b><br /><div class="texte-layer"><i>Couverture souple et personnalisable.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/mini-livre-photo-style.asp"><img src="/images/site/menu/produit/mini-livre-style.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 2:
			sHtml = '<b>GAMME STYLE</b><br /><div class="texte-layer"><i>Couverture souple et personnalisable.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-style-carre.asp"><img src="/images/site/menu/produit/livre-style-carre.jpg" width="300" height="270" alt="" /></a>';
			if(nParamPrix > 0)
				sHtml += '<br /><strong>A partir de </strong>';				
			break;
		case 3:			
			sHtml = '<b>GAMME STYLE</b><br /><div class="texte-layer"><i>Couverture souple et personnalisable.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-style-portrait.asp"><img src="/images/site/menu/produit/livre-style-portrait.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 4:
			sHtml = '<b>GAMME ELEGANCE</b><br /><div class="texte-layer"><i>Des dizaines de couvertures au choix,<br />avec fenêtre 7x9.5 cm.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-elegance-paysage.asp"><img src="/images/site/menu/produit/livre-elegance-paysage.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 5:			
			sHtml = '<b>GAMME MODERNE</b><br /><div class="texte-layer"><i>Couverture rigide matelassée et personnalisable,<br />avec ou sans ruban.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-moderne-carre.asp"><img src="/images/site/menu/produit/livre-molletonne-carre.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 6:			
			sHtml = '<b>GAMME MODERNE</b><br /><div class="texte-layer"><i>Couverture rigide matelassée et personnalisable,<br />avec ou sans ruban.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-moderne-carre-XL.asp"><img src="/images/site/menu/produit/livre-molletonne-carre-xl.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 7:		
			sHtml = '<b>GAMME PRESTIGE</b><br /><div class="texte-layer"><i>Couverture rigide et personnalisable,<br />pages intérieures vernies.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-prestige-paysage.asp"><img src="/images/site/menu/produit/livre-prestige-paysage.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 8:			
			sHtml = '<b>GAMME PRESTIGE</b><br /><div class="texte-layer"><i>Couverture rigide et personnalisable,<br />pages intérieures vernies.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo-prestige-carre-XL.asp"><img src="/images/site/menu/produit/livre-prestige-carre-xl.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 9:			
			sHtml = '<b>Album photo de poche</b><br /><div class="texte-layer"><i>Format compact, coloris d\'étui au choix</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/album-photo-poche.asp"><img src="/images/site/menu/produit/album-photo-poche.jpg" width="300" height="270" alt="" /></a><br /><strong>Prix : </strong>';
			break;
		case 10:			
			sHtml = '<b>Book photo</b><br /><div class="texte-layer"><i>Couverture au choix,<br />pages intérieures sur papier photo</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/book-photo.asp"><img src="/images/site/menu/produit/book.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';
			break;
		case 11:
			sHtml = '<b>LIVRE PHOTO</b><br /><div class="texte-layer"><i>Vos photos dans un vrai livre, 100% personnalisé</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo/livre-photo.asp"><img src="/images/site/menu/produit/livre-photo.jpg" width="300" height="270" alt="" /></a><br /><strong>A partir de </strong>';			
			break;
		case 12:
			sHtml = '<b>LIVRE PHOTO FACILE</b><br /><div class="texte-layer"><i>Un livre qui vous ressemble en 3 étapes !</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-facile.asp"><img src="/images/site/menu/produit/livre-photo-facile.jpg" width="300" height="270" alt="album photo imprimé et relié" /></a>';			
			break;
		case 13:
			sHtml = '<b>LIVRE PHOTO FACILE VOYAGE</b><br /><div class="texte-layer"><i>Un livre pré-rempli pour mettre en scène les souvenirs de votre dernier voyage.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-vacances-voyages.asp"><img src="/images/site/menu/produit/livre-photo-facile-voyages.jpg" width="300" height="270" alt="album photo imprimé et relié voyage" /></a>';
			break;
		case 14:
			sHtml = '<b>LIVRE PHOTO FACILE DE L\'ANNÉE</b><br /><div class="texte-layer"><i>Un livre pré-rempli pour raconter en images tous les moments forts de l’année.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-annee.asp"><img src="/images/site/menu/produit/livre-photo-facile-annee.jpg" width="300" height="270" alt="album photo imprimé et relié de l\'année" /></a>';
			break;
		case 15:
			sHtml = '<b>LIVRE PHOTO FACILE NAISSANCE</b><br /><div class="texte-layer"><i>Un livre pré-rempli pour revivre tous les souvenirs de la 1ère année de votre enfant.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-naissance.asp"><img src="/images/site/menu/produit/livre-photo-facile-naissance.jpg" width="300" height="270" alt="album photo imprimé et relié naissance" /></a>';
			break;
		case 16:
			sHtml = '<b>LIVRE PHOTO FACILE MARIAGE</b><br /><div class="texte-layer"><i>Un livre pré-rempli pour revivre en images le plus beau jour de votre vie.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-mariage.asp"><img src="/images/site/menu/produit/livre-photo-facile-mariage.jpg" width="300" height="270" alt="album photo imprimé et relié mariage" /></a>';
			break;
		case 17:
			sHtml = '<b>LIVRE PHOTO FACILE RECETTES</b><br /><div class="texte-layer"><i>Un livre pré-rempli pour rassembler vos recettes préférées.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-recettes.asp"><img src="/images/site/menu/produit/livre-photo-facile-recettes.jpg" width="300" height="270" alt="album photo imprimé et relié recettes" /></a>';
			break;
		case 18:
			sHtml = '<b>LIVRE PHOTO FACILE SAINT VALENTIN</b><br /><div class="texte-layer"><i>Un livre pré-rempli pour souhaiter une bonne Saint Valentin en images.</i></div>';
			sHtml += '<br /><a href="/produit/livre-photo-facile/livre-photo-recettes.asp"><img src="/images/site/menu/produit/livre-photo-saint-valentin.jpg" width="300" height="270" alt="album photo imprimé et relié recettes" /></a>';
			break;
	}
	
	if(nParamPrix > 0){
		if(nParamPrixSansPromo == nParamPrix)
			sHtml += '<span class="prix-livre">' + (String)(nParamPrix.toFixed(2)).replace(".",",") + ' €</span>';
		else
			sHtml += '<span class="prix-livre">' + (String)(nParamPrix.toFixed(2)).replace(".",",") + ' €</span>&nbsp; <sup style="text-decoration: line-through;">' + (String)(nParamPrixSansPromo.toFixed(2)).replace(".",",") + '€</sup>';
	}
	
	//affiche l'image de présentation
	document.getElementById("top_menu_livre_photo_presentation").innerHTML = sHtml;
	
	nHoverLivre = nParamId;
	
	//la classe du menu en cours
	if(document.getElementById("menu_livre_" + nHoverLivre).className.indexOf("menu_titre_livre") > -1)
		document.getElementById("menu_livre_" + nHoverLivre).className = "menu_titre_livre_selected";
	else
		document.getElementById("menu_livre_" + nHoverLivre).className = "menu_livre_selected";
			
}

/// fonction pour le menu déco
function HoverMenuDeco(nParamId, nParamPrix, nParamPrixSansPromo){
	var sHtml;
	
	if(document.getElementById("menu_deco_" + nHoverDeco).className.indexOf("menu_titre_deco") > -1)
		document.getElementById("menu_deco_" + nHoverDeco).className = "menu_titre_deco";
	else
		document.getElementById("menu_deco_" + nHoverDeco).className = "menu_deco";
	
	switch(nParamId){
		case 1:
			sHtml = '<b>PELE-MÊLE CRÉATIF</b><br /><div class="texte-layer"><i>Vos photos préférées assemblées en un clic.</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/pele-mele-photo-creatif.asp"><img src="/images/site/menu/produit/pele-mele-photo-creatif.jpg" width="300" height="270" alt="Pêle-mêle créatif" /></a><br /><strong>A partir de</strong> ';
			break;
		case 2:			
			sHtml = '<b>PELE-MÊLE PATCHWORK</b><br /><div class="texte-layer"><i>Assemblez photos et éléments graphiques pour créer votre patchwork de souvenirs.</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/pele-mele-photo-patchwork.asp"><img src="/images/site/menu/produit/pele-mele-photo-patchwork.jpg" width="300" height="270" alt="Pêle-mêle patchwork" /></a><br /><strong>A partir de</strong> ';
			break;
		case 3:
			sHtml = '<b>PHOTO MOSAÏQUE</b><br /><div class="texte-layer"><i>Votre cliché préféré composé d\'une mosaïque de vos photos : une idée déco ludique et originale !</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/photo-mosaique.asp"><img src="/images/site/menu/produit/photo-mosaique.jpg" width="300" height="270" alt="Photo mosaïque" /></a><br /><strong>A partir de</strong> ';
			break;
		case 4:			
			sHtml = '<b>TABLEAU PHOTO ALU &amp; PVC</b><br /><div class="texte-layer"><i>Votre poster contrecollé sur une plaque de PVC <br />ou d\'Alu, prêt à accrocher.</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tableau-photo.asp"><img src="/images/site/menu/produit/tableau-photo.jpg" width="300" height="270" alt="Tableau photo Alu &amp; PVC" /></a><br /><strong>A partir de</strong> ';
			break;
		case 5:			
			sHtml = '<b>TABLEAU PHOTO PLEXI</b><br /><div class="texte-layer"><i>Votre poster collé sous une plaque de Plexi,<br /> prêt à accrocher.</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tableau-photo-plexi.asp"><img src="/images/site/menu/produit/tableau-photo-plexi.jpg" width="300" height="270" alt="Tableau photo Plexi" /></a><br /><strong>A partir de</strong> ';
			break;
		case 6:		
			sHtml = '<b>PHOTO SUR TOILE</b><br /><div class="texte-layer"><i>Votre photo imprimée sur une toile et tendue sur un châssis en bois… une véritable œuvre d\'art ! </i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/photo-sur-toile.asp"><img src="/images/site/menu/produit/photo-sur-toile.jpg" width="300" height="270" alt="Photo sur toile" /></a><br /><strong>A partir de</strong> ';
			break;
		case 7:
			sHtml = '<b>DECO PHOTO</b><br /><div class="texte-layer"><i>Mettez en valeur vos plus belles photos et personnalisez votre déco !</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/deco-photo.asp"><img src="/images/site/menu/produit/deco-photo.jpg" width="300" height="270" alt="Gamme déco" /></a><br /><strong>A partir de </strong>';
			break;
		case 8:
			sHtml = '<b>STICKER PHOTO REPOSITIONNABLE</b><br /><div class="texte-layer"><i>Collez, décollez, recollez vos photos autant de fois que vous le voulez !</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/deco-photo.asp"><img src="/images/site/menu/produit/sticker-photo-repositionnable.jpg" width="300" height="270" alt="Sticker photo repositionnable" /></a><br /> A partir de ';
			break;
		}
		
	if(nParamPrix > 0){
		if(nParamPrixSansPromo == nParamPrix)
			sHtml += '<span class="prix-deco">' + (String)(nParamPrix.toFixed(2)).replace(".",",") + ' €</span>';
		else
			sHtml += '<span class="prix-deco">' + (String)(nParamPrix.toFixed(2)).replace(".",",") + ' €</span>&nbsp; <sup style="text-decoration: line-through;">' + (String)(nParamPrixSansPromo.toFixed(2)).replace(".",",") + '€</sup>';
	}
		
	
	//affiche l'image de présentation
	document.getElementById("top_menu_deco_presentation").innerHTML = sHtml;
	
	nHoverDeco = nParamId;

	//classe du menu en cours
	if(document.getElementById("menu_deco_" + nHoverDeco).className.indexOf("menu_titre_deco") > -1)
		document.getElementById("menu_deco_" + nHoverDeco).className = "menu_titre_deco_selected";
	else
		document.getElementById("menu_deco_" + nHoverDeco).className = "menu_deco_selected";
}

function HoverMenuTirage(nParamId, nParamPrix, nParamPrixSansPromo){
	var sHtml;	
	
	//la classe du menu en cours
	if(document.getElementById("menu_tirage_" + nHoverTirage).className.indexOf("menu_titre_tirage") > -1)
		document.getElementById("menu_tirage_" + nHoverTirage).className = "menu_titre_tirage";
	else
		document.getElementById("menu_tirage_" + nHoverTirage).className = "menu_tirage";
	
	switch(nParamId){
		case 1:			
			sHtml = '<b>TIRAGE CLASSIQUE</b><br /><div class="texte-layer"><i>Le meilleur pour vos développements photo,<br/>un choix et une qualité inégalés...</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tirage-photo-classique.asp"><img src="/images/site/menu/produit/tirage-photo-classique.jpg" width="300" height="270" alt="développement et tirage photo classique" /></a><br /><strong>A partir de</strong> ';
			break;
		case 2:
			sHtml = '<b>TIRAGE ECONOMIQUE</b><br /><div class="texte-layer"><i>Le prix le plus bas pour développer toutes vos photos...</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tirage-photo-economique.asp"><img src="/images/site/menu/produit/tirage-photo-economique.jpg" width="300" height="270" alt="développement et tirage photo classique économique" /></a><br /><strong>A partir de</strong> ';
			break;
		case 3:			
			sHtml = '<b>POSTERS ET PANORAMIQUES</b><br /><div class="texte-layer"><i>Le développement de vos photos en grand format !</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tirage-photo-agrandissement-poster.asp"><img src="/images/site/menu/produit/poster-photo.jpg" width="300" height="270" alt="agrandissement photo et poster" /></a><br /><strong>A partir de</strong> ';
			break;
		case 4:		
			sHtml = '<b>TABLEAU PHOTO ALU &amp; PVC</b><br /><div class="texte-layer"><i>Votre poster contrecollé sur une plaque de PVC <br />ou d\'Alu, prêt à accrocher.</i></div>';
			sHtml += '<br /><a href="/produit/tirage/tableau-photo/tableau-photo.asp"><img src="/images/site/menu/produit/tableau-photo.jpg" width="300" height="270" alt="tableau photo alu & pvc" /></a><br /><strong>A partir de</strong> ';
			break;
		case 5:
			sHtml = '<b>TIRAGE PHOTO</b><br /><div class="texte-layer"><i>Un développement photo de qualité au meilleur prix !</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tirage-photo.asp"><img src="/images/site/menu/produit/tirage-photo.jpg" width="300" height="270" alt="" /></a></div><br /><strong>A partir de </strong>';			
			break;
		case 6:			
			sHtml = '<b>TABLEAU PHOTO PLEXI</b><br /><div class="texte-layer"><i>Votre poster collé sous une plaque de plexi, <br />prêt à accrocher.</i></div>';
			sHtml += '<br /><a href="/produit/developpement-photo/tableau-photo-plexi.asp"><img src="/images/site/menu/produit/tableau-photo-plexi.jpg" width="300" height="270" alt="tableau photo plexi" /></a><br /><strong>A partir de</strong> ';			
			break;
		}
		
	if(nParamPrix > 0){
		if(nParamPrixSansPromo == nParamPrix)
			sHtml += '<span class="prix-tirage">' + (String)(nParamPrix.toFixed(2)).replace(".",",") + ' €</span>';
		else
			sHtml += '<span class="prix-tirage">' + (String)(nParamPrix.toFixed(2)).replace(".",",") + ' €</span>&nbsp; <sup style="text-decoration: line-through;">' + (String)(nParamPrixSansPromo.toFixed(2)).replace(".",",") + '€</sup>';
	}
	
	document.getElementById("top_menu_tirage_presentation").innerHTML = sHtml;

	nHoverTirage = nParamId;
	//la classe du menu en cours
	if(document.getElementById("menu_tirage_" + nHoverTirage).className.indexOf("menu_titre_tirage") > -1)
		document.getElementById("menu_tirage_" + nHoverTirage).className = "menu_titre_tirage_selected";
	else
		document.getElementById("menu_tirage_" + nHoverTirage).className = "menu_tirage_selected";
}

//change l'image de présentation
function HoverMenuProduit(nParamId){
	var sHtml;
	
	//la classe du menu en cours	
	if(document.getElementById("menu_produit_" + nHoverProduit).className.indexOf("menu_produit") > -1)
		document.getElementById("menu_produit_" + nHoverProduit).className = "menu_produit";
	else
		document.getElementById("menu_produit_" + nHoverProduit).className = "menu_titre";
	
	nHoverProduit = nParamId;

	//la classe du menu en cours	
	if(document.getElementById("menu_produit_" + nHoverProduit).className.indexOf("menu_produit") > -1)
		document.getElementById("menu_produit_" + nHoverProduit).className = "menu_produit_selected";
	else
		document.getElementById("menu_produit_" + nHoverProduit).className = "menu_titre_selected";		
}

function GetScreenHeight(){
	if (String(window.innerHeight) == "undefined")
		return document.documentElement.clientHeight;
	else
		return window.innerHeight;
}

function GetScreenWidth(){
	if (String(window.innerWidth) == "undefined")
		return document.documentElement.clientWidth;
	else
		return window.innerWidth;
}

function AfficheCache(){
	$("#cache").css("height", GetScreenHeight() + "px");
	$("#cache").css("width", GetScreenWidth() + "px");
	$("#cache").css("display", "block");
}

function CloseCache(){
	$("#cache").css("display", "none");
}

if(document.URL.indexOf("/telechargement/flash2/flash.asp") == -1 && document.URL.indexOf("/telechargement/flash.asp") == -1 && document.URL.indexOf("/telechargement/telechargement.asp" )== -1) {
	//on ne met en place les fontctions d'affichage de menu qu'une fois la page chargée, pour éviter les erreurs js de non trouvage d'objet
	var sSrcMenu
	sSrcMenu = document.getElementById('id_top_produit').src
	document.getElementById('id_top_produit').onmouseover=function(){afficheMenuTop(1);}
	document.getElementById('id_top_produit').onmouseout=function(){cacheMenuTop();}
	
	sSrcMenu = document.getElementById('id_top_livre_photo').src
	document.getElementById('id_top_livre_photo').onmouseover=function(){afficheMenuTop(2);}
	document.getElementById('id_top_livre_photo').onmouseout=function(){cacheMenuTop();}
	
	sSrcMenu = document.getElementById('id_top_tirage').src
	document.getElementById('id_top_tirage').onmouseover=function(){afficheMenuTop(3);}
	document.getElementById('id_top_tirage').onmouseout=function(){cacheMenuTop();}
	
	sSrcMenu = document.getElementById('id_top_deco').src
	document.getElementById('id_top_deco').onmouseover=function(){afficheMenuTop(4);}
	document.getElementById('id_top_deco').onmouseout=function(){cacheMenuTop();}
		

	//init des hover menu top
	var nHoverLivre = 2;
	var nHoverTirage = 1;
	var nHoverProduit = 1;
	var nHoverDeco = 1;
	
	HoverMenuLivre(nHoverLivre);
	HoverMenuTirage(nHoverTirage);
	HoverMenuProduit(nHoverProduit);
	HoverMenuDeco(nHoverDeco);
}

if (($.browser.safari)&&(navigator.userAgent.indexOf('Mac') != -1 ))
{
	$("#top_bottom").css("margin-top", "9px");
/*
	
	$("#top_bottom span").css("line-height", "20px;");
	$("#top_menu_tirage_contenu").css("margin-top", "-6px");
	$("#top_menu_livre_photo_contenu").css("margin-top", "-6px");
	$("#top_menu_produit_contenu").css("margin-top", "-6px");
	*/
}
