function init(){
	wW = (is.ns)? window.innerWidth : document.body.offsetWidth
	wH = (is.ns)? window.innerHeight : document.body.offsetHeight-4

	if(is.ns){
	origWidth=innerWidth;
	origHeight=innerHeight;
	onresize=function(){
		if(innerWidth!=origWidth||innerHeight!=origHeight)
		location.reload()
		}
	}
	Lnada = new DynLayer("LnadaDiv");
	Lnada.moveTo(0,0)
	Lnada.clipTo(0,wW,wH,0);
	LbandaR = new DynLayer("LbandaRDiv");
	LbandaR.clipTo(0,497,wH,0);
	LbandaR.moveTo(wW/2-690,0)
	LbandaR.deslizadoInit = FacilDeslizadoInit; LbandaR.deslizadoInit();
	LbandaN = new DynLayer("LbandaNDiv");
	LbandaN.moveTo(wW/2-130,0)
	LbandaN.deslizadoInit = FacilDeslizadoInit; LbandaN.deslizadoInit();
	Lidiomas = new DynLayer("LidiomasDiv");
	Lidiomas.moveTo(wW/2+50,wH/2+162)
	Clogo = new DynLayer("ClogoDiv");
	Clogo.moveTo(wW/2-238,wH/2-46.5)
	Lcontenedor = new DynLayer("LcontenedorDiv");
	Lcontenedor.moveTo(wW/2-400,wH/2-240.5)
	Lcontenedor.clipTo(0,800,470,0);
	Lcontenido = new DynLayer("LcontenidoDiv","LcontenedorDiv");
	Lcontenido.moveTo(0,-470)
	Lcontenido.clipTo(0,800,470,0);
	Lcontenido.deslizadoInit = FacilDeslizadoInit; Lcontenido.deslizadoInit();
	

	if(location.reload){
		Lnada.hide();
	}
	if(document.all){
		Lnada.hide();
	}
}
function abrirCapas(lang){
	LbandaR.deslizadoTo(-700,null,55,5);
	Lidiomas.hide();
	LbandaN.deslizadoTo(wW+100,null,55,5);
//	setTimeout("Lcontenido.deslizadoTo(null,-1,10,5);",3000);
	document.getElementById("LcontenidoDiv").innerHTML = "<iframe id=\"idioma\" name=\"iframe\" align=left frameborder=\"0\" height=\"600\" width=\"800\" scrolling=\"no\" src=\"" + lang + "/index.asp\"></iframe>";

}

function ivisited(lang) {
//	document.getElementById("LcontenidoDiv").innerHTML = "<iframe id=\"idioma\" name=\"iframe\" align=left frameborder=\"0\" height=\"600\" width=\"800\" scrolling=\"no\" src=\"" + lang + "/index.asp\"></iframe>";
	Lidiomas.hide();
	LbandaR.moveTo(-500,0);
	LbandaN.moveTo(wW+100,0);
	Lcontenido.moveTo(0,-1);
}
function IP_swapImgRestore() {  
  var i,x,a=document.IP_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function IP_findObj(n, d) {  
  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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=IP_findObj(n,d.layers[i].document); return x;
}

function IP_swapImage() {  
  var i,j=0,x,a=IP_swapImage.arguments; document.IP_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=IP_findObj(a[i]))!=null){document.IP_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function IP_preloadImages() {  
  var d=document; if(d.images){ if(!d.IP_p) d.IP_p=new Array();
    var i,j=d.IP_p.length,a=IP_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.IP_p[j]=new Image; d.IP_p[j++].src=a[i];}}
}

function OpenVentaNa(P_pagina,N_ancho,N_alto,N_barra,N_amplia) {
		window.open(P_pagina, 'dy', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+N_barra+',width='+N_ancho+',height='+N_alto+',left=0,top=110,screenLeft=110,screenTop=110,resizable='+N_amplia+'');
}