// funcion apertura de imagenes
function fotog(img, whi, hei){
  	whi += 40;
	hei += 40;
	win = open('../images/gt/'+img,'fotogran','toolbar=no,directories=no,menubar=no,scrollbars=no,width='+whi+',height='+hei);
	win.document.bgColor='#001100';
	win.focus();
}

function idioma() { 
if (navigator.userAgent.indexOf("Opera")!=-1) (language=navigator.language) 
	else { if (navigator.appName == "Netscape") (language=navigator.language) 
else language=navigator.browserLanguage}; 
	if (language){language=language.substring(0,2)} 
	else {language="zz"} 
		switch (language) { 
		case "en" : window.location="eng/index.html"; break; 
		case "es" : window.location="esp/index.html"; break; 
		case "zz" : window.location="esp/index.html"; break; 
		default : window.location="esp/index.html"
	} 
} 

var winCrs=null;
function openDirectBooking(lang) {
	if(!winCrs || winCrs.closed)	winCrs=window.open('https://www.directbooking.es/hotelaraxa/crs/'+lang+'/','directbooking','width=600,height='+(screen.availHeight-80)+',resizable=yes,scrollbars=yes, status=yes, screenX=10, screenY=10, left=10, top=10' );
	if(winCrs && winCrs.open) winCrs.focus();
}