/*YAHOO.util.Event.onContentReady("mainnav", function () {

		var oMenuBar = new YAHOO.widget.MenuBar("mainnav", { 
																								autosubmenudisplay: true, 
																								hidedelay: 750, 
																								lazyload: true });

		oMenuBar.render();
		
		var aMenuItems = [
		{text:"Joy Winkler",url:"instructor.php?instr=winkler"},
		{text:"Olga Abreu",url:"instructor.php?instr=abreu"},
		{text:"Marizol Cabrera",url:"instructor.php?instr=cabrera"},
		{text:"Rose Hong Tran",url:"instructor.php?instr=tran"},
		{text:"Jesus Martinez",url:"instructor.php?instr=martinez"},
		{text:"Logynn Northrhip",url:"instructor.php?instr=northrhip"},
		{text:"Jerry Lee Randall",url:"instructor.php?instr=randall"},
		{text:"Mariana Soares",url:"instructor.php?instr=soares"},
		{text:"Kim Taurins",url:"instructor.php?instr=taurins"},
		{text:"Michelle Wells",url:"instructor.php?instr=wells"},
		{text:"Mandy Wright",url:"instructor.php?instr=wright"},
		]; 

		var oMenu = new YAHOO.widget.Menu("instrmenu", { autosubmenudisplay: true,hidedelay: 750,itemdata: aMenuItems });
		oMenu.render();
		function onSubmenuShow() {

			var oIFrame,oElement,nOffsetWidth;
			if ((this.id == "instrmenu") && YAHOO.env.ua.ie) {
	
				oElement = this.element;
				nOffsetWidth = oElement.offsetWidth;
				oElement.style.width = nOffsetWidth + "px";
				oElement.style.width = (nOffsetWidth - (oElement.offsetWidth - nOffsetWidth)) + "px";
			
			}
	
		}
    
		oMenuBar.subscribe("show", onSubmenuShow);
});*/

/*
     Define an array of object literals, each containing 
     the data necessary to create the items for a MenuBar.
*/


/*=======
	IMAGES
	=======*/
/*var aItemData = [
{text: "<img src=\"images/btn_aboutus.png\" alt=\"About Yoga\" border=\"0\" width=\"66\" height=\"23\" />",url: "about.html",
				submenu: { 
            id: "aboutmenu", 
            itemdata: [
											 {text:"Testimonials",url:"testimonials.html"},
											 {text:"Joy Yoga Perks",url:"joyyoga_perks.html"},
											 {text:"Special Mentions",url:"special_mentions.html"},
											 {text:"Tiki Weekly Newsletter",url:"tiki_newsletter.html"}
											]
				}},
{text: "<img src=\"images/btn_news.png\" alt=\"News\" border=\"0\" />",url: "news.html"},
{text: "<img src=\"images/btn_classes.png\" alt=\"Class Schedules\" border=\"0\" />", url: "class_pricing.html"},
{text: "<img src=\"images/btn_instructors.png\" alt=\"Instructors\" border=\"0\" />",url: "instructors.html",
				submenu: { 
            id: "instrmenu", 
            itemdata: [
											 {text:"Joy Winkler",url:"instructor.php?instr=winkler"},
											 {text:"Katalin Axmann",url:"instructor.php?instr=axmann"},
											 {text:"Olga Abreu",url:"instructor.php?instr=abreu"},
											 {text:"Marizol Cabrera",url:"instructor.php?instr=cabrera"},
											 {text:"Rose Hong Tran",url:"instructor.php?instr=tran"},
											 {text:"Arielle McMahan",url:"instructor.php?instr=mcmahan"},
											 {text:"Emery Lauten Meadows",url:"instructor.php?instr=meadows"},
											 {text:"Logynn Northrhip",url:"instructor.php?instr=northrhip"},
											 {text:"Vanessa Paras",url:"instructor.php?instr=paras"},
											 {text:"Jerry Lee Randall",url:"instructor.php?instr=randall"},
											 {text:"Cari Shoemate",url:"instructor.php?instr=shoemate"},
											 {text:"Kim Taurins",url:"instructor.php?instr=taurins"},
											 {text:"Michelle Wells",url:"instructor.php?instr=wells"},
											 {text:"Mandy Wright",url:"instructor.php?instr=wright"},
											 {text:"Elena Yakubsfeld",url:"instructor.php?instr=yakubsfeld"}
						]
				}},
{text:"<img src=\"images/btn_corporate.png\" alt=\"Corporate Joy\" border=\"0\" />",url:"corporate.html"},
{text:"<img src=\"images/btn_contact.png\" alt=\"Contact Us\" border=\"0\" />",url:"contact.html"}
];

YAHOO.util.Event.onDOMReady(function () {

    var oMenuBar = new YAHOO.widget.MenuBar("mainnav", { 
                                                autosubmenudisplay: true,
																								lazyload: false, 
                                                itemdata: aItemData 
                                                });
    oMenuBar.render();
		//alert(document.getElementById("mainnav").innerHTML);
		function onSubmenuShow() {

			var oIFrame,oElement,nOffsetWidth;
			if (((this.id == "aboutmenu") || (this.id == "instrmenu")) && YAHOO.env.ua.ie) {
	
				oElement = this.element;
				nOffsetWidth = oElement.offsetWidth;
				oElement.style.width = nOffsetWidth + "px";
				oElement.style.width = (nOffsetWidth - (oElement.offsetWidth - nOffsetWidth)) + "px";
			
			}
	
		}
    
		oMenuBar.subscribe("show", onSubmenuShow);

});*/

/*
TEXT
*/
var aItemData = [
{text: "About Yoga",url: "about.html",
				submenu: { 
            id: "aboutmenu", 
            itemdata: [
											 {text:"Testimonials",url:"testimonials.html"},
											 {text:"Joy Yoga Perks",url:"joyyoga_perks.html"},
											 {text:"Special Mentions",url:"special_mentions.html"},
											 {text:"Tiki Weekly Newsletter",url:"tiki_newsletter.html"}
											]
				}},
{text: "News",url: "news.html"},
{text: "Class Schedules", url: "class_pricing.html"},
{text: "Yoga Facilitators",url: "instructors.html",
				submenu: { 
            id: "instrmenu", 
            itemdata: [
											 {text:"Joy Winkler",url:"instructor.php?instr=winkler"},
											 {text:"Katalin Axmann",url:"instructor.php?instr=axmann"},
											 {text:"Olga Abreu",url:"instructor.php?instr=abreu"},
											 {text:"Marizol Cabrera",url:"instructor.php?instr=cabrera"},
											 {text:"Rose Hong Tran",url:"instructor.php?instr=tran"},
											 {text:"Arielle McMahan",url:"instructor.php?instr=mcmahan"},
											 {text:"Emery Lauten Meadows",url:"instructor.php?instr=meadows"},
											 {text:"Cari Shoemate",url:"instructor.php?instr=shoemate"},
											 {text:"Kim Taurins",url:"instructor.php?instr=taurins"},
											 {text:"Michelle Wells",url:"instructor.php?instr=wells"},
											 {text:"Mandy Wright",url:"instructor.php?instr=wright"},
						]
				}},
{text:"Body Work",submenu: {id:"bodyworkmenu",itemdata:[{text:"Acupuncture",url:"acupuncture.html"},{text:"Massage Therapy",url:"massage_therapy.html"}]}},
{text:"Contact Us",url:"contact.html"}
];

YAHOO.util.Event.onDOMReady(function () {

    var oMenuBar = new YAHOO.widget.MenuBar("mainnav", { 
                                                autosubmenudisplay: true,
																								lazyload: false, 
                                                itemdata: aItemData 
                                                });
    oMenuBar.render();
		//alert(document.getElementById("mainnav").innerHTML);
		function onSubmenuShow() {

			var oIFrame,oElement,nOffsetWidth;
			if (((this.id == "aboutmenu") || (this.id == "instrmenu")) && YAHOO.env.ua.ie) {
	
				oElement = this.element;
				nOffsetWidth = oElement.offsetWidth;
				oElement.style.width = nOffsetWidth + "px";
				oElement.style.width = (nOffsetWidth - (oElement.offsetWidth - nOffsetWidth)) + "px";
			
			}
	
		}
    
		oMenuBar.subscribe("show", onSubmenuShow);

});