<!--
function objLayer(nombreCapa,nombreCapaPadre,posIzq,posSup,ancho,alto,contenido,imgFondo,visibilidad,zIndex,clase,colorFondo){
	if (is.ns4) {
		if (!nombreCapaPadre) {this.capa = document.layers[nombreCapa] = new Layer(ancho);}else {this.capa = document.layers[nombreCapaPadre].document.layers[nombreCapa] = new Layer(ancho, document.layers[nombreCapaPadre])}
		this.capa.estilo=this.capa;		
		if(imgFondo!=null){this.capa.background.src=imgFondo};
		this.images=this.capa.document.images;this.formularios=this.capa.document.forms;
	}
	else if(is.ns5 || is.ie5){
			this.capa = document.createElement('div');this.capa.id = nombreCapa;this.capa.estilo=this.capa.style;
			this.capa.estilo.position = 'absolute';this.capa.estilo.overflow = 'hidden';
			if(imgFondo){this.capa.style.backgroundImage='url('+imgFondo+')'};if(clase!=null)this.capa.className=clase;this.images=document.images;this.formularios=document.forms;
			if(!nombreCapaPadre){document.body.appendChild(this.capa)}
			else{document.getElementById(nombreCapaPadre).appendChild(this.capa);}
		}
		else if(is.ie4) {
		  		 strHTML='<div id="'+nombreCapa+'" style="position:absolute; overflow:hidden;"></div>';
		  		 if(!nombreCapaPadre){document.body.insertAdjacentHTML('beforeEnd',strHTML);}else{eval("document.all."+nombreCapaPadre+".insertAdjacentHTML('beforeEnd',strHTML);");}
		  		 this.capa=eval('document.all.'+nombreCapa); this.capa.estilo=this.capa.style; 
		       //if(imgFondo){this.estilo.backgroundImage='url('+imgFondo+')'};if(clase){this.capa.className=clase;};
	   		}
	
	this.capa.nombre=nombreCapa;   		
	this.metodos=addMetodos;this.metodos();
	this.capa.estilo.visibility=visibilidad;this.posicion(posIzq,posSup);this.dimensiones(ancho,alto);this.z(zIndex);
	if(colorFondo!=null)this.fondo(colorFondo);if(contenido!=null){this.escribe(contenido);}
	
	//this.capa.objeto=this;
	return this;
}

function asignaLayer(nombreCapa,nombreCapaPadre,posIzq,posSup,ancho,alto,visibilidad,zIndex){
	if (is.ns4) {
		if (!nombreCapaPadre) {this.capa = document.layers[nombreCapa];}
		else {this.capa = document.layers[nombreCapaPadre].document.layers[nombreCapa]}
		this.capa.estilo=this.capa;
		this.images=this.capa.document.images;this.formularios=this.capa.document.forms;
	}
	else if(is.ns5 || is.ie5){
			this.capa = document.getElementById(nombreCapa);
			this.capa.estilo=this.capa.style;
			this.capa.estilo.position = 'absolute';this.capa.estilo.overflow = 'hidden';
			this.images=document.images;this.formularios=document.forms;
		}
		else if(is.ie4){
				this.capa = document.all[nombreCapa]
				this.capa.estilo=this.capa.style;			
				this.capa.estilo.overflow = 'hidden';
				this.images=document.images;this.formularios=document.forms;
			}
	this.capa.nombre=nombreCapa;		
	this.metodos=addMetodos;this.metodos();		
	this.capa.estilo.visibility=visibilidad;this.posicion(posIzq,posSup);this.dimensiones(ancho,alto);this.z(zIndex);
	//this.capa.objeto=this;
	//if(is.ie4)this.clip(0,ancho,alto,0);
	return this;
}	

function addMetodos(){
	this.timer="";
	this.z=zindex;this.fondo=setFondo;
	this.esconde=escondeLayer;this.muestra=muestraLayer;
	this.x=posicionX;this.y=posicionY;this.w=anchoLayer;this.h=altoLayer;this.clip=clipLayer;
	this.posicion=posicionaLayer;this.mueve=mueveLayer;this.dimensiones=dimensionLayer;	
	this.escribe=escribeLayer;this.append=anexar;	
	this.clip=clipLayer;
	this.cargar=objLayerCargarPagina;
}
function setFondo(color){if(color!=null){(is.ns4)?colorFondo="bgColor":colorFondo="backgroundColor";eval("this.capa.estilo."+colorFondo+"='"+color+"'")}}
function escribeLayer(contenido){if(is.ns4){this.capa.document.open();this.capa.document.write(contenido);this.capa.document.close();this.images=this.capa.document.images;this.formularios=this.capa.document.forms;}else{this.capa.innerHTML=contenido};this.contenido=contenido;}
function anexar(contAnexar){this.escribe(this.contenido+contAnexar)}
function escondeLayer() {this.capa.estilo.visibility="hidden"}
function muestraLayer() {this.capa.estilo.visibility="visible"}
function posicionX(posX){if(posX!=null){this.capa.estilo.left=posX}else{if(this.capa.estilo.left!="")return parseInt(this.capa.estilo.left); else return 0}}
function posicionY(posY){if(posY!=null){this.capa.estilo.top=posY}else{if(this.capa.estilo.top!="")return parseInt(this.capa.estilo.top); else return 0}}
function posicionaLayer(posicionaX,posicionaY){this.x(posicionaX);this.y(posicionaY);}
function mueveLayer(mueveX,mueveY){this.x(this.x()+mueveX);this.y(this.y()+mueveY);}
function dimensionLayer(dimW,dimH){if(dimW!=null)this.w(dimW);if(dimH!=null)this.h(dimH);}
function anchoLayer(W){if(W!=null){(is.ns4)?this.capa.clip.width=W:this.capa.estilo.width=W}else{return (is.ns4)?this.capa.clip.width:this.capa.offsetWidth}}
function altoLayer(H){if(H!=null){(is.ns4)?this.capa.clip.height=H:this.capa.estilo.height=H}else{return (is.ns4)?this.capa.clip.height:this.capa.offsetHeight}}
function zindex(z){if(z!=null)this.capa.estilo.zIndex=z;else return this.capa.estilo.zIndex}
function clipLayer(t,r,b,l){
	if (is.ie) {this.capa.estilo.clip="rect("+t+" "+r+" "+b+" "+l+")";}
	if(is.ns4) {this.capa.clip.top=t;this.capa.clip.right=r;this.capa.clip.bottom=b;this.capa.clip.left=l;}
}
if(is.ns4){
	function resizeHandler() {
	        if(is.ns4){
	                if (top.innerWidth != origWidth || top.innerHeight != origHeight) {
	                        origWidth = innerWidth;
	                        origHeight = innerHeight;
	                        document.location.href = document.location.href;
	                }
	        }
	}
	var origWidth = window.top.innerWidth;
	var origHeight = window.top.innerHeight;
	window.top.captureEvents(Event.RESIZE);
    window.top.onResize = resizeHandler;
}
function objLayerCargarPagina(strURL){
	if(is.ns4){this.capa.src=strURL;}
	else {
		if(self.bufferFrame==null){setTimeout(this.nombre+".cargar('"+strURL+"')",100);return;}
		self.bufferFrame.document.location.href=strURL
	}
	this.url=strURL;
}

function loadSourceFinish(id, blnInfo) {
	
	oCapaReservas.esconde();
	if (blnInfo) {		
		oCapaDireccion.esconde();
		oCapaInfo.muestra();
		oScroll.h(oScrollHMax);
	}
	else {
		oCapaDireccion.muestra();
		oCapaInfo.esconde();
		oScroll.h(oScrollH);
	}
	if(eval(id+"!=null")){
		if(eval(id))eval(id+".capa.innerHTML = self.bufferFrame.document.body.innerHTML");
		if (eval(id+".capa.firstChild.scrollIntoView"))
				eval(id+".capa.firstChild.scrollIntoView(true)");
		eval(id+".muestra()");
	}
	else setTimeout("loadSourceFinishScroll('"+id+"')",100)
}

//-->