xmouse=0; ymouse=0; function initmenu(){ mdcl='#eeeeee'; mfcl='#a5d6e0'; mpfo='#F7F7F7'; mprs='#885e55'; namenu=new Array(); compte=0; nbmenu=0; if (document.getElementById("destinations")) { mdestinations=nbmenu; namenu[mdestinations]=document.getElementById("destinations"); mtddest=document.getElementById("tddest"); nbmenu++; } if (document.getElementById("offresspeciales")) { moffresspeciales=nbmenu; namenu[moffresspeciales]=document.getElementById("offresspeciales"); mtdoffres=document.getElementById("tdoffres"); nbmenu++; } if (document.getElementById("divmenusresa")) {initmenusprogresa();} mgeneral=document.getElementById("general"); effacetout(); if(navigator.appName.substring(0,3) == "Net"){document.captureEvents(Event.MOUSEMOVE);document.onmousemove = positionns;}else{document.onmousemove = positionie;} flg=1; } function effacetout(){ compte=0;nb=0; while (nb0) { param="&"+url.substr(qm+1); url2=basename(url); } fl=600;ht=Math.round(screen.height/5)*4; xdec=Math.round((screen.width-fl)/2); ydec=Math.round((screen.height-ht)/2)-30; options='resizable=0,toolbar=0,status=0,scrollbars=1,menubar=0,location=0,width='+fl+',height='+ht+',left='+xdec+',top='+ydec; loc="imprimer.phtml?page="+url2+param; newin=window.open('','imp',options); newin.location=loc; waitimp(); } function waitimp(){ if (window.newin.flg==1){ copimp(); } else { setTimeout("waitimp()",100); } } function basename(url){ basen=escape(url); cr=basen.indexOf('%3F'); if (cr>=0) {basen=basen.substr(0,cr);} basen=unescape(basen); okk=1; while (okk>0) { cr=basen.indexOf('/'); if (cr>=0) {basen=basen.substr(cr+1);} else {okk=0;} } return basen; } function envoyer(url){ param=""; url2=url; qm=url.indexOf('?'); if (qm>0) { param="&"+url.substr(qm+1); url2=basename(url); } screenx=screen.width; screeny=screen.height; ll=450; hh=210; lf=Math.round((screenx-ll))/2; tp=Math.round((screeny-hh))/2; options='resizable=0,width='+ll+',height='+hh+',left='+lf+',top='+tp+',toolbar=0,status=0,scrollbars=0,menubar=0,location=0'; loc="envoyer.phtml?page="+url2+param; nwin=window.open('','envoyer',options); nwin.location=loc; } function photo(phot){ screenx=screen.width; ll=20;hh=20;lf=screenx+100;tp=0; nwin=window.open('','photo','resizable=1,width='+ll+',height='+hh+',left='+lf+',top='+tp+',toolbar=0,status=1,scrollbars=0,menubar=0,location=0'); nwin.location="../img/affphotoav.phtml?phot="+phot+"&resol="+screenx; } function diaporama(diapo){ fl=600;ht=450; xdec=Math.round((screen.width-fl)/2); ydec=Math.round((screen.height-ht)/2)-30; options='resizable=0,toolbar=0,status=0,scrollbars=0,menubar=0,location=0,width='+fl+',height='+ht+',left='+xdec+',top='+ydec; loc="../img/diaporama-flash.phtml?diaporama="+diapo; newin=window.open('','diaporama',options); newin.location=loc; } function clicmouse(e) { if (navigator.appName == 'Netscape') { mousebutton = e.wich; } else if (navigator.appName == 'Microsoft Internet Explorer'){ if (event.button == 2) {alert("Copyright(c)");} } return false; document.onmousedown = clicmouse; } function verifclic() { } function movieobjectold(nommovie){ if(navigator.appName.indexOf("Microsoft")!=-1){return window[nommovie]}else{return document[nommovie]} } function movieobject(nommovie){ if(document.getElementById(nommovie)){return document.getElementById(nommovie);} } function positionns(e){xmouse=e.pageX;ymouse=e.pageY;} function positionie(e){xmouse=event.x+document.body.scrollLeft;ymouse=event.y+document.body.scrollTop;} function aftempo() { flg=0; setTimeout("afsmok()",200); } function afsmok(){ flg=1; }