



function despliega(id){
    menu = document.getElementById(id);
    
    if(menu.style.display == "block"){
        menu.style.display = "none";
        
    }
    else{
        
        menu.style.display = "block";
    }
}

function ocultar(id){
    
    var menunoticias = document.getElementById("menunoticias");
    var menuconserv = document.getElementById("menuconserv");
    var menuinformacion = document.getElementById("menuinformacion");
    var menufuturos = document.getElementById("menufuturos");
    var menuorquesta = document.getElementById("menuorquesta");
    // var menubiblio = document.getElementById("menubiblio");
    var menuOrientacion = document.getElementById("menuOrientacion");
    var menuPostgrado = document.getElementById("menuPostgrado");
    var menuMasterClass = document.getElementById("menuMasterClass");
    var menuConciertos = document.getElementById("menuConciertos");
    var menu = document.getElementById(id);
  
   
    if(menu == menunoticias){
        menuconserv.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";
        menuorquesta.style.display = "none";
        menuOrientacion.style.display = "none";
        menuPostgrado.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }if(menu == menuconserv){
        menunoticias.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";  
        menuorquesta.style.display = "none";
        menuOrientacion.style.display = "none";
        menuPostgrado.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }else if(menu == menuorquesta){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";
        menuOrientacion.style.display = "none";
        menuPostgrado.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }else if(menu == menuinformacion){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menufuturos.style.display = "none";
        menuorquesta.style.display = "none";
        menuOrientacion.style.display = "none";
        menuPostgrado.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }else if(menu == menufuturos){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menuinformacion.style.display = "none";
        menuorquesta.style.display = "none";
        menuOrientacion.style.display = "none";
        menuPostgrado.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }else if(menu == menuOrientacion){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menuorquesta.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";
        menuPostgrado.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }else if(menu == menuPostgrado){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menuorquesta.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";
        menuOrientacion.style.display = "none";
        menuMasterClass.style.display= "none";
        menuConciertos.style.display= "none";
    }else if(menu == menuMasterClass){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menuorquesta.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";
        menuPostgrado.style.display = "none";
        menuOrientacion.style.display = "none";
        menuConciertos.style.display= "none";
    }else if(menu == menuConciertos){
        menunoticias.style.display = "none";
        menuconserv.style.display = "none";
        menuorquesta.style.display = "none";
        menuinformacion.style.display = "none";
        menufuturos.style.display = "none";
        menuMasterClass.style.display= "none";
        menuPostgrado.style.display = "none";
        menuOrientacion.style.display = "none";
    }
}

function deshabilitarCombo(id,id2){
    if(document.getElementById(id).value!=""){
        document.getElementById(id2).value="";
        
    }
  
}


function writeJS1(){
    var arr=new Array(
        '<a href="ControladorNoticias.do?metodo=listarNoticiasActualidad&#38;enlaceMenuIzquierda=actualidad&#38;menu=menunoticias" onclick="despliega(\'menunoticias\'),ocultar(\'menunoticias\')">',
        //Introducir aquí el mensaje del bean
        'Noticias y Avisos',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}


function writeJS2(){
    var arr=new Array(
        '<a href="razones.do?enlaceMenuIzquierda=razones&#38;menu=menuconserv" onclick="despliega(\'menuconserv\'),ocultar(\'menuconserv\')">',
        //Introducir aquí el mensaje del bean
        'Conservatorio',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}



function writeJS3(){
    var arr=new Array(
        '<a href="titulaciones.do?enlaceMenuIzquierda=titulacion&#38;menu=menuinformacion" onclick="despliega(\'menuinformacion\'),ocultar(\'menuinformacion\')">',
        //Introducir aquí el mensaje del bean
        'Informaci&oacute;n acad&eacute;mica',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}


function writeJS4(){
    var arr=new Array(
        '<a href="presentOrquestSinfonica.do?enlaceMenuIzquierda=sinfonica&#38;menu=menuorquesta" onclick="despliega(\'menuorquesta\'),ocultar(\'menuorquesta\')">',
        //Introducir aquí el mensaje del bean
        'Orquestas y agrupaciones',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}

function writeJS5(){
    var arr=new Array(
        '<a href="ControladorEventos.do?metodo=listarEventosPorTipo&id=conciertos1&#38;actual=Si&#38;enlaceMenuDerecha=menuConciertos1&#38;menu=menuConciertos" onclick="despliega(\'menuConciertos\'),ocultar(\'menuConciertos\')">',
        //Introducir aquí el mensaje del bean
        'Conciertos',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}

function writeJS6(){
    var arr=new Array(
        '<a href="masterClassInformacion.do?enlaceMenuDerecha=informacionMasterClass&#38;menu=menuMasterClass" onclick="despliega(\'menuMasterClass\'),ocultar(\'menuMasterClass\')">',
        //Introducir aquí el mensaje del bean
        'MasterClass',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}


function writeJS7(){
    var arr=new Array(
        '<a href="postgradoInformacion.do?enlaceMenuDerecha=informacionPost&#38;menu=menuPostgrado" onclick="despliega(\'menuPostgrado\'),ocultar(\'menuPostgrado\')">',
        //Introducir aquí el mensaje del bean
        'Cursos para postgraduados',
        '</a>'
        )
    var strfinal=arr[0]+arr[1]+arr[2];
    document.write(strfinal);
}


function writeJS8(){
var arr=new Array(

    '<a href="clasesInformacion.do?enlaceMenuDerecha=informacion&#38;menu=menuOrientacion" onclick="despliega(\'menuOrientacion\'),ocultar(\'menuOrientacion\')">',
    //Introducir aquí el mensaje del bean

    'Clases de orientaci&oacute;n',
    '</a>'
    )
var strfinal=arr[0]+arr[1]+arr[2];
document.write(strfinal);
}

function writeJS9(){
var arr=new Array(
    '<a href="pruebas.do?enlaceMenuIzquierda=pruebas&menu=menufuturos"  onclick="despliega(\'menufuturos\'),ocultar(\'menufuturos\')">',    
    //'<a href="ControladorEventos.do?metodo=listarEventosPorTipo&id=Orientacion&#38;actual=Si&#38;enlaceMenuDerecha=fechas&#38;enlaceMenuIzquierda=informacion&#38;menu=menufuturos"  onclick="despliega(\'menufuturos\'),ocultar(\'menufuturos\')">',
    //Introducir aquí el mensaje del bean
    //<a href="clasesInformacion.do?enlaceMenuIzquierda=informacion&#38;menu=menufuturos">

    'Futuros alumnos',
    '</a>'
    )
var strfinal=arr[0]+arr[1]+arr[2];
document.write(strfinal);
}
