function MM_preloadImages(){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 BrowserDetect(){var ua=navigator.userAgent.toLowerCase();this.isGecko=(ua.indexOf('gecko')!=-1&&ua.indexOf('safari')==-1);this.isAppleWebKit=(ua.indexOf('applewebkit')!=-1);this.isKonqueror=(ua.indexOf('konqueror')!=-1);this.isSafari=(ua.indexOf('safari')!=-1);this.isOmniweb=(ua.indexOf('omniweb')!=-1);this.isOpera=(ua.indexOf('opera')!=-1);this.isIcab=(ua.indexOf('icab')!=-1);this.isAol=(ua.indexOf('aol')!=-1);this.isIE=(ua.indexOf('msie')!=-1&&!this.isOpera&&(ua.indexOf('webtv')==-1));this.isMozilla=(this.isGecko&&ua.indexOf('gecko/')+14==ua.length);this.isFirebird=(ua.indexOf('firebird/')!=-1);this.isNS=((this.isGecko)?(ua.indexOf('netscape')!=-1):((ua.indexOf('mozilla')!=-1)&&!this.isOpera&&!this.isSafari&&(ua.indexOf('spoofer')==-1)&&(ua.indexOf('compatible')==-1)&&(ua.indexOf('webtv')==-1)&&(ua.indexOf('hotjava')==-1)));this.isIECompatible=((ua.indexOf('msie')!=-1)&&!this.isIE);this.isNSCompatible=((ua.indexOf('mozilla')!=-1)&&!this.isNS&&!this.isMozilla);this.geckoVersion=((this.isGecko)?ua.substring((ua.lastIndexOf('gecko/')+6),(ua.lastIndexOf('gecko/')+14)):-1);this.equivalentMozilla=((this.isGecko)?parseFloat(ua.substring(ua.indexOf('rv:')+3)):-1);this.appleWebKitVersion=((this.isAppleWebKit)?parseFloat(ua.substring(ua.indexOf('applewebkit/')+12)):-1);this.versionMinor=parseFloat(navigator.appVersion);if(this.isGecko&&!this.isMozilla){this.versionMinor=parseFloat(ua.substring(ua.indexOf('/',ua.indexOf('gecko/')+6)+1));}
else if(this.isMozilla){this.versionMinor=parseFloat(ua.substring(ua.indexOf('rv:')+3));}
else if(this.isIE&&this.versionMinor>=4){this.versionMinor=parseFloat(ua.substring(ua.indexOf('msie ')+5));}
else if(this.isKonqueror){this.versionMinor=parseFloat(ua.substring(ua.indexOf('konqueror/')+10));}
else if(this.isSafari){this.versionMinor=parseFloat(ua.substring(ua.lastIndexOf('safari/')+7));}
else if(this.isOmniweb){this.versionMinor=parseFloat(ua.substring(ua.lastIndexOf('omniweb/')+8));}
else if(this.isOpera){this.versionMinor=parseFloat(ua.substring(ua.indexOf('opera')+6));}
else if(this.isIcab){this.versionMinor=parseFloat(ua.substring(ua.indexOf('icab')+5));}
this.versionMajor=parseInt(this.versionMinor);this.isDOM1=(document.getElementById);this.isDOM2Event=(document.addEventListener&&document.removeEventListener);this.mode=document.compatMode?document.compatMode:'BackCompat';this.isWin=(ua.indexOf('win')!=-1);this.isWin32=(this.isWin&&(ua.indexOf('95')!=-1||ua.indexOf('98')!=-1||ua.indexOf('nt')!=-1||ua.indexOf('win32')!=-1||ua.indexOf('32bit')!=-1||ua.indexOf('xp')!=-1));this.isMac=(ua.indexOf('mac')!=-1);this.isUnix=(ua.indexOf('unix')!=-1||ua.indexOf('sunos')!=-1||ua.indexOf('bsd')!=-1||ua.indexOf('x11')!=-1)
this.isLinux=(ua.indexOf('linux')!=-1);this.isNS4x=(this.isNS&&this.versionMajor==4);this.isNS40x=(this.isNS4x&&this.versionMinor<4.5);this.isNS47x=(this.isNS4x&&this.versionMinor>=4.7);this.isNS4up=(this.isNS&&this.versionMinor>=4);this.isNS6x=(this.isNS&&this.versionMajor==6);this.isNS6up=(this.isNS&&this.versionMajor>=6);this.isNS7x=(this.isNS&&this.versionMajor==7);this.isNS7up=(this.isNS&&this.versionMajor>=7);this.isIE4x=(this.isIE&&this.versionMajor==4);this.isIE4up=(this.isIE&&this.versionMajor>=4);this.isIE5x=(this.isIE&&this.versionMajor==5);this.isIE55=(this.isIE&&this.versionMinor==5.5);this.isIE5up=(this.isIE&&this.versionMajor>=5);this.isIE6x=(this.isIE&&this.versionMajor==6);this.isIE6up=(this.isIE&&this.versionMajor>=6);this.isIE4xMac=(this.isIE4x&&this.isMac);}
var browser=new BrowserDetect();function showAnswerHideOthers(div_to_show,class_to_hide,container){var divs=document.getElementById(container).getElementsByTagName('div');for(var i=0;i<divs.length;i++){if(divs[i].className==class_to_hide)divs[i].style.display='none';}
if(div_to_show.style.display=='block'){div_to_show.style.display='none';}else{div_to_show.style.display='block';}}
function MM_reloadPage(init){if(init==true)with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage;}}
else if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH)location.reload();}
MM_reloadPage(true);function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_showHideLayers(){var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}}
function get_elt(id){var itm=null;if(document.getElementById){itm=document.getElementById(id);}else if(document.all){itm=document.all[id];}else if(document.layers){itm=document.layers[id];}
return itm}
function showDivHideOthers(id){var divs=document.getElementById('content_type_paragraphe_titre').getElementsByTagName('div');for(var i=0;i<divs.length;i++){if(divs[i].className=='contenu')divs[i].style.display='none';}
document.getElementById('contenu'+id).style.display='block';}
function showDivHideOthers2(id){var currentId="";if(document.getElementById("currentId")!=undefined){currentId=document.getElementById("currentId").value;}
if(currentId!=""&&document.getElementById('contenu'+currentId)!=undefined){document.getElementById('contenu'+currentId).style.display='none';}
document.getElementById("currentId").value=id;document.getElementById('contenu'+id).style.display='block';}
document.getElementsByClassName=function(class_name){var docList=this.all||this.getElementsByTagName('*');var matchArray=new Array();var re=new RegExp("(?:^|\\s)"+class_name+"(?:\\s|$)");for(var i=0;i<docList.length;i++){if(re.test(docList[i].className)){matchArray[matchArray.length]=docList[i];}}
return matchArray;}
function getXMLHTTP_ajax(){var xhr=null;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}else if(window.ActiveXObject){try{xhr=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP");}catch(e1){xhr=null;}}}
else{alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");}
return xhr;}
function getStars(divId,reference){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getComments.ws?etoiles=&reference="+escape(reference),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200){document.getElementById(divId).innerHTML=_xmlHttp.responseText;}};_xmlHttp.send(null);}}
function getComments(divId,reference){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getComments.ws?reference="+escape(reference),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200){document.getElementById(divId).innerHTML=_xmlHttp.responseText;}};_xmlHttp.send(null);}}
function postComment(divId,reference){var com_pseudo=document.getElementById("com_pseudo");var com_texte=document.getElementById("com_texte");var com_note=document.getElementById("com_note");if(com_pseudo.value==""){com_pseudo.style.border="2px solid red";com_pseudo.style.backgroundColor="#FFEEEE";com_pseudo.focus();return;}
if(com_texte.value==""){com_texte.style.border="2px solid red";com_texte.style.backgroundColor="#FFEEEE";com_texte.focus();return;}
var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/postComment.ws?reference="+escape(reference)+"&pseudo="+escape(com_pseudo.value)+"&commentaire="+escape(com_texte.value)+"&note="+escape(com_note.value),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200){document.getElementById(divId).innerHTML=_xmlHttp.responseText;}};_xmlHttp.send(null);}}
function getBrand(divId,idmarque){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getBrand.ws?idmarque="+escape(idmarque),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200&&_xmlHttp.responseText!=""){document.getElementById(divId).innerHTML=_xmlHttp.responseText;document.getElementById("div"+divId).style.display="block";}};_xmlHttp.send(null);}}
function getAcc(divId,idpro){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getAcc.ws?idpro="+escape(idpro),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200&&_xmlHttp.responseText!=""){document.getElementById(divId).innerHTML=_xmlHttp.responseText;document.getElementById("div"+divId).style.display="block";}};_xmlHttp.send(null);}}
function getSimilar(divId,idpro){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getSimilar.ws?idpro="+escape(idpro),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200){document.getElementById(divId).innerHTML=_xmlHttp.responseText;}};_xmlHttp.send(null);}}
function getVideos(code_commercial){var n=document.createElement("script");n.setAttribute("type","text/javascript");n.setAttribute("src","http://vianal.erp.edenweb.fr/get_videos.php?code_commercial="+code_commercial);document.getElementsByTagName("head")[0].appendChild(n);}
function getVideosCallback(contenu){document.getElementById("video").innerHTML=contenu;document.getElementById("video").style.display="block";}
function modQt(idField,step){var valTxt=document.getElementById(idField).value;var valNum;if(isNaN(valTxt)||Number(valTxt)+step<1){valNum=0;}else{valNum=Number(valTxt)+step;}
document.getElementById(idField).value=valNum;}
function syncAddress(fromShipping){var srcAddOn="";var destAddOn="";if(fromShipping==true){destAddOn="_fact";}else{srcAddOn="_fact";}
var inputFields=new Array("societe","nom","nom2","adresse","adresse2","codepost","ville");for(var i=0;i<inputFields.length;i++){document.getElementById("client_"+inputFields[i]+destAddOn).value=document.getElementById("client_"+inputFields[i]+srcAddOn).value;}
document.getElementById("client_pays"+destAddOn).selectedIndex=document.getElementById("client_pays"+srcAddOn).selectedIndex;}
upEtoiles=function(num){for(var i=1;i<=4;i++){document.getElementById("etoile"+i).src="/specific/skins/skin-default6/img/etoile_"+(i<=num?"on":"off")+".png";}}
setEtoiles=function(num){document.getElementById("com_note").value=num;}
getEtoiles=function(){var num=document.getElementById("com_note").value;for(var i=1;i<=4;i++){document.getElementById("etoile"+i).src="/specific/skins/skin-default6/img/etoile_"+(i<=num?"on":"off")+".png";}}
function getContent(divId,desc){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getContent.ws?desc="+encodeURIComponent(desc),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200&&_xmlHttp.responseText!=""){document.getElementById(divId).innerHTML=_xmlHttp.responseText;}};_xmlHttp.send(null);}}
function getPacks(divId,reference){var _xmlHttp=null;if(_xmlHttp&&_xmlHttp.readyState!=0){_xmlHttp.abort();}
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET","/specific/formats/include/getPacks.ws?reference="+escape(reference),true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200&&_xmlHttp.responseText!=""){document.getElementById(divId).innerHTML=_xmlHttp.responseText;document.getElementById(divId).style.display="block";}};_xmlHttp.send(null);}}
getRelais=function(selected){var src_address=document.getElementById("client_adresse").value;var src_zipCode=document.getElementById("client_codepost").value;var src_city=document.getElementById("client_ville").value;var src_request_id="0";var now = new Date();var src_date_from="";if(now.getDate()<10){src_date_from+="0";}src_date_from+=now.getDate()+"/";if(now.getMonth()<9) {src_date_from+="0";}src_date_from+=(now.getMonth()+1)+"/"+now.getFullYear();var res_div=document.getElementById("relais");
_xmlHttp=getXMLHTTP_ajax();if(_xmlHttp){_xmlHttp.open("GET", "/specific/formats/include/getRelais.jsp?address="+escape(src_address)+"&zipCode="+escape(src_zipCode)+"&city="+escape(src_city)+"&request_id="+escape(src_request_id)+"&date_from="+escape(src_date_from), true);_xmlHttp.onreadystatechange=function(){if(_xmlHttp.readyState==4&&_xmlHttp.status==200){res_div.innerHTML=_xmlHttp.responseText;}};_xmlHttp.send(null);}}
setRelai=function(PUDO_ID,NAME,ADDRESS1,ADDRESS2,ADDRESS3,ZIPCODE,CITY){document.getElementById("extra_PUDO_ID").value = PUDO_ID;document.getElementById("extra_NAME").value = NAME;document.getElementById("extra_ADDRESS1").value = ADDRESS1;document.getElementById("extra_ADDRESS2").value = ADDRESS2;document.getElementById("extra_ADDRESS3").value = ADDRESS3;document.getElementById("extra_ZIPCODE").value = ZIPCODE;document.getElementById("extra_CITY").value = CITY;showRelai();upTransport();}
showRelai=function(){document.getElementById("relais").innerHTML = "Vous avez choisi cet espace ICI Relais :<br/>["+document.getElementById("extra_PUDO_ID").value+"] <b>"+document.getElementById("extra_NAME").value+"</b><br/>"+document.getElementById("extra_ADDRESS1").value+" "+document.getElementById("extra_ADDRESS2").value+" "+document.getElementById("extra_ADDRESS3").value+", "+document.getElementById("extra_ZIPCODE").value+" "+document.getElementById("extra_CITY").value+"<br/><input type='button' value='Changer d&rsquo;espace ICI Relais' onclick=\"getRelais('"+document.getElementById("extra_PUDO_ID").value+"')\"/>";}
clearRelai=function(){document.getElementById("extra_PUDO_ID").value = "";document.getElementById("extra_NAME").value = "";document.getElementById("extra_ADDRESS1").value = "";document.getElementById("extra_ADDRESS2").value = "";document.getElementById("extra_ADDRESS3").value = "";document.getElementById("extra_ZIPCODE").value = "";document.getElementById("extra_CITY").value = "";}

