/*********************************************** * Pop-it menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ var defaultMenuWidth="200px" //set default menu width. var heightindex=new Array() var linkset=new Array() //SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT heightindex[0]=0; linkset[0]='  Artesãos  Feiras/Exposições  Fornecedores de Matéria-Prima  Lojas'; heightindex[1]=1; linkset[1]=''; heightindex[2]=2; linkset[2]=''; heightindex[3]=3; linkset[3]=''; heightindex[4]=4; linkset[4]=''; heightindex[5]=5; linkset[5]='  Artistas  Cabeleireiros  Editoras  Empresários  Estilistas  Estúdios  Fábricas CDs  Luz  Maquilhagem  Músicos  Palcos  Som  Técnicos'; heightindex[6]=6; linkset[6]='  Açores  Aveiro  Beja  Braga  Bragança  Castelo Branco  Coimbra  Évora  Faro  Guarda  Leiria  Lisboa  Madeira  Portalegre  Porto  Santarém  Setúbal  Viana do Castelo  Vila Real  Viseu'; ////No need to edit beyond here var ie5=document.all && !window.opera var ns6=document.getElementById if (ie5||ns6) document.write('
') function iecompattest(){ return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body } function showmenu(e, which, optWidth){ if (!document.all&&!document.getElementById) return clearhidemenu() menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu") menuobj.innerHTML=linkset[which] if(linkset[which]!='') menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth; else menuobj.style.width=0; menuobj.contentwidth=menuobj.offsetWidth menuobj.contentheight=menuobj.offsetHeight /* eventX=ie5? event.clientX : e.clientX eventY=ie5? event.clientY : e.clientY //Find out how close the mouse is to the corner of the window var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY //if the horizontal distance isn't enough to accomodate the width of the context menu if (rightedge