ne = (document.layers)? true:false
ie = (document.all)? true:false

function abrirTot(url)
{
   if (ie) 
       var xMax = screen.width, yMax = screen.height; 
   else 
       if (ne) 
           var xMax = window.outerWidth, yMax = window.outerHeight; 
       else 
           var xMax = 640, yMax=480; 
   var xOffset = (xMax - 800)/2, yOffset = (yMax - 600)/2; 

msgwin=window.open(url,'tot','width=790,height=545,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',dependent=1,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');  
   	msgwin.focus();
   	msgwin.location=url;
}

function abrir(url)
{
   if (ie) 
       var xMax = screen.width, yMax = screen.height; 
   else 
       if (ne) 
           var xMax = window.outerWidth, yMax = window.outerHeight; 
       else 
           var xMax = 640, yMax=480; 
   var xOffset = (xMax - 800)/2, yOffset = (yMax - 600)/2; 	
msgwin=window.open(url,'info','width=620,height=450,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'dependent=1,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0');  
   	msgwin.focus();
   	msgwin.location=url;
}

function canviImage(num,name){
	document.images[num].src = name;
}

function mostrar(capa) {
	if (ne) {
		eval("document." + capa + ".visibility = 'show'");
		document.saco.visibility='hide';		
	}
	else if (ie) {
	        eval(capa + ".style.visibility='visible'");
		saco.style.visibility='hidden';
	}
}

function ocultar(capa){
   if (ne) {
        eval("document." + capa + ".visibility='hide'");
	document.saco.visibility='show';
   }
   if (ie) {
        eval(capa + ".style.visibility='hidden'");
	saco.style.visibility='visible';
   }
}

