	
	
		
		
		function refineStill(){
			tamfis=loALT();
			centralL=document.getElementById('central_left');
			peu=document.getElementById('cssfoot').offsetTop;
			if(screen.height<768&&centralL.offsetHeight>=485)return;
			if (window.scrollY) pimbi = window.scrollY;
			else  pimbi = document.documentElement.scrollTop;
			if(peu<=pimbi+centralL.offsetHeight+200) centralL.style.top=peu-centralL.offsetHeight-200+'px';
			else{
				if(pimbi>=200) centralL.style.top=pimbi-150+'px';
				else centralL.style.top=0+'px';
				}
			setTimeout('refineStill()',0)
			}
			
		function WPosition() {}		
		
		function HSize() {}
		
		function changDisp(evt,who){
				var popUp = document.getElementById(who);	
				var evt = (evt) ? evt : ((window.event) ? event : null);
			if((popUp)&&(evt)){
				if(popUp.style.display!='block'){
						popUp.style.left = evt.clientX-20+'px';
						popUp.style.top = evt.clientY+scrollaAbaj()+20+'px'; 
						popUp.style.display = 'block';}
				else popUp.style.display = 'none';
				}
			}
				
		function megaPrinter(){
			window.print();}
			
		
		function megaVPrinter(pup){
			espans=document.getElementsByTagName('span');
			for(x=0;x<espans.length;x++)if(espans[x].className=='jforpmm')espans[x].className='jforp';
			pare=pup.parentNode.parentNode.parentNode;
			pare.className="jforpmm";
			window.print();			
			}
			
		function scrollaAbaj() {
			if (window.pageYOffset  !=null)
				return window.pageYOffset  ;
			if (document.documentElement && document.documentElement.scrollTop  !=null)
			    return document.documentElement.scrollTop;
			if (document.body.scrollTop  !=null)
				return document.body.scrollTop;
			return (null);
		}
		
		function HHaroundW(evt,titol,contin){
			w3menu=document.getElementById('menu_www');
			w3tit=document.getElementById('tit_www');
				w3menu.style.left = evt.clientX-4+'px';
				w3menu.style.top = evt.clientY-4+'px'; 
				w3tit.innerHTML='HOTELOPIA '+titol;
				w3menu.style.display = 'block';
			for(i=0;i<9;++i){
				clase=document.getElementById('www'+i);
				if(contin!=clase.className)clase.style.display='none';
				else clase.style.display='inline';
				}
		  	}

		function noViss(who){
				var Qui = document.getElementById(who);
				if(Qui)Qui.style.visibility='hidden';
				}
		function Viss(who){
				var Qui = document.getElementById(who);
				if(Qui)Qui.style.visibility='visible';
				}
		function noDiss(who){
				var Qui = document.getElementById(who);
				if(Qui)Qui.style.display='none';
				}
		function Diss(who){
				var Qui = document.getElementById(who);
				if(Qui)Qui.style.display='block';
				}
		function ShowHide(who) { 
				var object = document.getElementById(who);
				state = object.style.display;
					if (state != 'block')Diss(who);
					else noDiss(who);
					return false;
				}
		function moveIt(who,x,y){
				var Qui = document.getElementById(who);
				if(Qui) {Qui.style.top=y+'px';
						Qui.style.left=x+'px';}
				}
				
		function loAMPLE(){
				if (window.innerWidth)return window.innerWidth;
				if (document.body.clientWidth) return document.body.clientWidth;
				}
		function loALT(){
				if (window.innerHeight)return window.innerHeight;
				if (document.body.clientHeight) return document.body.clientHeight;
				}
		
		function dinsDIV(Ele,On,QUI){
				var newImageElement = document.createElement(Ele);
				newImageElement.setAttribute('id',QUI);
				if(On==0)document.body.appendChild(newImageElement);
				else document.getElementById(On).appendChild(newImageElement);
				}
				
				
		function openWindow2() {popupWin2=window.open('https://signup.cj.com/member/brandedPublisherSignUp.do?air_refmerchantid=1398451','remote','width=790,height=600,top=50,left=50, scrollbars=yes, innerWidth=0, innerHeigth=0')}
		function openWindow(theURL,winName,features) {finestNove=window.open(theURL,winName,features);finestNove.focus();}
		//----Página de carga para popups (newsletter)

				function itsPoppie(buu){
					if(buu)window.close();
					perAmagar= Array('central_left','menu','cssfoot','centralline');
					if(window.name=='newsletter'){window.scrollbar='no';
						for(i=0;i<perAmagar.length;i++) document.getElementById(perAmagar[i]).style.display='none';
						setTimeout('itsPoppie(1)',5000)}
					}
        function $(id) {
			return(document.getElementById(id));
		}
					

				
		
