// JavaScript Document
function changeStyle (id,newClass) {
		identity=document.getElementById(id);
		identity.className=newClass;
}

function menu02Up (oRegion) {
		oRegion.className="menu02";
}
function menu02Over (oRegion) { 
	oRegion.className="menu02Over";
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName, screen) {
	      settings +='menu=no';

	var ref_w = 585;
	var ref_h = 357;
	var scale = 3100; // 131 metros
	var new_w = screen.width-30;
	var new_h = Math.round((new_w * ref_h) / ref_w);
	var aux = (screen.width + screen.height) * 0.71;
	var new_scale = Math.round( (scale * aux)/ (ref_w + ref_h)); 
	if(new_scale > 7900) new_scale = 7900;
 	var winl = (screen.width-(new_w))/2;
	var wint = (screen.height-(new_h))/2;
	var settings  ='height='+(new_h)+',';
	      settings +='width='+(new_w)+',';
	      settings +='top='+wint+',';
	      settings +='left='+winl+',';
	      settings +='resizable=yes'+',';
	      settings +='menubar=no';
	
	msgWindow = window.open( theURL + "&width=" + new_w + "&height=" + new_h + "&scale=" + new_scale, 
				 winName, settings);
	
	msgWindow.focus();	
	if (msgWindow.opener == null) msgWindow.opener = self;
}

function openbook(idhotel,language,site) {
        var url = "http://www.hotelsearch.com/mre/php/Frameadvance.php?idtokenprovider="+idhotel;
            url += "&language="+language+"&isframe=1"+"&site="+site;
        var parameters = "resizable=yes,scrollbar=no,menubar=no,location=no,directories=no,toolbar=no,status=no";
            parameters += ",width=800,height=360";
            window.open(url,"b"+idhotel,parameters);
     }