var mnuIdioma = false; var mnuBoletin = false; function cargarBarraEstado() { document.getElementById('menuOpcionesIdioma').style.display = 'none'; document.getElementById('btnIdioma').onclick = function() { mnuBoletin = false; mostrarOcultar(); if (!mnuIdioma) { document.getElementById('btnIdioma').className = 'selectorIdiomaActivo'; document.getElementById('menuOpcionesIdioma').style.display = 'block'; } mnuIdioma = !mnuIdioma; } document.getElementById('btnIdiomaEspanol').onclick = function() { mostrarOcultar(); mnuIdioma = false; window.location.href = ''; } document.getElementById('btnIdiomaIngles').onclick = function() { mostrarOcultar(); mnuIdioma = false; window.location.href = ''; } document.getElementById('btnAccesoAdministrador').onclick = function() { mostrarOcultar(); window.location.href = 'esp/index.php?option=com_content&view=section&id=6&Itemid=153'; } document.getElementById('btnMiCuenta').onclick = function() { mostrarOcultar(); window.location.href = 'esp/index.php?option=com_content&view=section&id=6&Itemid=153'; } document.getElementById('btnContacto').onclick = function() { mostrarOcultar(); window.location.href = 'esp/'; } document.getElementById('btnSuscribirseBoletin').onclick = function() { mostrarOcultar(); window.location.href = 'esp/index.php?option=com_content&view=section&id=14&Itemid=155'; } } function mostrarOcultar() { document.getElementById('btnIdioma').className = 'selectorIdioma'; document.getElementById('menuOpcionesIdioma').style.display = 'none'; document.getElementById('btnSuscribirseBoletin').className = 'selectorBoletin'; document.getElementById('menuFormularioBoletin').style.display = 'none'; }