/***********************************************
* 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="150px" //set default menu width.

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

linkset[0]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT">View All</a>'
linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=bow">Bow Kites</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&keywords=package">Package Deals</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=surf">Kitesurfing</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=land">Land/Snow Foils</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=trainer">Trainers</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=used">Demo/Used &amp; Closeout</a>'
linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=naish">Naish</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=cabrinha">Cabrinha</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=liquid">Liquid Force</a>'
linkset[0]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=D5KT&keywords=best">Best</a>'

linkset[1]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=kiteboard">View All Kiteboards</a>'
linkset[1]+='<hr>' //Optional Separator
linkset[1]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=cabrinha">Cabrinha</a>'
linkset[1]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=naish">Naish</a>'
linkset[1]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=liquid">Liquid Force</a>'
linkset[1]+='<hr>' //Optional Separator
linkset[1]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=balance">Balance Boards</a>'
linkset[1]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=used">Demo/Used &amp; Closeout</a>'

linkset[2]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=landboard">View All</a>'

linkset[3]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=F5BD&keywords=standup">View All SUP Boards</a>'
linkset[3]+='<hr>' //Optional Separator
linkset[3]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA&keywords=paddle">Paddles</a>'
linkset[3]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA&keywords=standup">All SUP Accessories</a>'

linkset[4]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA">View All</a>'
linkset[4]+='<hr>' //Optional Separator
linkset[4]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA&keywords=leash">Leashes</a>'
linkset[4]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA&keywords=foot">Footstraps/Beds</a>'
linkset[4]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&keywords=bag">Bags</a>'
linkset[4]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA&keywords=rack">Rack Accessories</a>'
linkset[4]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=L5BA&keywords=standup">SUP Accessories</a>'

linkset[5]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=N5BL">View All</a>'
linkset[5]+='<hr>' //Optional Separator
linkset[5]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=N5BL&keywords=naish">Naish</a>'
linkset[5]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=N5BL&keywords=cabrinha">Cabrinha</a>'

linkset[6]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=P5BA">View All</a>'
linkset[6]+='<hr>' //Optional Separator
linkset[6]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=P5BA&keywords=strap">Trim Straps</a>'
linkset[6]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=P5BA&keywords=loop">Trim Loops</a>'
linkset[6]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=P5BA&keywords=leash">Leashes</a>'

linkset[7]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&keywords=water">View All</a>'
linkset[7]+='<hr>' //Optional Separator
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=helmet+and+water">Helmets</a>'
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=wetsuit">Wetsuits</a>'
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=mitt">Mitts</a>'
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=hood">Hoods</a>'
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=vest">Impact Vests</a>'
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=pump">Pumps</a>'
linkset[7]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=bladder">Bladders</a>'

linkset[8]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&keywords=land">View All</a>'
linkset[8]+='<hr>' //Optional Separator
linkset[8]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=R5GR&keywords=helmet+and+land">Helmets</a>'

linkset[9]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=T5SG">View All</a>'
linkset[9]+='<hr>' //Optional Separator
linkset[9]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&keywords=bag">Board Bags</a>'
linkset[9]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=T5SG&keywords=shirt">T-shirts</a>'
linkset[9]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=T5SG&keywords=short">Boardshorts</a>'

linkset[10]='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=H5HR">View All</a>'
linkset[10]+='<hr>' //Optional Separator
linkset[10]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=H5HR&keywords=cabrinha">Cabrinha</a>'
linkset[10]+='<a href="http://www.mackiteboarding.com/cgi-bin/shopper.cgi?search=action&category=H5HR&keywords=dakine">Dakine</a>'

////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

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<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.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.style.visibility="hidden"
}

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

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",1500)
}

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

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