var imgOrigin="";
var fondoOrigin="";
var textoOrigin="";

function changeImage(imagen,newImage)
{
	imgOrigin=imagen.src;
	imagen.src=newImage;
}

function restoreImage(imagen)
{
	imagen.src=imgOrigin;
	imgOrigin="";
}

function changeMenu(celda)
{
	fondoOrigin=celda.style.backgroundColor;
	textoOrigin=celda.style.color;
	celda.style.backgroundColor='#ED9612';
	celda.style.color='#101040';	
}

function restoreMenu(celda)
{
	celda.style.backgroundColor=fondoOrigin;
	celda.style.color=textoOrigin;
	fondoOrigin="";
	textoOrigin="";
}

function aviso(i)
{
	var propiedades="toolbar=no,width=640,height=450,scrollbars=1";
	if(i==1)
		window.open('./terminos_uso.html','politica_privacidad',propiedades);	
	else if(i==2)
		window.open('./politica_privacidad.html','politica_privacidad',propiedades);
}

function abrirPdf(doc)
{
	var PosX=screen.availWidth-510
	var PosY=screen.availHeight-510
        var pdf=window.open('./docs/'+doc+'.pdf','pdf','width=500,height=500,resizable=yes,top='+PosY+',left='+PosX);	
}

function cursosInfo(codigo)
{
	window.open('./cursosInfo.asp?codigo='+codigo, 'cursosInfo', 'width=560, height=250');		
}

function abrirFoto(foto,w,h)
{
	var wProp='width='+w+', height='+h
	window.open('./img/fotos/'+foto, 'foto', wProp);	
}

function abrirMenu(opcion)
{
	switch (opcion){
		case "menuItem0":
			document.location.href="actividades.html";
			break;
		
		case "menuItem1":
			document.location.href="respondemos_dudas.html";
			break;
			
		case "menuItem2":
			document.location.href="quieres_ayudarnos.html";
			break;
		
		case "menuItem3":
			document.location.href="formacion_c.html";
			break;
			
		case "menuItem4":
			document.location.href="cursos.asp?pag=1";
			break;
		
		case "menuItem5":
			document.location.href="modalidad.html";
			break;
			
		case "menuItem6":
			document.location.href="calendario.html";
			break;
		
		case "menuItem7":
			document.location.href="itinerario_dpe.html";
			break;
			
		case "menuItem8":
			document.location.href="enlaces.html";
			break;
		
		case "menuItem9":
			document.location.href="beneficios.html";
			break;
		
		case "menuItem10":
			document.location.href="alta_actualizar_ficha.asp";
			break;
		
		case "menuItem11":
			document.location.href="enviar_cv.html";
			break;
			
		case "menuItem12":
			document.location.href="biblioteca.html";
			break;
		
		case "menuItem13":
			document.location.href="articulos.asp?pag=1";
			break;
			
		case "menuItem14":
			document.location.href="fotografias_eventos.asp?pag=1";
			
			break;
			
		case "menuItem15":
			document.location.href="descripcion.html";
			break;
		
		case "menuItem16":
			document.location.href="nuestros_compromisos.html";
			break;
			
		case "menuItem17":
			document.location.href="nuestros_profesionales.html";
			break;
		
		case "menuItem18":
			document.location.href="experiencia.html";
			break;
		
		case "menuItem19":
			document.location.href="help_desk.html";
			break;
		
		case "menuItem20":
			document.location.href="coaching.html";
			break;
			
		case "menuItem21":
			document.location.href="preparacion.html";
			break;
		
		case "menuItem22":
			document.location.href="mantenimiento.html";
			break;
		
		case "menuItem23":
			document.location.href="axontel.html";
			break;
			
		case "menuItem24":
			document.location.href="aubay.html";
			break;
			
		case "menuItem25":
			document.location.href="alta_servicios.asp";
			break;
		
		case "menuItem26":
			document.location.href="baja.asp";
			break;
			
		case "menuItem27":
			
			break;
		
		case "menuItem28":
			document.location.href="formacion.html";
			break;
			
		case "menuItem29":
			document.location.href="diseno_carrera.html";
			break;
		
		case "menuItem30":
			
			break;
			
		case "menuItem31":
			document.location.href="recogemos_tu_cv.html";
			break;
		
		case "menuItem32":
			document.location.href="contenidos.html";
			break;
			
		case "menuItem33":
			
			break;
			
		case "menuItem34":
			
			break;
	}
}
