var iversion=-1;
var	documento="document.all";
var estilo=".style";
var tipovisible="visible";


function version() {
   sversion = navigator.appVersion;
   iversion = parseInt(sversion, 10);
   return iversion;
}

function inicio() {
   if (navigator.appName == "Netscape") {
	documento="document.layers";
	estilo="";
	tipovisible="show";
   }else{
	documento="document.all";
	estilo=".style";
	tipovisible="visible";
   }
}

function escondercapa(nombreCapa){
	//inicio();
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');
}

function mostrarcapa(nombreCapa){
	//inicio();
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'visible\'');
}

function esconderTodasCapas(){
	inicio();
	
	nombreCapa="generales";
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');

	nombreCapa="lamparas";
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');

	nombreCapa="divContainer";
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');	

	nombreCapa="divContainer2";
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');

	nombreCapa="fotometria";
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');

	nombreCapa="esquema";
	eval('document.getElementById("' + nombreCapa + '").style.visibility = \'hidden\'');
}


function inicial(){
   version();
   inicio();
   esconderTodasCapas();
   mostrarcapa('generales');
}

function MM_openBrWindow(theURL,name,features){
	window.open(theURL,name,features);
}

function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}
