/*********************************************** * 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 = "30px" //set default menu width. var linkset = new Array() //SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT linkset[0]='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' linkset[0]+='
' ////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 = which menuobj.style.width = (typeof optWidth != "undefined")? optWidth : defaultMenuWidth 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