BrowserName = navigator.appName; BrowserVersion = navigator.appVersion; function arreglaUrl(url) { // Si la ruta es de hotel añade ../../ if (url.indexOf("http://")==-1) { var actual=document.location.href; if (actual.indexOf("/index.php")!=-1) url="presentacion/esp/"+url; if (actual.indexOf("/hotels/")!=-1) url="../../"+url; } return url; } function abreRuta(theUrl, hauteur, largeur) { var url=document.location.href; if (url.indexOf("index.php")==-1) NewWindow(theUrl, hauteur, largeur); else { if (document.all) NewWindow("../../"+theUrl, hauteur, largeur); else NewWindow("../../../../"+theUrl, hauteur, largeur); } } function abreRutaCompleta(theUrl) { var url=document.location.href; if (url.indexOf("index.php")==-1) window.open(theUrl); else window.open("../../"+theUrl); } function abreVentana(theURL, hauteur, largeur) { if (theURL.indexOf("http://")==-1) if (document.all || document.location.href.indexOf("editar.php")!=-1) theURL="../../"+theURL; NewWindow(theURL, hauteur, largeur); } function abreVentanaHome(theURL, hauteur, largeur) { //if (!document.all && document.location.href.indexOf("editar")==-1) theURL="../../"+theURL; var l=document.location.href; if (document.all) { if (l.indexOf("editar.php")==-1 && l.indexOf(".php")==-1) theURL=theURL; else theURL="../../"+theURL; } else { if (l.indexOf("editar.php")==-1) { if (l.indexOf("/hotels/")!=-1 && theURL.indexOf("../../")!=-1) theURL=theURL.substring(6); if (l.indexOf("index.php")!=-1 && theURL.indexOf("../../")!=-1) { theURL="../../"+theURL; } if (l.indexOf("index.php")==-1 && l.indexOf(".php")==-1) theURL="../../"+theURL; if (l.indexOf("index.php")!=-1 && theURL.indexOf("../../")==-1) { theURL="../../../../"+theURL; } } } NewWindow(theURL, hauteur, largeur); } function abreLinkHome(theURL) { if (!document.all && theURL.indexOf("http")==-1) theURL="../../"+theURL; document.location.href=theURL; } function abreVentanaScroll(theURL, hauteur, largeur) { if (document.all) theURL="../../"+theURL; NewWindowScroll(theURL, hauteur, largeur); } function abreLink(theURL) { if (document.all) theURL="../../"+theURL; document.location.href=theURL; } function NewWindow(theURL, hauteur, largeur) { theURL=arreglaUrl(theURL); var winl = (screen.width - largeur) / 2; var wint = (screen.height - hauteur) / 2; winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=0' win = window.open(theURL, "", winprops) } function NewWindowScroll(theURL, hauteur, largeur) { theURL=arreglaUrl(theURL); var winl = (screen.width - largeur) / 2; var wint = (screen.height - hauteur) / 2; winprops = 'height='+hauteur+',width='+largeur+',top='+wint+',left='+winl+',scrollbars=1' win = window.open(theURL, "", winprops) } function MM_findObj(n, d) { //v4.01 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