

/***********************************************
* AnyLink Vertical 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 Visual Inspirations
var visualinspirations=new Array()
visualinspirations[0]='<a href="visualinspirations.cfm">Visual Inspirations</a>'
visualinspirations[1]='<a href="VisualInspirationsCatherineFoster.cfm">Catherine Foster</a>'
visualinspirations[2]='<a href="VisualInspirationsPamelaCail.cfm">Pamela Cail</a>'
visualinspirations[3]='<a href="VisualInspirationsBarbaraMcVey.cfm">Barbara McVey</a>'

//Contents for Healing - Now Energetic Modalities


//Contents for Self Actualization - Now Spirit Messages
var selfactualization=new Array()
selfactualization[0]='<a href="spiritmessages.cfm">Spiritual Readings</a>'
selfactualization[1]='<a href="spiritmessages_frequent_questions.cfm">Frequent Questions</a>'
selfactualization[2]='<a href="spiritmessages_readings.cfm">What Is a Reading?</a>'
selfactualization[3]='<a href="spiritmessages_readings_sr.cfm">Soul Readings</a>'
selfactualization[4]='<a href="spiritmessages_readings_AH.cfm">Angelic Human Readings</a>'
selfactualization[5]='<a href="lightorbs_readings.cfm">Light Orb Readings</a>'




//Contents for Lightorbs
var lightorbs=new Array()
lightorbs[0]='<a href="lightorbs.cfm">Light Orbs</a>'
lightorbs[1]='<a href="lightorbs_frequent_questions.cfm">Frequent Questions</a>'
lightorbs[2]='<a href="lightorbs_readings.cfm">Personal Light Orb Readings</a>'
lightorbs[3]='<a href="lightorbs_readings_pm.cfm">A Personal Message</a>'
lightorbs[4]='<a href="lightorbs_guardians.cfm">Guardians of the Soul</a>'
lightorbs[5]='<a href="lightorbs_capacity.cfm">Our Capacity to Love</a>'
lightorbs[6]='<a href="lightorbs_Ambassador-Translator.cfm">Ambassador and Translator</a>'
lightorbs[7]='<a href="lightorbs_benamene.cfm">Benamene and the Light Orbs</a>'
lightorbs[8]='<a href="gallery_lightorbs.cfm">Light Orb Galleries</a>'
lightorbs[9]='<a href="lightorbs_msi.cfm">MSI-Healing</a>'
lightorbs[10]='<a href="lightorbs_nick.cfm">Nick Guardian of the Soul</a>'


//Contents for Workshops
//var workshops=new Array()
//workshops[0]='<a href="workshops.cfm">Retreats</a>'
//workshops[1]='<a href="workshops_field.cfm">The Field</a>'

//Contents for Audio/Video
var audiovideo = new Array()
audiovideo[0]='<a href="audiovideo.cfm">Audio & Video</a>'
audiovideo[1]='<a href="av_interviews.cfm">Interviews</a>'
audiovideo[2]='<a href="av_video.cfm">Videos</a>'
audiovideo[3]='<a href="av_podcast.cfm">Podcasts</a>'

//Contents for Toni Elizabeth Sar'h
var toni=new Array()
toni[0]='<a href="toni.cfm">Toni Elizabeth Sar\'h</a>'
toni[1]='<a href="anthonyjohn.cfm">Sar\'h and Anthony John</a>'
toni[2]='<a href="toni_violet.cfm">The Violet Flame</a>'
toni[3]='<a href="toni_violet_invocation.cfm">Violet Flame Invocation</a>'

//Contents for Angelic Human
var angelichuman=new Array()
angelichuman[0]='<a href="angelichuman.cfm">Angelic Human</a>'
angelichuman[1]='<a href="angelichuman_thecall.cfm">The Call</a>'
angelichuman[2]='<a href="angelichuman_thecallbook.cfm">The Call ~ The Book</a>'
angelichuman[3]='<a href="angelichuman_thecallbook_interview.cfm">Interview with R. Tetu</a>'
angelichuman[4]='<a href="angelichuman_thecallbook_reviews.cfm">Reviews</a>'
angelichuman[5]='<a href="angelichuman_thecallbook_ah.cfm">What Is an AH</a>'
angelichuman[6]='<a href="spiritmessages_readings_AH.cfm">Angelic Human Readings</a>'
angelichuman[7]='<a href="angelichuman_thecallbook_interview2.cfm">Interview - Nightwatchman</a>'
angelichuman[8]='<a href="angelichuman_thecallbook_angelfire.cfm">Angel Fire</a>' 

//Contents for Resources
var resources=new Array()
resources[0]='<a href="resources.cfm">Resources</a>'
resources[1]='<a href="resources_rreading.cfm">Recommended Reading</a>'
resources[2]='<a href="resources_earth.cfm">Zechariah Sitchin</a>'

//Contents fro MetaYou
var metayou = new Array()
metayou[0]='<a href="metayou.cfm">Meta yoU</a>'
metayou[1]='<a href="metayou_unleashingtheheart.cfm">Unleashing the Heart</a>'
metayou[2]='<a href="metayou_unleashingyoursoul.cfm">Unleashing Your Soul</a>'
metayou[3]='<a href="metayou_OnceMoreWithFeeling.cfm">Once More With Feeling</a>'
metayou[4]='<a href="metayou_soulenterprise_000.cfm">Soul Enterprise</a>'
metayou[5]='<a href="metayou_fieldguide.cfm">You - Field Guide</a>'
metayou[6]='<a href="metayou_glossary.cfm">Glossary of Terms</a>'


var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=5 //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)
}
