function showLanguage(){var am=navigator.language?navigator.language:navigator.userLanguage;alert(am);};function openInNewWindow(bg){var bn=window.open('','test','scrollbars=yes,menubar=yes,resizable=yes,toolbar=no,width=400,height=400');bg.target='test';bg.submit();};function changePhoto(ar,o){if(document.photographiePrincipale){az=("display.php?id="+ar+"&ty=1&lg="+o);document.photographiePrincipale.src=az;}else{document.forms['f_photo'].id_photo.value=ar;document.forms['f_photo'].submit();};};function changeVr(bk){document.forms['f_vr'].id_vr.value=bk;document.forms['f_vr'].submit();};function showVr(ae,e,d){document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+e+'" height="'+d+'">');document.write('<param name="src" value="'+ae+'">');document.write('<param name="autoplay" value="true">');document.write('<param name="controller" value="true">');document.write('<embed width="'+e+'" height="'+d+'" pluginspage="http://www.apple.com/fr/quicktime/download/" src="'+ae+'" type="video/quicktime" controller="true" autoplay="true">');document.write('</object>');};function hautPage(){var ay=window.location.href,aw="#haut",bc=ay.split(aw);window.location=bc[0]+"#haut";};function imprimerPage(o){if(window.print){window.print();}else if(o.toLowerCase()=="fr"){alert("Votre fureteur ne supporte pas la fonction d'impression./nVeuillez utilisez l'outil d'impression de votre fureteur.");}else{alert("Your browser does not support the \"print\" function. Please use the \"print\" tool of your browser.");};};function validerFureteurDOM(o){var ap="/erreurs/telechargements.html",au="/erreurs/downloads.html";if(!document.getElementById){var w="";if(o.toLowerCase()=="fr")w=ap;else w=au;window.location.href=w;};};function contacterProprietaire(av){var s="index.php?pg=contacter&id="+av,c="ContacterProprietaire",e=480,d=530,b='no',a='no';ouvrirFenetre(s,c,e,d,b,a);};function ouvrirSansCommission(){var s="index.php?pg=sanscommission",c="SansCommission",e=480,d=620,b='no',a='no';ouvrirFenetre(s,c,e,d,b,a);};function contacterGoproprio(){var s="index.php?pg=contactergo",c="ContacterGoproprio",e=480,d=530,b='no',a='no';ouvrirFenetre(s,c,e,d,b,a);};function ouvrirCalculette(bj){var s="index.php?pg=calculette&cout="+bj.replace(' ',''),c="Calculette",e=400,d=520,b='no',a='no';ouvrirFenetre(s,c,e,d,b,a);};function ouvrirImpression(aq){var s="index.php?pg=impression&id="+aq,c="Impression",e=740,d=screen.availHeight-100,b='yes',a='no';ouvrirFenetre(s,c,e,d,b,a);};function ouvrirEnvoiAmi(be){var s=be.href,c="EnvoiAmi",e=540,d=450,b='no',a='no';ouvrirFenetre(s,c,e,d,b,a);};function ouvrirCalculetteConv(){var s="index.php?pg=calculette_conv",c="CalculetteConv",e=260,d=300,b='no',a='yes';ouvrirFenetre(s,c,e,d,b,a);};function ouvrirFenetre(s,bo,e,d,b,a){var bm=Math.ceil((screen.availWidth/2)-(e/2)),bl=Math.ceil((screen.availHeight/2)-(d/2));window.open(s,bo,"left="+bm+", top="+bl+", width="+e+", height="+d+", scrollbars="+b+", resizable="+a);};function desactiverChampForm(bi,bb){document.getElementById(bb).disabled=bi;};function activerChampAutre(ad,aj){as=document.getElementById(ad);y=document.getElementById(aj);if(as.value!="%"){y.disabled=true;y.value="";}else{y.disabled=false;};};function genererListeDate(ba,ax){var al=document.getElementById(ba),q=0,u=0;switch(ax){case"jours":q=1;u=31;break;case"mois":q=1;u=12;break;case"annees":var bf=new Date();q=bf.getFullYear();u=q+1;break;default:break;};al.options.length=0;for(compteur=q;compteur<=u;compteur++){var ac=compteur;if(ac<10)ac="0"+ac;al.options[al.options.length]=new Option(ac,ac,null,false);};};function p_overflow(bh){g=bh.getElementsByTagName("p");bd=120;for(x=0;x<g.length;x++){if(g[x].firstChild){ag=g[x].firstChild.nodeValue;while(g[x].scrollWidth>bd){alert(g[x].firstChild.nodeValue+'   '+g[x].scrollWidth+'   '+g[x].offsetWidth);af=g[x].firstChild.nodeValue;g[x].firstChild.nodeValue=af.substring(0,af.length-1);};if(ag!=g[x].firstChild.nodeValue){af=g[x].firstChild.nodeValue;g[x].firstChild.nodeValue=af.substring(0,af.length-3)+'...';};};};};function confirmer_annulation_propriete(o,av){if(o.toLowerCase()=="fr")x='Souhaitez-vous vraiment annuler votre transaction ?';else x='Do you really want to cancel your transaction ?';if(confirm(x))window.location='index.php?pg=mapropriete&dl='+av;};function confirmer_suppression_propriete(o,av){if(o.toLowerCase()=="fr")x='Souhaitez-vous vraiment supprimer cette propriété ?';else x='Do you really want to delete this property ?';if(confirm(x))window.location='index.php?pg=mapropriete&dl='+av;};function afficherAide(z,n){var k=270,f=(screen.availWidth)-20,i=(screen.availHeight)-40,ab=(f-k);window.open((z),'Aide',"width="+k+",height="+i+",left="+ab+",top=0,directories=no,favorites=no,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no");if(n){redimensionnerFenetrePrincipale('Tuile',k);};};function afficherProfil(z){var k=350,f=(screen.availWidth)-20,i=(screen.availHeight)-40,ab=(f-k);window.open((z),'Profil',"width="+k+",height="+i+",left="+ab+",top=0,directories=no,favorites=no,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no");};function redimensionnerFenetrePrincipale(ao,an){var f=(screen.availWidth)-20,i=(screen.availHeight)-40;if(ao=='Tuile'){f-=(an+20);parent.moveTo(0,0);parent.resizeTo(f,i);}else{opener.moveTo(0,0);opener.resizeTo(f,i);};};function ecrireCaracteresDisponibles(p,h){p.value=h;};function limiterCaracteres(v,p,t){var h=t-(v.value).length;if(h<=0){v.value=(v.value).substring(0,t);h=0;};ecrireCaracteresDisponibles(p,h);};function detecteMethode(){if(document.getElementById){return("gebi");}else if(document.all){return("all");}else if(document.layers){return("layers");}else{return("window");};};function decode(r){while(true){var bp=r.indexOf('+');if(bp<0)break;r=r.substring(0,bp)+'%20'+r.substring(bp+1,r.length);};return unescape(r)};function showHelp(l,at,ai,j){ai=decode(ai);m=new Array(2);if(detecteMethode()=="gebi"){m[0]=findPosX(j);m[1]=findPosY(j);document.getElementById(l).style.display='inline';document.getElementById(l).style.position='absolute';document.getElementById(l).style.top=m[1]+'px';document.getElementById(l).style.left=m[0]+50;document.getElementById(l).style.width='320';document.getElementById(l).style.backgroundColor='lightyellow';document.getElementById(l).style.border='solid 1px black';document.getElementById(l).style.padding='10px';document.getElementById(l).innerHTML='<center><b>'+at+'</b></center><br><div style="text-align: left; padding: 0px 0px 5px 10px;">'+ai+'</div>';}else if(detecteMethode()=="all"){m[0]=findPosX(document.all[j.av]);m[1]=findPosY(document.all[j.av]);document.all[l].style.display='inline';document.all[l].style.position='absolute';document.all[l].style.left=m[0]+50;document.all[l].style.top=m[1];document.all[l].style.width='320';document.all[l].style.backgroundColor='lightyellow';document.all[l].style.border='solid 1px black';document.all[l].style.padding='10px';document.all[l].innerHTML='<center><b>'+at+'</b></center><br><div style="text-align: left; padding: 0px 0px 5px 10px;">'+ai+'</div>';}else if(detecteMethode()=="layers"){m[0]=findPosX(document.layers[j.av]);m[1]=findPosY(document.layers[j.av]);document.layers[l].display='inline';document.layers[l].position='absolute';document.layers[l].style.left=m[0]+50;document.layers[l].style.top=m[1];document.layers[l].style.width='320';document.layers[l].backgroundColor='lightyellow';document.layers[l].border='solid 1px black';document.layers[l].padding='10px';document.layers[l].innerHTML='<center><b>'+at+'</b></center><br><div style="text-align: left; padding: 0px 0px 5px 10px;">'+ai+'</div>';};};function hideHelp(l){if(detecteMethode()=="gebi"){document.getElementById(l).style.display='none';}else if(detecteMethode()=="all"){document.all[l].style.display='none';}else if(detecteMethode()=="layers"){document.layers[l].display='none';};};function findPosX(aa){var ah=0;if(detecteMethode()=="gebi"||detecteMethode()=="all"){while(aa.offsetParent){ah+=aa.offsetLeft;aa=aa.offsetParent;};}else if(detecteMethode()=="layers"){ah+=aa.x;};return ah;};function findPosY(aa){var ak=0;if(detecteMethode()=="gebi"||detecteMethode()=="all"){while(aa.offsetParent){ak+=aa.offsetTop;aa=aa.offsetParent;};}else if(detecteMethode()=="layers"){ak+=aa.y;};return ak;};
