var cargado = 0; 
var bot1on = null; 
var bot2on = null; 
var bot3on = null; 
var bot4on = null; 
var bot1off = null; 
var bot2off = null; 
var bot3off = null; 
var bot4off = null; 
function iniciar () { 

bot1on = new Image(); bot1on.src ="/images/menu2/1b.gif"; 
bot1off = new Image(); bot1off.src ="/images/menu2/1.gif"; 
bot2on = new Image(); bot2on.src = "/images/menu2/2b.gif"; 
bot2off = new Image(); bot2off.src ="/images/menu2/2.gif"; 
bot3on = new Image(); bot3on.src ="/images/menu2/3b.gif"; 
bot3off = new Image(); bot3off.src ="/images/menu2/3.gif"; 
bot4on = new Image(); bot4on.src ="/images/menu2/4b.gif"; 
bot4off = new Image(); bot4off.src ="/images/menu2/4.gif"; 
cargado = 1; 

} function rollon(imgName) { if (cargado != 0) { imgOn = eval(imgName + "on.src"); document[imgName].src = imgOn; } } function rolloff(imgName) { if (cargado != 0) { document[imgName].src = eval(imgName + "off.src"); } } 


var capaBusqueda = null;
var capaRegistrar = null;
var capaExperiencias = null;
var capaForo = null;
var capaNoticias = null;
var capaSuscripcion = null;
var pulsado = false;
var auxiliar = "";

var icargado = 0; 
var ibot1on = null; 
var ibot2on = null; 
var ibot3on = null; 
var ibot4on = null; 
var ibot5on = null; 
var ibot6on = null; 
var ibot7on = null; 
var ibot8on = null; 
var ibot9on = null; 
var ibot1off = null; 
var ibot2off = null; 
var ibot3off = null; 
var ibot4off = null; 
var ibot5off = null; 
var ibot6off = null; 
var ibot7off = null; 
var ibot8ff = null; 
var ibot9off = null; 

function iiniciar () 
{ 
  
	ibot1on = new Image(); ibot1on.src ="/images/menu/1b.gif"; 
	ibot1off = new Image(); ibot1off.src ="/images/menu/1.gif"; 
	ibot2on = new Image(); ibot2on.src = "/images/menu/2b.gif"; 
	ibot2off = new Image(); ibot2off.src ="/images/menu/2.gif"; 
	ibot3on = new Image(); ibot3on.src ="/images/menu/3b.gif"; 
	ibot3off = new Image(); ibot3off.src ="/images/menu/3.gif"; 
	ibot4on = new Image(); ibot4on.src ="/images/menu/4b.gif"; 
	ibot4off = new Image(); ibot4off.src ="/images/menu/4.gif"; 
	ibot5on = new Image(); ibot5on.src ="/images/menu/5b.gif"; 
	ibot5off = new Image(); ibot5off.src = "/images/menu/5.gif"; 
	ibot6on = new Image(); ibot6on.src = "/images/menu/6b.gif"; 
	ibot6off = new Image(); ibot6off.src = "/images/menu/6.gif"; 
	ibot7on = new Image(); ibot7on.src = "/images/menu/7b.gif"; 
	ibot7off = new Image(); ibot7off.src = "/images/menu/7.gif"; 
	ibot8on = new Image(); ibot8on.src = "/images/menu/8b.gif"; 
	ibot8off = new Image(); ibot8off.src = "/images/menu/8.gif"; 
	ibot9on = new Image(); ibot9on.src = "/images/menu/9b.gif"; 
	ibot9off = new Image(); ibot9off.src = "/images/menu/9.gif"; 
	icargado = 1; 
	return;
	
} 

function markon (imgName)
{
	if (icargado != 0) 
	{ 
		imgOn = eval(imgName + "on.src"); 
		document[imgName].src = imgOn; 
	 
		pulsado = true;
		if (auxiliar != "")
			document[auxiliar].src = eval(auxiliar + "off.src"); 	

		auxiliar = imgName;
	}
	return;
}

function rollon(imgName) 
{ 
	if (icargado != 0) 
	{ 
		imgOn = eval(imgName + "on.src"); 
		document[imgName].src = imgOn; 
	} 	
	pulsado = false;	
	return;
} 

function rolloff(imgName) 
{ 
	if (icargado != 0 && !pulsado && imgName != auxiliar)  
		document[imgName].src = eval(imgName + "off.src"); 	
	return;
} 

function generar ()
{

}

function cargarPaginas ()
{
	var datos2 = cargarPaginas.arguments;
	var dirCentral = "";	
	var dirCamino = "/Web/camino.asp";
	switch (datos2[0])
	{
		case "Busqueda":				dirCentral = '/procesos/Busqueda/001.asp';																								
												break;		
		case "Experiencias":			dirCentral = '/procesos/Experiencias/001.asp';																							
												break;												
		case "Noticias":					dirCentral = '/procesos/Noticias/001.asp';																								
												break;				
		case "Registrar":				dirCentral = '/procesos/Registrar/001.asp';												
												break;			
		case "Foro":						dirCentral = '/procesos/Foro/001.asp';												
												break;
	}	
	top.central.location.href = dirCentral;	
	return;	
}