/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','167082',jdecode('Press'),jdecode(''),'/167082.html','true',[],''],
	['PAGE','35800',jdecode('My+Writing'),jdecode(''),'/35800/index.html','true',[ 
		['PAGE','331322',jdecode('Flight+of+the+Dagger'),jdecode(''),'/35800/331322.html','true',[],''],
		['PAGE','231695',jdecode('Story+Magic'),jdecode(''),'/35800/231695.html','true',[],''],
		['PAGE','35827',jdecode('AutumnQuest'),jdecode(''),'/35800/35827.html','true',[],''],
		['PAGE','169941',jdecode('WinterMaejic'),jdecode(''),'/35800/169941.html','true',[],''],
		['PAGE','175706',jdecode('SpringFire'),jdecode(''),'/35800/175706.html','true',[],''],
		['PAGE','178065',jdecode('SummerDanse'),jdecode(''),'/35800/178065.html','true',[],''],
		['PAGE','35854',jdecode('Book+Addicts+Club'),jdecode(''),'/35800/35854.html','true',[],''],
		['PAGE','35881',jdecode('Changing+Gears'),jdecode(''),'/35800/35881.html','true',[],''],
		['PAGE','77138',jdecode('Folgers'),jdecode(''),'/35800/77138.html','true',[],'']
	],''],
	['PAGE','154738',jdecode('On+Writing'),jdecode(''),'/154738/index.html','true',[ 
		['PAGE','154769',jdecode('What%26%23x27%3Bs+Next%3F'),jdecode(''),'/154738/154769.html','true',[],''],
		['PAGE','156308',jdecode('That+vs+Which'),jdecode(''),'/154738/156308.html','true',[],''],
		['PAGE','166238',jdecode('Writing+Community'),jdecode(''),'/154738/166238.html','true',[],'']
	],''],
	['PAGE','104787',jdecode('Reading'),jdecode(''),'/104787.html','true',[],''],
	['PAGE','178619',jdecode('Blog'),jdecode(''),'/178619.html','true',[],''],
	['PAGE','152238',jdecode('Just+for+Fun'),jdecode(''),'/152238/index.html','true',[ 
		['PAGE','151487',jdecode('Petz+Forum'),jdecode(''),'/152238/151487.html','true',[],'']
	],''],
	['PAGE','151456',jdecode('Forums'),jdecode(''),'/151456/index.html','true',[ 
		['PAGE','151406',jdecode('Kidz+Forum'),jdecode(''),'/151456/151406.html','true',[],''],
		['PAGE','151611',jdecode('Open+Forum'),jdecode(''),'/151456/151611.html','true',[],'']
	],''],
	['PAGE','166638',jdecode('Newsletter+Archive'),jdecode(''),'/166638/index.html','true',[ 
		['PAGE','176934',jdecode('Newsletters+2007'),jdecode(''),'/166638/176934.html','true',[],''],
		['PAGE','166669',jdecode('Newsletters+2006'),jdecode(''),'/166638/166669.html','true',[],'']
	],''],
	['PAGE','151328',jdecode('Photo+Albums'),jdecode(''),'/151328/index.html','true',[ 
		['PAGE','230996',jdecode('Summer+2007'),jdecode(''),'/151328/230996.html','true',[],''],
		['PAGE','177839',jdecode('Dartmoor+2007'),jdecode(''),'/151328/177839.html','true',[],''],
		['PAGE','176039',jdecode('Book+Launch'),jdecode(''),'/151328/176039.html','true',[],''],
		['PAGE','170012',jdecode('Germany+2006'),jdecode(''),'/151328/170012.html','true',[],''],
		['PAGE','168339',jdecode('May+2006'),jdecode(''),'/151328/168339.html','true',[],'']
	],''],
	['PAGE','155438',jdecode('NaNoWriMo'),jdecode(''),'/155438/index.html','true',[ 
		['PAGE','155483',jdecode('NaNo+Forum'),jdecode(''),'/155438/155483.html','true',[],''],
		['PAGE','155537',jdecode('Participants'),jdecode(''),'/155438/155537.html','true',[],'']
	],''],
	['PAGE','35908',jdecode('Links'),jdecode(''),'/35908.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='cutout';
					                                                                    
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 */					                                                            
