function mensaje(textox) { alert(textox); } function denttro(text) { if (text == 'ebe_DISABLED') { window.location.href = "/revistas/"+text+"/pagina/despedida"; } else { window.location.href = "/revistas/"+text+"/portada/"; } } function expandOverlay() { texto = "
x
"; var overlay = document.createElement("div"); overlay.setAttribute("id","overlay"); overlay.setAttribute("class", "overlay"); overlay.setAttribute("onClick", "restoreOverlay();event.stopPropagation()"); /* overlay.style.backgroundColor = "rgba(100,100,100,.5)"; */ overlay.style.background = "url(http://enfermeria21.com/wp-content/themes/uci-e21-principal/images/comunidadmetas/capa-transparente.png)"; overlay.style.position = "fixed"; overlay.style.top = "1px"; overlay.style.zIndex = "50"; overlay.style.width = "100%"; var body = document.body, html = document.documentElement; var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); overlay.style.height = height + "px"; if (texto) { var tx = document.createElement("div"); tx.innerHTML = texto; tx.style.position = 'relative'; tx.style.top = '100px'; tx.style.color = "#FFF"; overlay.appendChild(tx); } document.body.appendChild(overlay); } function restoreOverlay() { document.body.removeChild(document.getElementById("overlay")); }