/***********************************************
* 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:Events
var menu1=new Array()
menu1[0]='<a href="current_events.html">EARTH SPIRIT CURRENT EVENTS</a>'
menu1[1]='<a href="schedule_an_event.html">SCHEDULE AN EVENT</a>'
menu1[2]='<a href="other_current_events.html">OTHER CURRENT EVENTS</a>'
menu1[3]='<a href="other_current_events.html">LIST YOUR EVENT</a>'

//Contents for menu 2:Change your life
var menu2=new Array()
menu2[0]='<a href="change_your_body.html">CHANGE YOUR BODY</a>'
menu2[1]='<a href="change_your_mind.html">CHANGE YOUR MIND</a>'
menu2[2]='<a href="change_your_spirit.html">CHANGE YOUR SPIRIT</a>'

//Contents for menu 3:Therapist
var menu3=new Array()
menu3[0]='<a href="findatherapist_lightworker.html">FIND A THERAPIST / LIGHT WORKER</a>'
menu3[1]='<a href="list_your_information.html">LIST YOUR INFORMATION</a>'

//Contents for menu 4:Products
var menu4=new Array()
menu4[0]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=1;search=Bulk%20Herbs%20%20Spices%20Supplements;limit=category;v=2.0;layout=system:layout_0100.xsl">A-Z Bulk Herbs, Spices, Supplements</a>'
menu4[1]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=2;search=Books%20CDs%20DVDs;limit=category;v=2.0;layout=system:layout_0100.xsl">Books, DVDs, CDs</a>'
menu4[2]='<a href="/contact.html">Bulk Food</a>'
menu4[3]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=3;search=Bulk%20Food%20%20Emergency%20Storage;limit=category;v=2.0;layout=system:layout_0100.xsl">Emergency Kit</a>'
menu4[4]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=4;search=Candles;limit=category;v=2.0;layout=system:layout_0100.xsl">Online Coaching</a>'
menu4[5]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=5;search=Chocolate;limit=category;v=2.0;layout=system:layout_0100.xsl">Chocolate</a>'
menu4[6]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=6;search=Coconut%20Oil%20%20Products;limit=category;v=2.0;layout=system:layout_0100.xsl">Coconut Oil & Products</a>'
menu4[7]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=7;search=Diet%20Products%20%20Weight%20Loss;limit=category;v=2.0;layout=system:layout_0100.xsl">Diet Products / Weight Loss</a>'
menu4[8]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=8;search=Essential%20Oils;limit=category;v=2.0;layout=system:layout_0100.xsl">Essential Oils</a>'
menu4[9]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=9;search=Herbal%20Teas;limit=category;v=2.0;layout=system:layout_0100.xsl">Herbal Teas</a>'
menu4[10]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=16;search=Miscellaneous;limit=category;v=2.0;layout=system:layout_0100.xsl">Miscellaneous</a>'
menu4[11]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=10;search=Nuts;limit=category;v=2.0;layout=system:layout_0100.xsl">Nuts</a>'
menu4[12]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=11;search=Skin%20Care%20%20Bath%20%20Body;limit=category;v=2.0;layout=system:layout_0100.xsl">Skin Care / Bath & Body</a>'
menu4[13]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=12;search=Stones%20%20Chakra%20Jewelry;limit=category;v=2.0;layout=system:layout_0100.xsl">Stones / Chakra Jewelry</a>'
menu4[14]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=13;search=Supplements%20%20Herbal%20Extracts;limit=category;v=2.0;layout=system:layout_0100.xsl">Supplements / Herbal Extracts</a>'
menu4[15]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=14;search=Sweeteners;limit=category;v=2.0;layout=system:layout_0100.xsl">Sweeteners</a>'
menu4[16]='<a href="/cgi-bin/ez-catalog/cat_display.cgi?account=X380889;search=15;search=Tinctures%20%20Colloidal%20Silver;limit=category;v=2.0;layout=system:layout_0100.xsl">Tinctures / Colloidal Silver</a>'

//Contents for menu 10:Contact
var menu10=new Array()
menu10[0]='<a href="policy.html">Policies</a>'

var menuwidth='300px' //default menu width
var menubgcolor='#006cff'  //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=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width='200px'
}
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
}
}
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