//Pop-it menu- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<div class="menuitems"><a href="http://www.laganzua.net/noticias/noticias1/noticias.html">noticias</a></div>'
linkset[0]+='<div class="menuitems"><a href="http://www.laganzua.net/noticias/conciertos/">agenda de conciertos</a></div>'
linkset[0]+='<div class="menuitems"><a href="http://www.laganzua.net/noticias/festivales/festivales.html">agenda de festivales</a></div>'
linkset[0]+='<div class="menuitems"><a href="http://www.laganzua.net/noticias/cronicas/cronicas.html">crónicas de directos</a></div>'

linkset[1]='<div class="menuitems"><a href="http://www.laganzua.net/entrevistas/">entrevistas</a></div>'
linkset[1]+='<div class="menuitems"><a href="http://www.laganzua.net/entrevistas/masentrevistas.php">más entrevistas</a></div>'

linkset[2]='<div class=menuitems><a href="http://www.laganzua.net/discos/discos-pop.php">discos pop</a></div>'
linkset[2]+='<div class=menuitems><a href="http://www.laganzua.net/discos/discos-rock.php">discos rock, metal</a></div>'
linkset[2]+='<div class=menuitems><a href="http://www.laganzua.net/discos/discos-hiphop-mestizaje.php">discos hip hop, varios</a></div>'
linkset[2]+='<div class=menuitems><a href="http://www.laganzua.net/discos/discos.php">más discos</a></div>'

linkset[3]='<div class="menuitems"><a href="http://www.laganzua.net/cronicas-conciertos/">crónicas de conciertos</a></div>'
linkset[3]+='<div class="menuitems"><a href="http://www.laganzua.net/cronicas-conciertos/archivo/mascronicas.php">más crónicas</a></div>'

linkset[4]='<div class="menuitems"><a href="http://www.laganzua.net/zapping/gruposmusica/">grupos música: dossieres</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.laganzua.net/star/tele/tele.html">tele: música de anuncios</a></div>'
linkset[4]+='<div class="menuitems"><a href="http://www.laganzua.net/star/radio/radio.html">radio: programas, salas</a></div>'

linkset[5]='<div class="menuitems"><a href="http://www.laganzua.net/foro_musica/">foros de música</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.laganzua.net/webs/webs.html">otras webs</a></div>'
linkset[5]+='<div class="menuitems"><a href="http://www.laganzua.net/guestbook/">libro de visitas</a></div>'
linkset[5]+='<div class="menuitems"><a href=javascript:ventanajuego()>juego: el termómetro</a></div>'

linkset[6]='<div class="menuitems"><a href="http://www.laganzua.net/cronicas-conciertos/">crónicas de conciertos</a></div>'
linkset[6]+='<div class="menuitems"><a href="http://www.laganzua.net/cronicas-conciertos/archivo/mascronicas.php">más crónicas</a></div>'

linkset[7]='<div class="menuitems"><a href="http://www.laganzua.net/conciertos/">conciertos destacados</a></div>'
linkset[7]+='<div class="menuitems"><a href="http://www.laganzua.net/conciertos/agendaconciertos.php">agenda de conciertos</a></div>'

////No need to edit beyond here
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu





function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function cambioimagen(referenciaimagen,cambiopor) 


 {


if (version == "1") {
document.images[referenciaimagen].src = eval(cambiopor + ".src")


 }


}

// Aviso navegadores caducos
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if ((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4)) version = "1";
//else alert("Su navegador es anterior a la versión  3\nde Netscape o a la 4 de Internet\nExplorer.\nNo podrá visualizar correctamente\los javascripts");

if (version == "1")
{ 
dibujo1 = new Image(65,14);
dibujo1.src = "http://www.laganzua.net/noticias/imagenes/botonprincipal.gif";
dibujo2 = new Image(65,14);
dibujo2.src = "http://www.laganzua.net/noticias/imagenes/botonprincipalup.gif";
dibujo3 = new Image(8,240);
dibujo3.src = "http://www.laganzua.net/noticias/imagenes/barra08.gif";
dibujo4 = new Image(8,240);
dibujo4.src = "http://www.laganzua.net/noticias/imagenes/barranoti08.gif";
dibujo5 = new Image(8,240);
dibujo5.src = "http://www.laganzua.net/noticias/imagenes/barraconci08.gif";
dibujo6 = new Image(8,240);
dibujo6.src = "http://www.laganzua.net/noticias/imagenes/barracronicas08.gif";
dibujo7 = new Image(8,240);
dibujo7.src = "http://www.laganzua.net/noticias/imagenes/barrafesti08.gif";
dibujo8 = new Image(8,240);
dibujo8.src = "http://www.laganzua.net/noticias/imagenes/barraentre08.gif";
dibujo9 = new Image(8,240);
dibujo9.src = "http://www.laganzua.net/noticias/imagenes/barradiscos08.gif";
dibujo10 = new Image(8,240);
dibujo10.src = "http://www.laganzua.net/noticias/imagenes/barrablog08.gif";
dibujo11 = new Image(8,240);
dibujo11.src = "http://www.laganzua.net/noticias/imagenes/barrazapping08.gif";
dibujo12 = new Image(8,240);
dibujo12.src = "http://www.laganzua.net/noticias/imagenes/barracomu08.gif";
dibujo13 = new Image(8,240);
dibujo13.src = "http://www.laganzua.net/noticias/imagenes/barrafotos08.gif";
}


function openPopup(){ 
window.open("","_popup","toolbars=0,width=325,height=250,left=400,top=150"); 
return true; 
} 


function openPopupbusca(){ 
window.open("","_popup","toolbars=0,scrollbars=yes,width=370,height=370,left=200,top=150"); 
return true; 
} 


function ventanaboletin()
{
open("http://www.laganzua.net/boletin.php","boletin","toolbar=no,directories=no,menubar=no,resizable=no,width=325,height=290,left=200,top=100");
}

function ventanajuego()
{
open("http://www.laganzua.net/games/eltermometro.html","juego","toolbar=no,directories=no,menubar=no,resizable=no,width=570,height=420,left=200,top=100");
}

function copyright()
{
open("http://www.laganzua.net/copyright.html","copyright","toolbar=no,directories=no,menubar=no,resizable=no,width=370,height=230");
}