/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1 [women's]
var menu1=new Array()
menu1[0]='<a href="/cgi-bin/store/cpshop.cgi/wmncpslvtee/">Cap Sleeve Tees</a>'
menu1[1]='<a href="/cgi-bin/store/cpshop.cgi/wmndarktees">Dark Tees</a>'
menu1[2]='<a href="/cgi-bin/store/cpshop.cgi/hoodies">Hoodies</a>'
menu1[3]='<a href="/cgi-bin/store/cpshop.cgi/jerseytees">Jersey Tees</a>'
menu1[4]='<a href="/cgi-bin/store/cpshop.cgi/wmnlightee">Light Tees</a>'
menu1[5]='<a href="/cgi-bin/store/cpshop.cgi/wmnlngslvdrt">Long Sleeved Dark Ts</a>'
menu1[6]='<a href="/cgi-bin/store/cpshop.cgi/wmnlngslvt">Long Sleeved Tees</a>'
menu1[7]='<a href="/cgi-bin/store/cpshop.cgi/rglnt">Raglan Tees</a>'
menu1[8]='<a href="/cgi-bin/store/cpshop.cgi/rglhod">Raglan Hoodies</a>'
menu1[9]='<a href="/cgi-bin/store/cpshop.cgi/rngrt">Ringer Tees</a>'
menu1[10]='<a href="/cgi-bin/store/cpshop.cgi/spgtnk">Spaghetti Tanks</a>'
menu1[11]='<a href="/cgi-bin/store/cpshop.cgi/tng">Thongs</a>'
menu1[12]='<a href="/cgi-bin/store/cpshop.cgi/wmntrkst">Track Suits</a>'
menu1[13]='<a href="/cgi-bin/store/cpshop.cgi/tnktop">Tank Top</a>'
menu1[14]='<a href="/cgi-bin/store/cpshop.cgi/vntees">V-Neck tees</a>'
menu1[15]='<a href="/cgi-bin/store/cpshop.cgi/pldsntees">Plus D. S-Neck Ts</a>'
menu1[16]='<a href="/cgi-bin/store/cpshop.cgi/plsntees">Plus S-Neck Ts</a>'
menu1[17]='<a href="/cgi-bin/store/cpshop.cgi/pldvntees">Plus D. V-Neck Ts</a>'
menu1[18]='<a href="/cgi-bin/store/cpshop.cgi/plsvtees">Plus V-Neck Ts</a>'
menu1[19]='<a href="/cgi-bin/store/cpshop.cgi/matdtees">Maternity Drk Ts</a>'
menu1[20]='<a href="/cgi-bin/store/cpshop.cgi/mattees">Maternity Ts</a>'

//Contents for menu 2 [men's]
var menu2=new Array()
menu2[0]='<a href="/cgi-bin/store/cpshop.cgi/mnstee">Tees</a>'
menu2[1]='<a href="/cgi-bin/store/cpshop.cgi/mnsbsblljer">Baseball Jerseys</a>'
menu2[2]='<a href="/cgi-bin/store/cpshop.cgi/mnsboxer">Boxers</a>'
menu2[3]='<a href="/cgi-bin/store/cpshop.cgi/drktee">Dark Tees</a>'
menu2[4]='<a href="/cgi-bin/store/cpshop.cgi/fitee">Fitted Tees</a>'
menu2[5]='<a href="/cgi-bin/store/cpshop.cgi/glftee">Golf Shirts</a>'
menu2[6]='<a href="/cgi-bin/store/cpshop.cgi/hodswtsrt">Hooded Sweatshirts</a>'
menu2[7]='<a href="/cgi-bin/store/cpshop.cgi/lgtee">Light Tees</a>'
menu2[8]='<a href="/cgi-bin/store/cpshop.cgi/lngslvte">Long Sleeved Tees</a>'
menu2[9]='<a href="/cgi-bin/store/cpshop.cgi/lngslvdrte">Long Sleeved Dark Ts</a>'
menu2[10]='<a href="/cgi-bin/store/cpshop.cgi/orcotee">Organic Cotton Tees</a>'
menu2[11]='<a href="/cgi-bin/store/cpshop.cgi/rngrtee">Riger Tees</a>'
menu2[11]='<a href="/cgi-bin/store/cpshop.cgi/ylwtee">Yellow Tees</a>'
menu2[12]='<a href="/cgi-bin/store/cpshop.cgi/grntee">Green Tees</a>'
menu2[13]='<a href="/cgi-bin/store/cpshop.cgi/rngrtee">Ringer Tees</a>'
menu2[14]='<a href="/cgi-bin/store/cpshop.cgi/slvlstee">Sleeveless Tees</a>'

//Contents for menu 3 [home & office]
var menu3=new Array()
menu3[0]='<a href="/cgi-bin/store/cpshop.cgi/arpn">Arpon</a>'
menu3[1]='<a href="/cgi-bin/store/cpshop.cgi/frmpnl">Framed Print [Panel]</a>'
menu3[2]='<a href="/cgi-bin/store/cpshop.cgi/frmlrg">Framed Print [Large]</a>'
menu3[3]='<a href="/cgi-bin/store/cpshop.cgi/frmsmll">Framed Print [Small]</a>'
menu3[4]='<a href="/cgi-bin/store/cpshop.cgi/frmtl">Framed Tile</a>'
menu3[5]='<a href="/cgi-bin/store/cpshop.cgi/mgncrcl">Magnet [Circle]</a>'
menu3[6]='<a href="/cgi-bin/store/cpshop.cgi/mgncrcl10">Magnet [Circle 10pk]</a>'
menu3[7]='<a href="/cgi-bin/store/cpshop.cgi/mgncrcl100">Magnet [Circle 100pk]</a>'
menu3[8]='<a href="/cgi-bin/store/cpshop.cgi/mgnrect">Magnet [Rect.]</a>'
menu3[9]='<a href="/cgi-bin/store/cpshop.cgi/mgnrect10">Magnet [Rect. 10pk]</a>'
menu3[10]='<a href="/cgi-bin/store/cpshop.cgi/mgnrect100">Magnet [Rect. 100pk]</a>'
menu3[11]='<a href="/cgi-bin/store/cpshop.cgi/mspad">Mousepad</a>'
menu3[12]='<a href="/cgi-bin/store/cpshop.cgi/mug">Mug</a>'
menu3[13]='<a href="/cgi-bin/store/cpshop.cgi/muglrg">Mug [Large]</a>'
menu3[14]='<a href="/cgi-bin/store/cpshop.cgi/thrpill">Throw Pillow</a>'
menu3[15]='<a href="/cgi-bin/store/cpshop.cgi/tlcstr">Tile Coaster</a>'
menu3[16]='<a href="/cgi-bin/store/cpshop.cgi/tlkpskbx">Tile Keepsake Box</a>'
menu3[17]='<a href="/cgi-bin/store/cpshop.cgi/wllclck">Wall Clock</a>'



//Contents for menu 4 [accessories]
var menu4=new Array()
menu4[0]='<a href="/cgi-bin/store/cpshop.cgi/bybi">Baby Bib</a>'
menu4[1]='<a href="/cgi-bin/store/cpshop.cgi/infbdyst">Infant Bodysuit</a>'
menu4[2]='<a href="/cgi-bin/store/cpshop.cgi/cap">Cap</a>'
menu4[3]='<a href="/cgi-bin/store/cpshop.cgi/trkrht">Trucker Hat</a>'
menu4[4]='<a href="/cgi-bin/store/cpshop.cgi/dgtees">Dog Tees</a>'
menu4[5]='<a href="/cgi-bin/store/cpshop.cgi/bgmess">Bag [Messanger]</a>'
menu4[6]='<a href="/cgi-bin/store/cpshop.cgi/bgtot">Bag [Tote]</a>'
menu4[7]='<a href="/cgi-bin/store/cpshop.cgi/btn225">Button [2.25"]</a>'
menu4[8]='<a href="/cgi-bin/store/cpshop.cgi/btn22510">Button [2.25" 10pk]</a>'
menu4[9]='<a href="/cgi-bin/store/cpshop.cgi/btn225100">Button [2.25" 100pk]</a>'
menu4[10]='<a href="/cgi-bin/store/cpshop.cgi/btn1">Mini Button</a>'
menu4[11]='<a href="/cgi-bin/store/cpshop.cgi/btn110">Mini Button [10pk]</a>'
menu4[12]='<a href="/cgi-bin/store/cpshop.cgi/btn1100">Mini Button [100pk]</a>'
menu4[13]='<a href="/cgi-bin/store/cpshop.cgi/hldorn">Rounded Ornament</a>'
menu4[14]='<a href="/cgi-bin/store/cpshop.cgi/jrnl">Journal</a>'
menu4[15]='<a href="/cgi-bin/store/cpshop.cgi/stkrovl">Oval Sticker</a>'
menu4[16]='<a href="/cgi-bin/store/cpshop.cgi/stkrect">Rect. Sticker</a>'
menu4[17]='<a href="/cgi-bin/store/cpshop.cgi/tdybr">Teddy Bear</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#617325'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu