/* [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','4481',jdecode('Home'),jdecode(''),'/4481/index.html','true',[ 
		['PAGE','96264',jdecode('Links'),jdecode(''),'/4481/96264.html','true',[],''],
		['PAGE','129568',jdecode('Ferienhaus+Waldstube'),jdecode(''),'/4481/129568.html','true',[],''],
		['PAGE','103221',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/4481/103221.html','true',[],''],
		['PAGE','95330',jdecode('G%E4stebuch'),jdecode(''),'/4481/95330.html','true',[],''],
		['PAGE','95331',jdecode('Eintr%E4ge'),jdecode(''),'/4481/95331.html','true',[],'']
	],''],
	['PAGE','9227',jdecode('%DCber+uns'),jdecode(''),'/9227.html','true',[],''],
	['PAGE','95551',jdecode('Pferdezucht'),jdecode(''),'/95551/index.html','true',[ 
		['PAGE','95520',jdecode('Mares'),jdecode(''),'/95551/95520.html','true',[],''],
		['PAGE','95582',jdecode('Stallions'),jdecode(''),'/95551/95582.html','true',[],''],
		['PAGE','127768',jdecode('For+Sale'),jdecode(''),'/95551/127768.html','true',[],'']
	],''],
	['PAGE','96373',jdecode('Australian+Shepherds'),jdecode(''),'/96373/index.html','true',[ 
		['PAGE','124668',jdecode('Welpen+Smokey+2008'),jdecode(''),'/96373/124668.html','true',[],''],
		['PAGE','116468',jdecode('Welpen+Smokey+II'),jdecode(''),'/96373/116468.html','true',[],''],
		['PAGE','104332',jdecode('Welpen+Smokey+I'),jdecode(''),'/96373/104332.html','true',[],''],
		['PAGE','112859',jdecode('Welpen+Sequoia+'),jdecode(''),'/96373/112859.html','true',[],''],
		['PAGE','120575',jdecode('Puppydag+2007'),jdecode(''),'/96373/120575.html','true',[],''],
		['PAGE','115507',jdecode('Puppydag+2006'),jdecode(''),'/96373/115507.html','true',[],''],
		['PAGE','106127',jdecode('Foto%B4s'),jdecode(''),'/96373/106127.html','true',[],'']
	],''],
	['PAGE','102854',jdecode('Foto+Galerie'),jdecode(''),'/102854/index.html','true',[ 
		['PAGE','109081',jdecode('Winterspelt'),jdecode(''),'/102854/109081.html','true',[],''],
		['PAGE','111268',jdecode('Buitenritten'),jdecode(''),'/102854/111268.html','true',[],''],
		['PAGE','103769',jdecode('Cutting+Hengsten'),jdecode(''),'/102854/103769.html','true',[],''],
		['PAGE','101921',jdecode('Paarden+%26+Cutting'),jdecode(''),'/102854/101921.html','true',[],'']
	],''],
	['PAGE','96581',jdecode('Western+Lifestyle'),jdecode(''),'/96581/index.html','true',[ 
		['PAGE','117628',jdecode('Aktie+Mikel+Wasser'),jdecode(''),'/96581/117628.html','true',[],''],
		['PAGE','97095',jdecode('Schilderijen'),jdecode(''),'/96581/97095.html','true',[],''],
		['PAGE','97126',jdecode('Meubels'),jdecode(''),'/96581/97126.html','true',[],'']
	],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Squares';
					                                                                    
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 */					                                                            
