/* [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','70517',jdecode('New+page'),jdecode(''),'/70517/index.html','true',[ 
		['PAGE','70836',jdecode('New+page+%28follow+up+page%29'),jdecode(''),'/70517/70836.html','false',[],'']
	],''],
	['PAGE','4436',jdecode('Home'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','37301',jdecode('News%2F+Upcoming+Events'),jdecode(''),'/4436/37301.html','true',[],''],
		['PAGE','69526',jdecode('Competition+03%2F31%2F07'),jdecode(''),'/4436/69526.html','true',[],''],
		['PAGE','56407',jdecode('Jayne+Dalis'),jdecode(''),'/4436/56407.html','true',[],''],
		['PAGE','34801',jdecode('Personal+Training+Certifications'),jdecode(''),'/4436/34801.html','true',[],'']
	],''],
	['PAGE','29905',jdecode('About+Benefitness+%2F+Dr.+Maria+Dalton'),jdecode(''),'/29905/index.html','true',[ 
		['PAGE','53246',jdecode('Dr.+Maria%26%23x27%3Bs+Stats'),jdecode(''),'/29905/53246.html','true',[],''],
		['PAGE','53763',jdecode('Weblog'),jdecode(''),'/29905/53763.html','true',[],'']
	],''],
	['PAGE','6928',jdecode('Health%2C+Fitness+%26+Eating+Habits'),jdecode(''),'/6928/index.html','true',[ 
		['PAGE','45601',jdecode('Fit+at+40'),jdecode(''),'/6928/45601.html','true',[],''],
		['PAGE','40601',jdecode('EZ+-+XRsize'),jdecode(''),'/6928/40601.html','true',[],''],
		['PAGE','42101',jdecode('Before%2F+After+Pics%3A+SCAM%3F'),jdecode(''),'/6928/42101.html','true',[],'']
	],''],
	['PAGE','6955',jdecode('Inner+Beauty+and+Motivation'),jdecode(''),'/6955/index.html','true',[ 
		['PAGE','47101',jdecode('VISITOR%26%23x27%3Bs+PICS%2F+Stories'),jdecode(''),'/6955/47101.html','true',[],''],
		['PAGE','34901',jdecode('Peter+Locurto'),jdecode(''),'/6955/34901.html','true',[],'']
	],''],
	['PAGE','7009',jdecode('SERVICES'),jdecode(''),'/7009/index.html','true',[ 
		['PAGE','34001',jdecode('Long+Island+Business+Page'),jdecode(''),'/7009/34001.html','true',[],'']
	],''],
	['PAGE','12002',jdecode('Guestbook'),jdecode(''),'/12002/index.html','true',[ 
		['PAGE','12003',jdecode('Read+Guestbook'),jdecode(''),'/12002/12003.html','true',[],'']
	],''],
	['PAGE','75524',jdecode('Gallery+1'),jdecode(''),'/75524/index.html','true',[ 
		['PAGE','76924',jdecode('African+Safari'),jdecode(''),'/75524/76924.html','true',[],'']
	],''],
	['PAGE','74123',jdecode('Links'),jdecode(''),'/74123.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Struktur';
					                                                                    
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 */					                                                            
