function init(){
	wW = (is.ns)? window.innerWidth-10 : 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);
	Lcont = new DynLayer("LcontDiv");
	Lcont.moveTo(0,0)
	Lcont.clipTo(0,wW,wH-20,0);
	Lpie = new DynLayer("LpieDiv");
	Lpie.moveTo(0,wH-20)
	
	if (is.ns) {
    	if(location.reload)
		Lnada.hide();
	}
    if (is.ie) {
    	if(document.all)
		Lnada.hide();
	}	
}
function venTanaForm(v_pagina){
	window.open(v_pagina, 'Formulario', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width=400,height=450,left=0,top=0,screenLeft=0,screenTop=0,resizable=0');
}
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 changeColor(p_td,p_color){
	p_td.style.cursor='default';
	p_td.bgColor=p_color;
}

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];}
}

