function initmenu(){ rt=unescape("%0D"); mdcl='#BDCADA'; mfcl='#BDCADA'; compte=0; nbmenu=3; namenu=new Array(nbmenu); mrecherche=0; mprps=1; mdefs=2; if (nbmenu) { if (document.getElementById){ namenu[mrecherche]=document.getElementById("recherche"); namenu[mprps]=document.getElementById("proprietaire"); namenu[mdefs]=document.getElementById("defiscalisation"); mtdrech=document.getElementById("tdrech"); mphotoaff=document.getElementById("photoaff"); mphotoplan=document.getElementById("photoplan"); mphotoplan.style.visibility="hidden"; menvoyer=document.getElementById("divenvoyer"); effenvoyer(); } else if (document.layers){ namenu[mrecherche]='recherche'; namenu[mprps]='proprietaire'; namenu[mdefs]='defiscalisation'; mtdrech='tdrech'; } effacetout(); } nbt=6;bt=new Array(nbt);bton=new Array(nbt);btoff=new Array(nbt);subm2=new Array(nbt); macc=0;mdef=1;mprg=2;mprp=3;mdoc=4;meng=5; bt[macc]=idimg('bacc');btoff[macc]="../img-immo/bacc-off-"+lang+".gif";bton[macc]="../img-immo/bacc-on-"+lang+".gif";btacc=new Image;btacc.src=bton[macc];subm2[macc]=""; bt[mdef]=idimg('bdef');btoff[mdef]="../img-immo/bdef-off-"+lang+".gif";bton[mdef]="../img-immo/bdef-on-"+lang+".gif";btdef=new Image;btdef.src=bton[mdef];subm2[mdef]=mdefs; bt[mprg]=idimg('bprg');btoff[mprg]="../img-immo/bprg-off-"+lang+".gif";bton[mprg]="../img-immo/bprg-on-"+lang+".gif";btprg=new Image;btprg.src=bton[mprg];subm2[mprg]=""; bt[mprp]=idimg('bprp');btoff[mprp]="../img-immo/bprp-off-"+lang+".gif";bton[mprp]="../img-immo/bprp-on-"+lang+".gif";btprp=new Image;btprp.src=bton[mprp];subm2[mprp]=mprps; bt[mdoc]=idimg('bdoc');btoff[mdoc]="../img-immo/bdoc-off-"+lang+".gif";bton[mdoc]="../img-immo/bdoc-on-"+lang+".gif";btdoc=new Image;btdoc.src=bton[mdoc];subm2[mdoc]=""; bt[meng]=idimg('beng');btoff[meng]="../img-immo/beng-off-"+lang+".gif";bton[meng]="../img-immo/beng-on-"+lang+".gif";bteng=new Image;bteng.src=bton[meng];subm2[meng]=""; loadimg(); affheures(); flg=1; } function loadimg() { img=0; while(document.images[img]){ url=document.images[img].name; ext=url.substr(url.length-3,3); ok=0; if (ext=="jpg" || ext=="gif"){document.images[img].src=url;} img+=1; } } function idimg(butt){ id=false; if (document.getElementById){ id=document.getElementById(butt); } else{ img=0; while(document.images[img]){ if(document.images[img].id==butt){id=document.images[img];} img++; } } return id; } function setaf(subm,opt) { butt=subm; if (subm2[butt]){ af(subm2[butt],opt); }else{ af(0,1); } if (opt==3){dynbutth(butt,'on');}else if(opt==0){dynbutth(butt,'off');} } function dynbutth(subm,opt){ if (flg) {if(opt=='on'){bt[subm].src=bton[subm];}else if(opt=='off'){bt[subm].src=btoff[subm];}} } function effacetout(){ compte=0;nb=0; while (nb0) { param="&"+url.substr(qm+1); url2=basename(url); } fl=770;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=1,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 imprimertout(progimp){ fl=770;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=1,scrollbars=1,menubar=0,location=0,width='+fl+',height='+ht+',left='+xdec+',top='+ydec; loc="imprimertout.phtml?progimp="+progimp; newin=window.open('','imp',options); newin.location=loc; waitimp(); } function waitimp(){ if (window.newin.flg==1){ copimp(); } else { setTimeout("waitimp()",200); } } 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 photo2(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-immo/affphotoav.phtml?phot="+phot+"&resol="+screenx; } function photo(phot){ if (flg) { mphotoaff.src="../img-immo/"+phot; waitphoto(); } } function photopresse(phot){ if (flg) { mphotoaff.src="../exclusive_hotel_resorts/img/"+phot; waitphoto(); } } function waitphoto(){ if (mphotoaff.width!=1 && mphotoaff.height!=1){ xpos=Math.round((screen.width-mphotoaff.width)/2)+document.body.scrollLeft; if(xpos<0){xpos=0;} ypos=Math.round((screen.height-mphotoaff.height)/2)-100+document.body.scrollTop; if(ypos<0){ypos=0;} mphotoplan.style.left=xpos; mphotoplan.style.top=ypos; mphotoplan.style.visibility="visible"; } else { setTimeout("waitphoto()",200); } } function effphoto(){ mphotoaff.src="../img-immo/px.gif"; mphotoplan.style.visibility="hidden"; } function diaporama(diapo){ fl=650;ht=500; 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-immo/diaporama-flash.phtml?diaporama="+diapo; newin=window.open('','diaporama',options); newin.location=loc; } function clicmouse(e) { if(navigator.appName=='Netscape') { Bmouse=e.which; }else if(navigator.appName=='Microsoft Internet Explorer'){ Bmouse=event.button; } if(MBmouse){MBmouse=0;}else{MBmouse=1;} } function noclicmouse() { Bmouse=0; } function posmouse(e) { if(navigator.appName=='Netscape') { Xmouse=e.pageX; Ymouse=e.pageY; }else if(navigator.appName=='Microsoft Internet Explorer'){ Xmouse=event.x+document.body.scrollLeft; Ymouse=event.y+document.body.scrollTop; } if(Cmouse && MBmouse){ if(Mmouse){ xpos=Xmouse-xdif; ypos=Ymouse-ydif; mphotoplan.style.left=xpos; mphotoplan.style.top=ypos; }else{ xdif=Xmouse-xpos; ydif=Ymouse-ypos; Mmouse=1; } }else{ Mmouse=0; } // window.status=Bmouse+" "+Xmouse+" "+Ymouse+" "+Cmouse; } function movphoto(){ } Cmouse=0; Mmouse=0; Bmouse=0; MBmouse=1; Xmouse=0; Ymouse=0; xdif=0; ydif=0; // document.onmousemove = posmouse; // document.onmousedown = clicmouse; // document.onmouseup = noclicmouse; function affheures() { // if (navigator.appName.indexOf('Microsoft') != -1 && document.getElementById) { bd=new Date(); hr=bd.getHours();if(hr<10){hr="0"+hr;} mn=bd.getMinutes();if(mn<10){mn="0"+mn;} sc=bd.getSeconds();if(sc<10){sc="0"+sc;} jr=bd.getDate(); ms=bd.getMonth(); qt=unescape("%22"); heur=document.getElementById("heures"); heur.innerHTML="
"+hr+":"+mn+":"+sc+"
"; setTimeout("affheures()",500); // } } function affenvoyer(){ Yscr=document.body.scrollTop+200; menvoyer.style.top=Yscr; menvoyer.style.visibility="visible"; document.envoyer.nomdest.focus(); } function effenvoyer(){ menvoyer.style.visibility="hidden"; } rt=unescape("%0D"); okenvoi=0; function VerifFormenvoi(){ lng=document.envoyer.langenvoi.value; okenvoi=1; if (document.envoyer.emaildest.value=="") { okenvoi=0; if (lng=="fr") { alert("Vous n'avez pas saisi l'email du destinataire."); } else { alert("Please enter the recipient e-mail."); } } if (document.envoyer.emailexp.value=="") { okenvoi=0; if (lng=="fr") { alert("Vous n'avez pas saisi votre email."); } else { alert("Please enter your e-mail."); } } if (okenvoi){ email=document.envoyer.emaildest.value; pos=email.indexOf('@'); if (pos){ domain=email.substring(pos+1); pos=domain.indexOf('.'); if (pos<=0){okenvoi=2;} } else { okenvoi=2; } if (okenvoi==2){ okenvoi=0; if (lng=="fr") { alert("Il semble que l'adresse email du destinataire ne soit pas correcte."); } else { alert("The recipient e-mail is not valid."); } } if (okenvoi) { email=document.envoyer.emailexp.value; pos=email.indexOf('@'); if (pos){ domain=email.substring(pos+1); pos=domain.indexOf('.'); if (pos<=0){okenvoi=2;} } else { okenvoi=2; } if (okenvoi==2){ okenvoi=0; if (lng=="fr") { alert("Il semble que votre adresse email ne soit pas correcte."); } else { alert("Your e-mail is not valid."); } } } } if(okenvoi){ document.getElementById("envoyerimg").src="envoyer-cette-page-"+document.envoyer.langenvoi.value+".phtml?page="+document.envoyer.envoyerpage.value+"&emaildest="+escape(document.envoyer.emaildest.value)+"&emailexp="+escape(document.envoyer.emailexp.value)+"&nomexp="+escape(document.envoyer.nomexp.value)+"&nomdest="+escape(document.envoyer.nomdest.value)+"&copienvoi="+escape(document.envoyer.copienvoi.value)+"&commentairenvoi="+escape(document.envoyer.commentairenvoi.value); effenvoyer(); } }