var nIdOOSS = 0;

function cargar (nOpcion)
{
	colocarLinea(nOpcion)

	switch (nOpcion)
	{
		//case 0: parent.Main.window.location.href="/cas/ConsultasP/cp.html"
		case 0: parent.Main.window.location.href="/aOCS/cas/Login/cpX.jsp"
		        break;

		case 1: parent.Main.window.location.href="/cas/InfGeneral/ig.html"
		        break;

		//case 2: parent.Main.window.location.href="/aOCS/cas/Solicitud_listas/test.jsp"
		case 2: parent.Main.window.location.href="/aOCS/cas/Login/solX.jsp"
		        break;

		case 3: parent.Main.window.location.href="/cas/Cen_OOSS/cen_ooss.html"		        
		        break;

		case 4: parent.Main.window.location.href="/cas/Cat_OOSS/cat_ooss.html"
		        break;
		
		case 5: parent.Main.window.location.href="/aOCS/cas/Listados/menuListados.jsp"
		        break;
	}
}

function cargarCP (nDNI)
{
	// Carga de la pantalla de consultas personalizadas cuando ya se conoce el DNI => pasa a la segunda pantalla sin pedir el DNI
	//parent.Main.window.location.href="/aOCS/cas/ConsultasP/cp_2.jsp?nDNI="+nDNI	                                 
	parent.Main.window.location.href="/aOCS/cas/Login/cpX.jsp?nDNI="+nDNI
}

function resetLinea ()
{
	eval ('document.getElementById("marca0").src="/Imgs/Top/MarcaI.gif"')	
	eval ('document.getElementById("marca5").src="/Imgs/Top/MarcaI.gif"')	
	for (i=1; i<5; i++)
		eval ('document.getElementById("marca'+i+'").src="/Imgs/Top/Marca.gif"')	
}

function colocarLinea(nOpcion)
{
	resetLinea ()
	//eval ('document.getElementById("opc'+nOpcion+'").bgColor="#FFFFFF"')
	
	if (nOpcion == 0)
		eval ('document.getElementById("marca'+nOpcion+'").src="/Imgs/Top/MarcaI_on.gif"')
	else
		eval ('document.getElementById("marca'+nOpcion+'").src="/Imgs/Top/Marca_on.gif"')
}
	
function Cent_OOSS (nOOSS)
{
	nIdOOSS = nOOSS
	cargar (3)
}