/* [nodename, id, name, navigationtext, href, isnavigation, childs[]] */
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 theSitetree=[ 
	['PAGE','1111','News','','/1111.html','true',[]],
	['PAGE','1164','Members','','/1164.html','true',[]],
	['PAGE','1187','Links','','/1187.html','true',[]],
	['PAGE','5043','LAN','','/5043.html','true',[]],
	['PAGE','5643','Server','','/5643.html','true',[]],
	['PAGE','2101','Guestbook','','/2101/index.html','true',[ 
		['PAGE','2102','Watch Guestbook','','/2101/2102.html','true',[]]
	]]];
var siteelementCount=7;
					                                                                    
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.getHREF = function(id) {                                                    
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_HREF];                                      
						return null;	                                                
					  };			                                                    
					                                                                    
theSitetree.getName = function(id) {                                                    
						var elem = this.getById(id);                                    
						if (elem != null)                                               
							return elem[POS_NAME];                                      
						return null;	                                                
					  };			                                                    
/* EOF */					                                                            

