//new this month
var menu1=new Array()
menu1[0]='<a href="http://chanluu.com/category-s/598.htm">Blue Lace Agate</a>'
menu1[1]='<a href="http://chanluu.com/category-s/599.htm">New Mens</a>'
menu1[2]='<a href="http://chanluu.com/category-s/589.htm">Spring 2012 Apparel</a>'
menu1[3]='<a href="http://chanluu.com/category-s/593.htm">Pyrite & Crystals</a>'
menu1[4]='<a href="http://chanluu.com/category-s/594.htm">Mens Wooden Skulls</a>'
menu1[5]='<a href="http://chanluu.com/category-s/595.htm">Friendship Bracelets</a>'
menu1[6]='<a href="http://chanluu.com/category-s/596.htm">All New Chiffon Bracelets</a>'
menu1[7]='<a href="http://chanluu.com/category-s/587.htm">Abalone</a>'
menu1[8]='<a href="http://chanluu.com/category-s/588.htm">Mew Mens Rosaries and Wooden Skulls</a>'
menu1[9]='<a href="http://chanluu.com/category-s/584.htm">Valentines Day 2012</a>'
menu1[10]='<a href="http://chanluu.com/category-s/580.htm">New Nugget Wraps</a>'
menu1[11]='<a href="http://chanluu.com/category-s/581.htm">Semi-Precious Hoops</a>'
menu1[12]='<a href="http://chanluu.com/category-s/575.htm">All New Transition Scarves</a>'
menu1[13]='<a href="http://chanluu.com/category-s/474.htm">View All New This Month</a>'


//WRAP bracelets
var menu2=new Array()
menu2[0]='<a href="http://chanluu.com/category-s/359.htm">Classics</a>'
menu2[1]='<a href="http://chanluu.com/category-s/354.htm">Semi-Precious Stones</a>'
menu2[2]='<a href="http://chanluu.com/category-s/356.htm">Large Semi-Precious Stones</a>'
menu2[3]='<a href="http://chanluu.com/category-s/348.htm">Mixed Stones & Nuggets</a>'
menu2[4]='<a href="http://chanluu.com/category-s/358.htm">Swarovski Crystals</a>'
menu2[5]='<a href="http://chanluu.com/category-s/551.htm">Swarovski Pearls</a>'
menu2[6]='<a href="http://chanluu.com/category-s/339.htm">Cotton Cord Wraps</a>'
menu2[7]='<a href="http://chanluu.com/category-s/497.htm">Gypsy Leather</a>'
menu2[8]='<a href="http://chanluu.com/category-s/583.htm">Thread Wraps</a>'
menu2[9]='<a href="http://chanluu.com/category-s/347.htm">Skulls</a>'
menu2[10]='<a href="http://chanluu.com/category-s/546.htm">Chain</a>'
menu2[11]='<a href="http://chanluu.com/category-s/364.htm">Novelty</a>'
menu2[12]='<a href="http://chanluu.com/category-s/340.htm">Versatile - Bracelet/Necklaces</a>'
menu2[13]='<a href="http://chanluu.com/category-s/335.htm">View All Wrap Bracelets</a>'

// bracelets
var menu3=new Array()
menu3[0]='<a href="http://chanluu.com/category-s/378.htm">Classic Singles</a>'
menu3[1]='<a href="http://chanluu.com/category-s/516.htm">Semi-Precious Stones</a>'
menu3[2]='<a href="http://chanluu.com/category-s/367.htm">Beaded Cuffs</a>'
menu3[3]='<a href="http://chanluu.com/category-s/368.htm">Friendship Bracelets</a>'
menu3[4]='<a href="http://chanluu.com/category-s/373.htm">Leather Cuffs</a>'
menu3[5]='<a href="http://chanluu.com/category-s/375.htm">Nugget Cuffs</a>'
menu3[6]='<a href="http://chanluu.com/category-s/496.htm">Gypsy Leather</a>'
menu3[7]='<a href="http://chanluu.com/category-s/502.htm">Swarovski Crystals</a>'
menu3[8]='<a href="http://chanluu.com/category-s/571.htm">Chain</a>'
menu3[9]='<a href="http://chanluu.com/category-s/504.htm">Diamonds</a>'
menu3[10]='<a href="http://chanluu.com/category-s/374.htm">Skulls</a>'
menu3[11]='<a href="http://chanluu.com/category-s/597.htm">Chiffon Bracelets</a>'
menu3[12]='<a href="http://chanluu.com/category-s/379.htm">Bangles</a>'
menu3[13]='<a href="http://chanluu.com/category-s/531.htm">Hand Jewelry</a>'
menu3[14]='<a href="http://chanluu.com/category-s/380.htm">Novelty</a>'
menu3[15]='<a href="http://chanluu.com/category-s/366.htm">View All Bracelets</a>'

// necklaces
var menu4=new Array()
menu4[0]='<a href="http://chanluu.com/category-s/386.htm">Tribal</a>'
menu4[1]='<a href="http://chanluu.com/category-s/391.htm">Cotton Cord</a>'
menu4[2]='<a href="http://chanluu.com/category-s/392.htm">Charm Necklaces</a>'
menu4[3]='<a href="http://chanluu.com/category-s/395.htm">Diamonds</a>'
menu4[4]='<a href="http://chanluu.com/category-s/398.htm">Pendants</a>'
menu4[5]='<a href="http://chanluu.com/category-s/501.htm">Swarovski Crystals</a>'
menu4[6]='<a href="http://chanluu.com/category-s/399.htm">Statement</a>'
menu4[7]='<a href="http://chanluu.com/category-s/401.htm">Layering</a>'
menu4[8]='<a href="http://chanluu.com/category-s/407.htm">Short</a>'
menu4[9]='<a href="http://chanluu.com/category-s/402.htm">Versatile - Bracelet/Necklace</a>'
menu4[10]='<a href="http://chanluu.com/category-s/381.htm">View All Necklaces</a>'
// earrings
var menu5=new Array()
menu5[0]='<a href="http://chanluu.com/category-s/411.htm">Tribal</a>'
menu5[1]='<a href="http://chanluu.com/category-s/417.htm">Feathers</a>'
menu5[2]='<a href="http://chanluu.com/category-s/542.htm">Lace Crochet</a>'
menu5[3]='<a href="http://chanluu.com/category-s/418.htm">Teardrops</a>'
menu5[4]='<a href="http://chanluu.com/category-s/419.htm">Graduated Teardrops</a>'
menu5[5]='<a href="http://chanluu.com/category-s/421.htm">Hoops</a>'
menu5[6]='<a href="http://chanluu.com/category-s/581.htm">Semi-Precious Hoops</a>'
menu5[7]='<a href="http://chanluu.com/category-s/532.htm">Semi-Precious Drops</a>'
menu5[8]='<a href="http://chanluu.com/category-s/420.htm">Graduated Hoops</a>'
menu5[9]='<a href="http://chanluu.com/category-s/503.htm">Swarovski Crystals</a>'
menu5[10]='<a href="http://chanluu.com/category-s/560.htm">Diamonds</a>'
menu5[11]='<a href="http://chanluu.com/category-s/413.htm">Chandeliers</a>'
menu5[12]='<a href="http://chanluu.com/category-s/424.htm">Novelty</a>'
menu5[13]='<a href="http://chanluu.com/category-s/382.htm">View All Earrings</a>'

var menu6=new Array()
menu6[0]='<a href="http://chanluu.com/category-s/428.htm">Classics</a>'
menu6[1]='<a href="http://chanluu.com/category-s/429.htm">Skulls</a>'
menu6[2]='<a href="http://chanluu.com/category-s/426.htm">Semi-Precious Stones</a>'
menu6[3]='<a href="http://chanluu.com/category-s/427.htm">Mixed Stones & Nuggets</a>'
menu6[4]='<a href="http://chanluu.com/category-s/430.htm">Large Nuggets</a>'
menu6[5]='<a href="http://chanluu.com/category-s/431.htm">Novelty</a>'
menu6[6]='<a href="http://chanluu.com/category-s/425.htm">View All Mens Wrap Bracelets</a>'

var menu7=new Array()
menu7[0]='<a href="http://chanluu.com/category-s/456.htm">Classic Singles</a>'
menu7[1]='<a href="http://chanluu.com/category-s/518.htm">Semi-Precious Stones</a>'
menu7[2]='<a href="http://chanluu.com/category-s/553.htm">Leather Cuffs</a>'
menu7[3]='<a href="http://chanluu.com/category-s/517.htm">Stretch</a>'
menu7[4]='<a href="http://chanluu.com/category-s/519.htm">Cotton Cord</a>'
menu7[5]='<a href="http://chanluu.com/category-s/520.htm">Nylon Cord</a>'
menu7[6]='<a href="http://chanluu.com/category-s/453.htm">Crosses</a>'
menu7[7]='<a href="http://chanluu.com/category-s/454.htm">Skulls</a>'
menu7[8]='<a href="http://chanluu.com/category-s/458.htm">Large Nuggets</a>'
menu7[9]='<a href="http://chanluu.com/category-s/457.htm">Novelty</a>'
menu7[10]='<a href="http://chanluu.com/category-s/433.htm">View All Mens Bracelets</a>'

var menu8=new Array()
menu8[0]='<a href="http://chanluu.com/category-s/459.htm">Rosaries</a>'
menu8[1]='<a href="http://chanluu.com/category-s/460.htm">Dagger Charms</a>'
menu8[2]='<a href="http://chanluu.com/category-s/461.htm">Pendants</a>'
menu8[3]='<a href="http://chanluu.com/category-s/463.htm">Novelty</a>'
menu8[4]='<a href="http://chanluu.com/category-s/434.htm">View All Mens Necklaces</a>'

var menu9=new Array()
menu9[0]='<a href="http://chanluu.com/category-s/465.htm">Ikat</a>'
menu9[1]='<a href="http://chanluu.com/category-s/466.htm">Animal Prints</a>'
menu9[2]='<a href="http://chanluu.com/category-s/467.htm">Striped</a>'
menu9[3]='<a href="http://chanluu.com/category-s/577.htm">Dip Dyed</a>'
menu9[4]='<a href="http://chanluu.com/category-s/468.htm">Shadow Dyed</a>'
menu9[5]='<a href="http://chanluu.com/category-s/576.htm">Tie Dyed</a>'
menu9[6]='<a href="http://chanluu.com/category-s/578.htm">Lace</a>'
menu9[7]='<a href="http://chanluu.com/category-s/469.htm">Checkered</a>'
menu9[8]='<a href="http://chanluu.com/category-s/471.htm">Polka Dots</a>'
menu9[9]='<a href="http://chanluu.com/category-s/472.htm">Metallic</a>'
menu9[10]='<a href="http://chanluu.com/category-s/540.htm">Cut Out</a>'
menu9[11]='<a href="http://chanluu.com/category-s/473.htm">Solids</a>'
menu9[12]='<a href="http://chanluu.com/category-s/579.htm">Novelty</a>'
menu9[13]='<a href="http://chanluu.com/category-s/384.htm">View All Scarves</a>'

// tops
// sweaters
// dresses
// skirts
// bras

var menu10=new Array()
menu10[0]='<a href="http://chanluu.com/category-s/443.htm">Embroidery/Detail</a>'
menu10[1]='<a href="http://chanluu.com/category-s/441.htm">Empire-Waisted</a>'
menu10[2]='<a href="http://chanluu.com/category-s/442.htm">Maxi</a>'
menu10[3]='<a href="http://chanluu.com/category-s/439.htm">Crystal</a>'
menu10[4]='<a href="http://chanluu.com/category-s/440.htm">Slip Dresses</a>'
menu10[5]='<a href="http://chanluu.com/category-s/538.htm">Shirt Dresses</a>'
menu10[6]='<a href="http://chanluu.com/category-s/436.htm">View All Dresses</a>'

var menu11=new Array()
menu11[0]='<a href="http://chanluu.com/category-s/444.htm">Blouses</a>'
menu11[1]='<a href="http://chanluu.com/category-s/445.htm">Ts and Tanks</a>'
menu11[2]='<a href="http://chanluu.com/category-s/446.htm">Sweaters</a>'
menu11[3]='<a href="http://chanluu.com/category-s/447.htm">Cardigans</a>'
menu11[4]='<a href="http://chanluu.com/category-s/448.htm">Bandeau Bras</a>'
menu11[5]='<a href="http://chanluu.com/category-s/449.htm">Triangle Bras</a>'
menu11[6]='<a href="http://chanluu.com/category-s/437.htm">View All Tops</a>'

var menu12=new Array()
menu12[0]='<a href="http://chanluu.com/category-s/450.htm">Shorts</a>'
menu12[1]='<a href="http://chanluu.com/category-s/451.htm">Skirts</a>'
menu12[2]='<a href="http://chanluu.com/category-s/438.htm">View All Bottoms</a>'
		
//shop by story		
var menu13=new Array()

menu13[0]='<a href="http://chanluu.com/category-s/582.htm">All New Mens</a>'
menu13[1]='<a href="http://chanluu.com/category-s/585.htm">New Mens Crosses and Skulls</a>'
menu13[2]='<a href="http://chanluu.com/category-s/573.htm">Cool Greys</a>'
menu13[3]='<a href="http://chanluu.com/category-s/574.htm">Midnight Blues</a>'
menu13[4]='<a href="http://chanluu.com/category-s/567.htm">Braided Leather</a>'
menu13[5]='<a href="http://chanluu.com/category-s/569.htm">Purple</a>'
menu13[6]='<a href="http://chanluu.com/category-s/570.htm">All New Chiffon Bracelets</a>'
menu13[7]='<a href="http://chanluu.com/category-s/566.htm">Gypsy Leather Cotton Cord Mixes</a>'
menu13[8]='<a href="http://chanluu.com/category-s/557.htm">Pearl Presents</a>'
menu13[9]='<a href="http://chanluu.com/category-s/558.htm">Pyrite</a>'
menu13[10]='<a href="http://chanluu.com/category-s/553.htm">Mens Leather Cuffs</a>'


	
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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=-500
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}
