

//cambio fondo menu
function mEnter(e) 
{
	e.style.background = "#D0E484";
	//e.style.color = "#E9ECC4";
}
function mExit(e) 
{
	e.style.background = "#E9ECC4";
}

//cambio fondo listados
function mEnterList(e) 
{
	e.style.background = "#E1ECA4";
}
function mExitList(e) 
{
	e.style.background = "#EFF3D8";
}

//cambio botones
var btof=[];
var bton=[];

for(x=0;x<2;x++){
		btof[x]= new Image();
		btof[x].src=opcof[x];
		bton[x]= new Image();
		bton[x].src=opcon[x];
}
function change(st,op){
	if(st)document.images['bt'+op].src=bton[op].src;
	else document.images['bt'+op].src=btof[op].src;
}

//controles menu
var ns=false;
var ns6=false;
var ie=false;
if(document.all)ie=true;
else if(document.layers)ns=true;
else if(document.getElementById)ns6=true;
var opend=null;
var pater=null;
function openIt(x) {
	if(ns) {
		if(opend!=null)eval("document.layers['"+opend+"'].visibility = 'hidden'" );
		if(pater!=null)eval("document.layers['"+pater+"'].visibility = 'hidden'" );
		if(arguments[1])eval("document.layers['"+arguments[1]+"'].visibility = 'visible'" );
		eval("document.layers['"+x+"'].visibility = 'visible'" );
		opend=x;
		pater=arguments[1];
	}else if(ie){ 
		if(opend!=null)eval("document.all."+opend+".style.visibility = 'hidden'");
		if(pater!=null)eval("document.all."+pater+".style.visibility = 'hidden'");
		if(arguments[1])eval("document.all."+arguments[1]+".style.visibility = 'visible'");
		eval("document.all."+x+".style.visibility = 'visible'" );
		opend=x;
		pater=arguments[1];
	}else{
	  	if(opend!=null)eval("document.getElementById('"+opend+"').style.visibility = 'hidden'");
		if(pater!=null)eval("document.getElementById('"+pater+"').style.visibility = 'hidden'");
		if(arguments[1]!=null)eval("document.getElementById('"+arguments[1]+"').style.visibility = 'visible'");
		eval("document.getElementById('"+x+"').style.visibility = 'visible'");
		opend=x;
		pater=arguments[1];
	}
}

function closeIt(x,t,y) {
 if(ie)timer[t]=setTimeout("document.all."+x+".style.visibility = 'hidden'",500);
 else if(ns)timer[t]=setTimeout("document.layers['"+x+"'].visibility = 'hidden'",500);
 else timer[t]=setTimeout("document.getElementById('"+x+"').style.visibility = 'hidden'",500);
}
var box=[["box0","box01","box02","box03","box04","box05","box06","box07"],"box1",["box2","box21","box22","box23"],"box3"];
var timer=[];

//apertura de flotantes
function aven(url,w,h)
{
window.open(url,'ventana','toolbar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=' + w + ',height='+h);
}
//sin navegación
function avensin(url,w,h)
{
window.open(url,'ventana','toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=' + w + ',height='+h);
}


