/* [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('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','18101',jdecode('About+Laura'),jdecode(''),'/18101/index.html','true',[ 
		['PAGE','8273',jdecode('Professional+Resume'),jdecode(''),'/18101/8273.html','true',[],''],
		['PAGE','13601',jdecode('Published+Works'),jdecode(''),'/18101/13601.html','true',[],''],
		['PAGE','18132',jdecode('Business+Writing'),jdecode(''),'/18101/18132.html','true',[],''],
		['PAGE','13381',jdecode('Business+References'),jdecode(''),'/18101/13381.html','true',[],''],
		['PAGE','13457',jdecode('Creative+References'),jdecode(''),'/18101/13457.html','true',[],'']
	],''],
	['PAGE','25355',jdecode('Editing+Services'),jdecode(''),'/25355/index.html','true',[ 
		['PAGE','24753',jdecode('Book+Editing'),jdecode(''),'/25355/24753.html','true',[],''],
		['PAGE','13257',jdecode('Business+Editing'),jdecode(''),'/25355/13257.html','true',[],''],
		['PAGE','24877',jdecode('Correspondence'),jdecode(''),'/25355/24877.html','true',[],''],
		['PAGE','24908',jdecode('Emails'),jdecode(''),'/25355/24908.html','true',[],''],
		['PAGE','22001',jdecode('Retainer+Editing'),jdecode(''),'/25355/22001.html','true',[],''],
		['PAGE','24939',jdecode('Proofreading'),jdecode(''),'/25355/24939.html','true',[],'']
	],''],
	['PAGE','25324',jdecode('Writing+Services'),jdecode(''),'/25324/index.html','true',[ 
		['PAGE','13350',jdecode('Websites'),jdecode(''),'/25324/13350.html','true',[],''],
		['PAGE','13226',jdecode('Resumes'),jdecode(''),'/25324/13226.html','true',[],''],
		['PAGE','24815',jdecode('Articles'),jdecode(''),'/25324/24815.html','true',[],''],
		['PAGE','24970',jdecode('Press+Releases'),jdecode(''),'/25324/24970.html','true',[],''],
		['PAGE','24846',jdecode('Marketing+Copy'),jdecode(''),'/25324/24846.html','true',[],''],
		['PAGE','23512',jdecode('Family+Memoir'),jdecode(''),'/25324/23512.html','true',[],''],
		['PAGE','23639',jdecode('Technical+Writing'),jdecode(''),'/25324/23639.html','true',[],'']
	],''],
	['PAGE','25060',jdecode('Add%26%23x27%3Bl+Resources'),jdecode(''),'/25060.html','true',[],''],
	['PAGE','8381',jdecode('Contact'),jdecode(''),'/8381/index.html','true',[ 
		['PAGE','14202',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/8381/14202.html','false',[],'']
	],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            
