/*
		
MENU ITEMS INDEX:
	- item ID
	- parent ID (default '')
	- Page Name
	- File Location / Name (location/folder optional)
	- Is it a Parent ? Y/N

DO SEP. ARRAY FOR EACH LEVEL?
//index, text, linkTo, isParent? 1/0
	[,"","",0],
	
Change the menu order to:		
	Home Page
	Making an Appointment
	Are You Eligible?				
	Video Tour of Facility
	What is a Colonic?
	Frequently Asked Questions
	Fees
	Links
	Location and Directions
	Hours of Operation
	Contact Us
	
 and another called 

*/

var level1 = [
	[,"Home Page","index.html",0],
	[,"Making an Appointment","appointment.html",0],
	[,"Are You Eligible?","are_you_eligible.html",0],
	[,"Video Tour of Facility","tour.html",0],
	[,"What is a Colonic?","what_colonic.html",0],
	[,"Frequently Asked Questions","faqs.html",0],
	[,"Fees","fees.html",0],
	[,"Links","links.html",0],
	[,"Supplements","http://Meredith.youngevityonline.com\" target=\"_blank",0],
	[,"Weight Loss","http://Meredith.youngevityonline.com\" target=\"_blank",0],
	[,"Location &amp; Directions","location.html",0],
	[,"Hours of Operation","hours.html",0],
	[,"Contact Us","contact.html",0]
	//[,"<b>28-Day Cleanse</b>","28dayCourse.html",0],
	//[1,"<b>Store (Our Products)</b>","",1],
	//[8,"Health Coaching","health_coaching.html",0],
	//[9,"Art Exhibits","art_exhibit.html",0],
];


var level2 = [
	//[0,1,"store/colonic_dietary_health.php","ONLINE STORE",0],
	//[0,,"","",0],
	//[1,1,"store/colonic_dietary_health.php#affiliates","AFFILIATES &rarr;",1]
];

var level3 = [
	//[,1,"28dayCourse.html","28-Day Cleanse",0],
	//[,1,"http://www.agelesslife.com/HeinemeierM\" target=\"_blank","Univera Life Sciences",0],
	//[,1,"Living_Nutrition.html","Living Nutrition",0],
	//[,1,"barleygreen.html","Discounts on Barleygreen",0]
];
	
function makeSiteList()
	{
	//LEVEL1
	var siteList = "<div id=\"menuStart1\">";
	//siteList += "<img src=\"images/arrow1.gif\" id=\"arrow1\" >";
	siteList += "<ul class=\"slidingmenu\" id=\"menu1\">";
	for(var i=0; i<level1.length; i++)
		{
		/*
		siteList += "<li><a href=\""+level1[i][2]+"\">"+level1[i][1]+"</a>";
		if(level1[i][3] == "1") //LEVEL2
			{ 
			siteList += "<ul id=\"subMenu"+i+"\">";
			for(var j=0; j<level2.length; j++)
				{
				if(level2[j][1]!=i) { continue; }
				else 
					{ 
						siteList += "<li><a href=\""+level2[j][2]+"\">"+level2[j][3]+"</a>"; 
						if(level2[j][4] != 0) 
							{
							siteList += "<ul id=\"subMenu"+i+"-"+j+"\">";
								for(var k=0; k<level3.length; k++) //LEVEL3
									{
									if(level3[k][1]!=j) { continue; }
									else
										{
										siteList += "<li><a href=\""+level3[k][2]+"\">"+level3[k][3]+"</a></li>"; 
										}
									}
							siteList += "</ul>";
							}
						else { siteList += "</li>"; }
					}
				}
			siteList += "</ul>";
			}
		else { siteList += "</li>"; }
			*/
		}
	siteList += "</ul>";
	siteList += "</div>";
	document.write(siteList);
	}
	
	makeSiteList();
