 

/***********************************************
* 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 menu 1 - Classes
var menu1=new Array()
menu1[0]='<a href="http://www.van-studios.com/CY/scheduleFA09.php" class="reg">&nbsp; fall 2009<br>&nbsp;&nbsp; (Sep 14-Dec 13 )</a>'
menu1[1]='<a href="http://www.circleyoga.com/descriptions.html" class="reg">&nbsp; class descriptions</a>'
menu1[2]='<a href="http://www.circleyoga.com/yogalevels.html" class="reg">&nbsp; class levels</a>'
menu1[3]='<a href="http://www.circleyoga.com/styles.html" class="reg">&nbsp; influences/styles</a>'
menu1[4]='<a href="http://www.circleyoga.com/fees.html" class="reg">&nbsp; fees</a>'
menu1[5]='<a href="http://www.circleyoga.com/pdfs/scholarship.pdf" class="reg">&nbsp; scholarship</a>'
menu1[6]='<a href="http://www.circleyoga.com/free-classes-events.html" class="reg">&nbsp; free classes</a>'



//Contents for menu 3 - About
var menu3=new Array()
menu3[0]='<a href="http://www.circleyoga.com/about.html" class="reg">&nbsp; about us</a>'
menu3[1]='<a href="http://www.circleyoga.com/shop.html" class="reg">&nbsp; yoga shop</a>'
menu3[2]='<a href="http://www.circleyoga.com/about.html#hours" class="reg">&nbsp; studio hours</a>'
menu3[3]='<a href="http://www.circleyoga.com/about.html#directions" class="reg">&nbsp; directions</a>'
menu3[4]='<a href="http://www.circleyoga.com/instructors.html" class="reg">&nbsp; instructors</a>'
menu3[5]='<a href="http://www.circleyoga.com/manager.html" class="reg">&nbsp; business manager</a>'
menu3[6]='<a href="http://www.circleyoga.com/mailing.html" class="reg">&nbsp; join our mailing list</a>'
menu3[7]='<a href="http://www.buddingyogis.com/" target="_blank" class="reg">&nbsp; Budding Yogis</a>'
			


//Contents for menu 4 - Parties & Privates
var menu4=new Array()
menu4[0]='<a href="http://www.circleyoga.com/parties.html" class="reg">&nbsp; parties</a>'
menu4[1]='<a href="http://www.circleyoga.com/privates.html" class="reg">&nbsp; privates</a>'


//Contents for menu 5 - Policies
var menu5=new Array()
menu5[0]='<a href="http://www.circleyoga.com/policies.html#policies1" class="reg">&nbsp; how to register</a>'
menu5[1]='<a href="http://www.circleyoga.com/policies.html#policies2" class="reg">&nbsp; weather and emergency<br>&nbsp;&nbsp; cancellation</a>'
menu5[2]='<a href="http://www.circleyoga.com/policies.html#policies10" class="reg">&nbsp; cancellation policy</a>'
menu5[3]='<a href="http://www.circleyoga.com/policies.html#policies3" class="reg">&nbsp; make-up policy</a>'
menu5[4]='<a href="http://www.circleyoga.com/policies.html#policies4" class="reg">&nbsp; refunds</a>'
menu5[5]='<a href="http://www.circleyoga.com/policies.html#policies5" class="reg">&nbsp; multi-class discounts</a>'
menu5[6]='<a href="http://www.circleyoga.com/policies.html#policies6" class="reg">&nbsp; returned check</a>'
menu5[7]='<a href="http://www.circleyoga.com/policies.html#policies7" class="reg">&nbsp; drop-ins</a>'
menu5[8]='<a href="http://www.circleyoga.com/policies.html#policies8" class="reg">&nbsp; coming to class</a>'
menu5[9]='<a href="http://www.circleyoga.com/policies.html#policies9" class="reg">&nbsp; waiver and release<br>&nbsp;&nbsp; agreement for students<br>&nbsp;&nbsp; registering online</a>'


//Contents for menu 6 - Workshops
var menu6=new Array()
menu6[0]='<a href="http://www.van-studios.com/CY/workshops.php" class="reg">&nbsp; workshops</a>'
menu6[1]='<a href="http://www.circleyoga.com/free-classes-events.html" class="reg">&nbsp; free and <br>&nbsp;&nbsp; donation-based<br>&nbsp;&nbsp; programs</a>'
menu6[2]='<a href="http://www.circleyoga.com/hotels.html" class="reg">&nbsp; nearby hotels and<br>&nbsp;&nbsp; restaurants</a>'

//Contents for menu 7 - Connect
var menu7=new Array()
menu7[0]='<a href="http://www.circleyoga.com/events.html" class="reg">&nbsp; saturday sangha day</a>'
menu7[1]='<a href="http://www.circleyoga.com/mindfulness.html" class="reg">&nbsp; mindfulness practice<br>&nbsp;&nbsp; centers</a>'
menu7[2]='<a href="http://www.circleyoga.com/connect.html" class="reg">&nbsp; connect with other yoga<br>&nbsp;&nbsp; studios</a>'
menu7[3]='<a href="http://www.circleyoga.com/connect_other.html" class="reg">&nbsp; link to others in the<br>&nbsp;&nbsp; community</a>'
menu7[4]='<a href="http://www.circleyoga.com/news.html" class="reg">&nbsp; newsletter</a>' 
menu7[5]='<a href="http://www.circleyoga.com/news.html#pub" class="reg">&nbsp; publicity</a>' 
menu7[6]='<a href="http://www.circleyoga.com/mailing.html" class="reg">&nbsp; join our mailing list</a>'



//Contents for menu 8 - Therapeutics
var menu8=new Array()
menu8[0]='<a href="http://www.circleyoga.com/typ.html" class="reg">&nbsp; therapeutic yoga</a>'
menu8[1]='<a href="http://www.circleyoga.com/therapists.html" class="reg">&nbsp; our favorite<br>&nbsp;&nbsp; bodywork<br>&nbsp;&nbsp; therapists</a>'
menu8[2]='<a href="http://www.circleyoga.com/thai_yoga.html" class="reg">&nbsp; thai yoga massage</a>'
menu8[3]='<a href="http://www.circleyoga.com/breast_cancer.html" class="reg">&nbsp; cancer recovery<br>&nbsp;&nbsp; program</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)
} 