/* [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','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','707',jdecode('About+Me'),jdecode(''),'/707.html','true',[],''],
	['PAGE','400',jdecode('Pictures'),jdecode(''),'/400/index.html','true',[ 
		['PAGE','716',jdecode('Road+Trip'),jdecode(''),'/400/716.html','true',[],'']
	],''],
	['PAGE','466',jdecode('Hobbies+and+Interests'),jdecode(''),'/466/index.html','true',[ 
		['PAGE','626',jdecode('Bridge'),jdecode(''),'/466/626.html','true',[],''],
		['PAGE','635',jdecode('Toastmasters'),jdecode(''),'/466/635.html','true',[],''],
		['PAGE','725',jdecode('The+Economist'),jdecode(''),'/466/725.html','true',[],''],
		['PAGE','734',jdecode('Literature'),jdecode(''),'/466/734.html','true',[],''],
		['PAGE','743',jdecode('Swimming'),jdecode(''),'/466/743.html','true',[],''],
		['PAGE','916',jdecode('Music'),jdecode(''),'/466/916.html','true',[],''],
		['PAGE','925',jdecode('Final+Fantasy'),jdecode(''),'/466/925.html','true',[],'']
	],''],
	['PAGE','475',jdecode('Projects'),jdecode(''),'/475/index.html','true',[ 
		['PAGE','484',jdecode('Spillwords'),jdecode(''),'/475/484.html','true',[],''],
		['PAGE','493',jdecode('GNet'),jdecode(''),'/475/493.html','true',[],''],
		['PAGE','502',jdecode('Claquesous+Radio'),jdecode(''),'/475/502.html','true',[],''],
		['PAGE','511',jdecode('FFXI+Equipment'),jdecode(''),'/475/511.html','true',[],''],
		['PAGE','752',jdecode('gmusic+library'),jdecode(''),'/475/752.html','true',[],''],
		['PAGE','761',jdecode('C%23+Bridge'),jdecode(''),'/475/761.html','true',[],'']
	],''],
	['PAGE','520',jdecode('Contact'),jdecode(''),'/520.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha'
,				paletteFamily: 	'5351C2'
,				keyvisualId: 	'-1'
,				keyvisualName: 	'keyv.jpg'
,				fontsetId: 		'10555'
,				graphicsetId: 	'10894'
,				contentColor: 	'000000'
,				contentBGColor: 'FFFFFF'
,				a_color: 		'000000'
,				b_color: 		'000000'
,				c_color: 		'000000'
,				d_color: 		'5351C2'
,				e_color: 		'5351C2'
,				f_color: 		'5351C2'
 			  };					                                                                    
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 */					                                                            
