/* [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','4593',jdecode('Home'),jdecode(''),'/4593.html','true',[],''],
	['PAGE','27701',jdecode('Blender+Games'),jdecode(''),'/27701/index.html','true',[ 
		['PAGE','38426',jdecode('Airdale'),jdecode(''),'/27701/38426.html','true',[],''],
		['PAGE','49679',jdecode('Space+Assault'),jdecode(''),'/27701/49679.html','true',[],''],
		['PAGE','38395',jdecode('The+Shooting+Gallery'),jdecode(''),'/27701/38395.html','true',[],''],
		['PAGE','49779',jdecode('Transcendent'),jdecode(''),'/27701/49779.html','true',[],''],
		['PAGE','5301',jdecode('Vertigo'),jdecode(''),'/27701/5301.html','true',[],'']
	],''],
	['PAGE','24002',jdecode('CG+Projects'),jdecode(''),'/24002.html','true',[],''],
	['PAGE','12501',jdecode('University+Projects'),jdecode(''),'/12501/index.html','true',[ 
		['PAGE','12528',jdecode('1'),jdecode(''),'/12501/12528.html','true',[],''],
		['PAGE','6504',jdecode('2'),jdecode(''),'/12501/6504.html','true',[],''],
		['PAGE','7201',jdecode('3'),jdecode(''),'/12501/7201.html','true',[],'']
	],''],
	['PAGE','8501',jdecode('Tutorials'),jdecode(''),'/8501/index.html','true',[ 
		['PAGE','64454',jdecode('Building+a+Menu'),jdecode(''),'/8501/64454.html','true',[],''],
		['PAGE','49279',jdecode('Camera+Collision'),jdecode(''),'/8501/49279.html','true',[],''],
		['PAGE','37901',jdecode('MP3+%26+OGG+Support'),jdecode(''),'/8501/37901.html','true',[],''],
		['PAGE','59479',jdecode('Screen+Effects'),jdecode(''),'/8501/59479.html','true',[],''],
		['PAGE','50779',jdecode('Static+Shadows'),jdecode(''),'/8501/50779.html','true',[],''],
		['PAGE','17001',jdecode('Using+Text'),jdecode(''),'/8501/17001.html','true',[],''],
		['PAGE','8528',jdecode('Walk+Cycles'),jdecode(''),'/8501/8528.html','true',[],'']
	],''],
	['PAGE','59279',jdecode('Resources'),jdecode(''),'/59279/index.html','true',[ 
		['PAGE','49979',jdecode('Custom+Cursors'),jdecode(''),'/59279/49979.html','true',[],''],
		['PAGE','29501',jdecode('Game+Engine+Fonts'),jdecode(''),'/59279/29501.html','true',[],''],
		['PAGE','64410',jdecode('Menu+Builder+Template'),jdecode(''),'/59279/64410.html','true',[],'']
	],''],
	['PAGE','7901',jdecode('Links'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','64379',jdecode('Random+Stuff'),jdecode(''),'/64379/index.html','true',[ 
		['PAGE','64179',jdecode('MMORPG+Chars'),jdecode(''),'/64379/64179.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Round';
					                                                                    
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 */					                                                            
