﻿function mastermenu(opennodeid)	{
	
		d = new dTree('d');
		
		d.config.useCookies = -1;
		d.config.useIcons= 0;
		d.config.useLines=0
		
		d.add(0,-1,'','','','','img/empty.gif');
		d.add(1,0,'Home','index.html', 'Advanced Movement Training Home','','');
		d.add(2,0,'What We Do','#','What Makes Us Different','','');
		d.add(3,2,'Feldenkrais','feldenkrais-atlanta.html','Feldenkrais Movement Education');
		d.add(4,2,'PT','atlanta-physical-therapy.html','Outside-the-Box Physical Therapy');
		d.add(5,0,'About','About-Sandi-Goldring.html','About Sandi Goldring');
		d.add(6,0,'Contact Us','Contact-Info.html','Phone, Email, and Address');
		d.add(7,0,'FAQs','FAQs.html','Frequently Asked Questions');
		d.add(8,0,'Location','Location-and-Directions.html','Location and Directions');
		d.add(9,0,'Testimonials','Testimonials-Marathon-Runner-Jennifer Plourde-Pahl.html','What People Are Saying');
		d.add(10,0,'Downloads','Intake-Forms.html','Forms, Articles, Handouts');
		
		document.write(d);
		
		if (opennodeid)	{ 
			d.openTo(opennodeid,true);
		}
		
}


function PageIndex(increment) {
	
	var htmlFile = [
			"Testimonials-Marathon-Runner-Jennifer Plourde-Pahl",
			"Testimonials-Children-and-teens1-Deanna Rembert"
		];
			
		// Find out where we are in the page list
	     	for (var i=0; i<htmlFile.length && htmlFile[ i ] != document.title; i++);

	    if (
	    	( increment == -1 && (i > 0) ) || 
	    	( increment == 1 && (i < htmlFile.length - 1) )
	    )	{
	    
	    	i += increment;
	    	var pagePath = htmlFile[ i ] + ".html"
	    	window.location = pagePath
	  		}	
	



	}
	
function setparms(widepage, buttonson, rightbarvisible)	{
			
			if (widepage) {
				var centerstyle = document.getElementById("CenterPanel").style;
				centerstyle.width = "615px";
			}	
			
			var buttonstate = document.getElementById("LRButtons").style;	
			buttonstate.visibility = (buttonson ? "visible" : "hidden");		
				
			var rightbarstate = document.getElementById("RightBar").style;	
			rightbarstate.visibility = (rightbarvisible ? "visible" : "hidden");			
}

