function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function AutolinkFormJS() {	if ( document.AutolinkForm.link_url.value == "" || document.AutolinkForm.link_text.value == "" ) {		alert ("Submit a valid adress for the link.");	} else {		document.SubmitDirector.dbio.value = document.SubmitDirector.dbio.value + "<a href='" + document.AutolinkForm.link_url.value + "' target='_blank'>" + document.AutolinkForm.link_text.value + "</a>";		document.AutolinkForm.link_url.value = "";		document.AutolinkForm.link_text.value = "";	}}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}function openMovie(url,name,parameters) {	window.open(url,name,parameters);}function DivStatus(nom,numero){		var divID=nom+numero;		if (document.getElementById && document.getElementById(divID)){				Pdiv = document.getElementById(divID);				PcH = true;		}else if(document.all && document.all[divID]){				Pdiv = document.all[divID];				PcH = true;		}else if (document.layers && document.layers[divID]){				Pdiv = document.layers[divID];				PcH = true;		}else{				PcH = false;		}		if (PcH){				Pdiv.className = (Pdiv.className == 'cachediv' ) ? '' : 'cachediv';		}}function pleinecran(URL) {  window.open(URL, '', 'fullscreen=yes, scrollbars=auto');}function MM_callJS(jsStr) { //v2.0  return eval(jsStr)}function MM_goToURL() { //v3.0  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");}function MM_popupMsg(msg) { //v1.0  alert(msg);}function confirmDelete(){	var agree=confirm("Confirmez-vous cette suppression ?");	if(agree){		return true ;	}else{		return false ;	}}/*An expandCollapse js-script by Messier111*/function expandCollapse(opendiv,closediv1,closediv2,closediv3,closediv4,closediv5,closediv6,closediv7,closediv8){	if(document.getElementById(opendiv).style.display == "block")    {        document.getElementById(opendiv).style.display = "none";		document.getElementById(opendiv + "_arrow").src = "_images/tb_open.gif";	 }   else    {        document.getElementById(opendiv).style.display = "block";		document.getElementById(opendiv + "_arrow").src = "_images/tb_close.gif";    }		document.getElementById(closediv1).style.display = "none";		document.getElementById(closediv1 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv2).style.display = "none";		document.getElementById(closediv2 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv3).style.display = "none";		document.getElementById(closediv3 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv4).style.display = "none";		document.getElementById(closediv4 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv5).style.display = "none";		document.getElementById(closediv5 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv6).style.display = "none";		document.getElementById(closediv6 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv7).style.display = "none";		document.getElementById(closediv7 + "_arrow").src = "_images/tb_open.gif";		document.getElementById(closediv8).style.display = "none";		document.getElementById(closediv8 + "_arrow").src = "_images/tb_open.gif";}/*Simple Image Trail script- By JavaScriptKit.comVisit http://www.javascriptkit.com for this script and moreThis notice must stay intact*/var offsetfrommouse=[16,16]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offsetvar displayduration=0; //duration in seconds image should remain visible. 0 for always.var currentimageheight = 320;	// maximum image size.if (document.getElementById || document.all){	document.write('<div id="trailimageid">');	document.write('</div>');}function gettrailobj(){if (document.getElementById)return document.getElementById("trailimageid").styleelse if (document.all)return document.all.trailimagid.style}function gettrailobjnostyle(){if (document.getElementById)return document.getElementById("trailimageid")else if (document.all)return document.all.trailimagid}function truebody(){return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function showtrail(imagename,ref,nom,prix,prixtva,poids,showimage,height){	document.onmousemove=followmouse;	newHTML = '<div style="padding: 6px; background-color: #EEEEEE; border: 1px solid #8899AA;">';	newHTML = newHTML + '<div class="titreblogs"><font color="000066"><strong>' + ref + '</strong></font></div>';	newHTML = newHTML + '<div class="thumb"><img src="_imgproduits/'+ imagename + '"></div>';	newHTML = newHTML + '<div class="normal"><strong>Nom</strong> : ' + nom + '<img src="_images/spacer8.gif" height="14" width="4">';	newHTML = newHTML + '<br/><strong>Prix htva</strong> : ' + prix + ' &euro;';	newHTML = newHTML + '<br/><strong>Prix tvac</strong> : ' + prixtva + ' &euro;';	newHTML = newHTML + '<br/><strong>Poids</strong> : ' + poids + ' kg';	newHTML = newHTML + '<br/></div>';	if (showimage > 0){		newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" border="0"></div>';	}	newHTML = newHTML + '</div>';	gettrailobjnostyle().innerHTML = newHTML;	gettrailobj().visibility="visible";}function hidetrail(){	gettrailobj().visibility="hidden"	document.onmousemove=""	gettrailobj().left="-500px"}function followmouse(e){	var xcoord=offsetfrommouse[0]	var ycoord=offsetfrommouse[1]	var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15	var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(document.body.offsetHeight, window.innerHeight)	//if (document.all){	//	gettrailobjnostyle().innerHTML = 'A = ' + truebody().scrollHeight + '<br>B = ' + truebody().clientHeight;	//} else {	//	gettrailobjnostyle().innerHTML = 'C = ' + document.body.offsetHeight + '<br>D = ' + window.innerHeight;	//}	if (typeof e != "undefined"){		if (docwidth - e.pageX < 300){			xcoord = e.pageX - xcoord - 286; // Move to the left side of the cursor		} else {			xcoord += e.pageX;		}		if (docheight - e.pageY < (currentimageheight + 110)){			ycoord += e.pageY - Math.max(0,(110 + currentimageheight + e.pageY - docheight - truebody().scrollTop));		} else {			ycoord += e.pageY;		}	} else if (typeof window.event != "undefined"){		if (docwidth - event.clientX < 300){			xcoord = event.clientX + truebody().scrollLeft - xcoord - 286; // Move to the left side of the cursor		} else {			xcoord += truebody().scrollLeft+event.clientX		}		if (docheight - event.clientY < (currentimageheight + 110)){			ycoord += event.clientY + truebody().scrollTop - Math.max(0,(110 + currentimageheight + event.clientY - docheight));		} else {			ycoord += truebody().scrollTop + event.clientY;		}	}	var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15	var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)	gettrailobj().left=xcoord+"px"	gettrailobj().top=ycoord+"px"}