/***********************************************
* 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="300px" //set default menu width.
var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
var httpURL = 'http://hokevents.weburi.ca';
linkset[0] = 'HOK in Canada';
linkset[0] += 'Brochures';
linkset[0] += 'Hospitality';
linkset[1] = 'HOK Events';
linkset[1] += 'Speaking Engagements';
linkset[1] += 'HOK in the Community';
linkset[2] = 'King & Bathurst: From Good to Great';
linkset[2] += 'Life@HOK';
linkset[2] += 'The Climate Project (TM) Canada ';
linkset[2] += 'HOK Postcards';
linkset[2] += 'Ideas@HOK';
linkset[2] += 'SPOTTED';
linkset[2] += 'HOK Blue Ocean';
linkset[3] = 'Recent Coverage';
linkset[3] += 'Awards';
linkset[4] = 'We want to hear from you';
linkset[4] += 'HOK Office Locations';
////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, dropDownPosition){
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= 0) y += img.y;
return y;
}