/***********************************************
* 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="250px" //set default menu width.
var Bullet='
'
var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
// Below Links are for FP Pages only
// Links for About Menu
linkset[0]='' + Bullet + 'About Us'
// linkset[0]+='
' //Optional Separator or any HTML Component
linkset[0]+='' + Bullet + 'The Team (Key Personnel)'
// Links for Services Menu
linkset[1]='' + Bullet + 'Practice Areas'
linkset[1]+='' + Bullet + 'Experience'
//For more categories use the below code: if one Set is of 4 Links then Name it as linkset[1] & for other sets name as linkset[2], linkset[3] & so on...
//linkset[1]='MSNBC'
//linkset[1]+='MSNBC'
////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
}
//- - - - To the Function a new parameter has bee added "mleft" mleft is actually specified for aligning the menu to left &/or right
//- - - - The number for the mleft will be given within the function call command. below in the Function mleft has been given twice
//- - - - where numbers are used to align the menu.
//- - - - Note: mleft should be specified within the "showmenu()" function brackets after "which" & before "optWidth" this should be intact.
function showmenu(e, which, mleft, 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