/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var theSitetree=[ 
	['PAGE','4436',jdecode('GCA+Home'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','28932',jdecode('Spend+a+Day+at+GCA'),jdecode(''),'/4436/28932.html','true',[],''],
		['PAGE','49385',jdecode('Links'),jdecode(''),'/4436/49385.html','true',[],''],
		['PAGE','59320',jdecode('Request+Info+%2F+Feedback'),jdecode(''),'/4436/59320.html','true',[],''],
		['PAGE','115655',jdecode('Testimonials'),jdecode(''),'/4436/115655.html','true',[],'']
	],''],
	['PAGE','22961',jdecode('Meet+Our+Staff'),jdecode(''),'/22961.html','true',[],''],
	['PAGE','48507',jdecode('Inquiring+Families'),jdecode(''),'/48507/index.html','true',[ 
		['PAGE','6811',jdecode('Philosophy'),jdecode(''),'/48507/6811.html','true',[],''],
		['PAGE','29001',jdecode('Accreditation'),jdecode(''),'/48507/29001.html','true',[],''],
		['PAGE','44080',jdecode('History'),jdecode(''),'/48507/44080.html','true',[],''],
		['PAGE','173847',jdecode('School+Video'),jdecode(''),'/48507/173847.html','true',[],'']
	],''],
	['PAGE','36822',jdecode('Curriculum'),jdecode(''),'/36822/index.html','true',[ 
		['PAGE','29147',jdecode('Grading'),jdecode(''),'/36822/29147.html','true',[],'']
	],''],
	['PAGE','6919',jdecode('Admissions%2FTuition+'),jdecode(''),'/6919/index.html','true',[ 
		['PAGE','28409',jdecode('Applying+to+GCA'),jdecode(''),'/6919/28409.html','true',[],''],
		['PAGE','28347',jdecode('Tuition+%26+Fees'),jdecode(''),'/6919/28347.html','true',[],'']
	],''],
	['PAGE','37501',jdecode('Programs+and+Services'),jdecode(''),'/37501/index.html','true',[ 
		['PAGE','109868',jdecode('Enrichment+Program'),jdecode(''),'/37501/109868.html','true',[],''],
		['PAGE','156419',jdecode('SAINTS+Summer+Day+Camp'),jdecode(''),'/37501/156419.html','true',[],'']
	],''],
	['PAGE','6838',jdecode('School+Calendar+'),jdecode(''),'/6838.html','true',[],''],
	['PAGE','119208',jdecode('Noteworthy+News+at+GCA'),jdecode(''),'/119208/index.html','true',[ 
		['PAGE','108434',jdecode('GCA+Kids+Serving+Others'),jdecode(''),'/119208/108434.html','true',[],''],
		['PAGE','34310',jdecode('Honors+%26+Awards'),jdecode(''),'/119208/34310.html','true',[],''],
		['PAGE','196707',jdecode('Cereal+Drive+2010'),jdecode(''),'/119208/196707.html','true',[],'']
	],''],
	['PAGE','101366',jdecode('Athletics%2FGame+Schedules'),jdecode(''),'/101366/index.html','true',[ 
		['PAGE','196141',jdecode('Fall+Sports'),jdecode(''),'/101366/196141.html','true',[],''],
		['PAGE','196014',jdecode('Winter+Sports'),jdecode(''),'/101366/196014.html','true',[],''],
		['PAGE','196045',jdecode('Spring+Sports'),jdecode(''),'/101366/196045.html','true',[],'']
	],''],
	['PAGE','32501',jdecode('Snack+Bar'),jdecode(''),'/32501/index.html','true',[ 
		['PAGE','32640',jdecode('Daily+Menu'),jdecode(''),'/32501/32640.html','true',[],''],
		['PAGE','93020',jdecode('GCA+Snack+Bar+Calendar'),jdecode(''),'/32501/93020.html','true',[],'']
	],''],
	['PAGE','29721',jdecode('Homework+Hotline'),jdecode(''),'/29721/index.html','true',[ 
		['PAGE','50101',jdecode('Middle+School'),jdecode(''),'/29721/50101.html','true',[],''],
		['PAGE','51604',jdecode('Elementary+School'),jdecode(''),'/29721/51604.html','true',[],'']
	],''],
	['PAGE','197606',jdecode('Current+Parents'),jdecode(''),'/197606/index.html','true',[ 
		['PAGE','166847',jdecode('Current+Supply+List'),jdecode(''),'/197606/166847.html','true',[],''],
		['PAGE','63778',jdecode('Uniform+Dress+Code'),jdecode(''),'/197606/63778.html','true',[],'']
	],''],
	['PAGE','27901',jdecode('Contact+GCA'),jdecode(''),'/27901/index.html','true',[ 
		['PAGE','149741',jdecode('Map+%26+Directions+to+GCA+'),jdecode(''),'/27901/149741.html','true',[],''],
		['PAGE','148311',jdecode('School+Closing+Information'),jdecode(''),'/27901/148311.html','true',[],''],
		['PAGE','181019',jdecode('Forms+and+Information'),jdecode(''),'/27901/181019.html','true',[],'']
	],'']];
var siteelementCount=41;
theSitetree.topTemplateName='Layers';
					                                                                    
theSitetree.getById = function(id, ar) {												
							if (typeof(ar) == 'undefined')                              
								ar = this;                                              
							for (var i=0; i < ar.length; i++) {                         
								if (ar[i][POS_ID] == id)                                
									return ar[i];                                       
								if (ar[i][POS_CHILDS].length > 0) {                     
									var result=this.getById(id, ar[i][POS_CHILDS]);     
									if (result != null)                                 
										return result;                                  
								}									                    
							}                                                           
							return null;                                                
					  };                                                                
					                                                                    
theSitetree.getParentById = function(id, ar) {											
						if (typeof(ar) == 'undefined')                              	
							ar = this;                                             		
						for (var i=0; i < ar.length; i++) {                        		
							for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {   		
								if (ar[i][POS_CHILDS][j][POS_ID] == id) {          		
									// child found                                 		
									return ar[i];                                  		
								}                                                  		
								var result=this.getParentById(id, ar[i][POS_CHILDS]);   
								if (result != null)                                 	
									return result;                                  	
							}                                                       	
						}                                                           	
						return null;                                                	
					 }								                                    
					                                                                    
theSitetree.getName = function(id) {                                                    
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAME];                                      
						return null;	                                                
					  };			                                                    
theSitetree.getNavigationText = function(id) {                                          
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAVIGATIONTEXT];                            
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getHREF = function(id) {                                                    
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_HREF];                                      
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getIsNavigation = function(id) {                                            
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_ISNAVIGATION];                              
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getTemplateName = function(id, lastTemplateName, ar) {             		 
	                                                                                 
	if (typeof(lastTemplateName) == 'undefined')                                     
		lastTemplateName = this.topTemplateName;	                                 
	if (typeof(ar) == 'undefined')                                                   
		ar = this;                                                                   
		                                                                             
	for (var i=0; i < ar.length; i++) {                                              
		var actTemplateName = ar[i][POS_TEMPLATENAME];                               
		                                                                             
		if (actTemplateName == '')                                                   
			actTemplateName = lastTemplateName;		                                 
		                                                                             
		if (ar[i][POS_ID] == id) {                                			         
			return actTemplateName;                                                  
		}	                                                                         
		                                                                             
		if (ar[i][POS_CHILDS].length > 0) {                                          
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]); 
			if (result != null)                                                      
				return result;                                                       
		}									                                         
	}                                                                                
	return null;                                                                     
	};                                                                               
/* EOF */					                                                            

