/* [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.html','true',[],''],
	['PAGE','13550',jdecode('%DCber+uns'),jdecode(''),'/13550.html','true',[],''],
	['PAGE','37628',jdecode('Kira'),jdecode(''),'/37628.html','true',[],''],
	['PAGE','37723',jdecode('Aaron'),jdecode(''),'/37723.html','true',[],''],
	['PAGE','49601',jdecode('Gipsy'),jdecode(''),'/49601/index.html','true',[ 
		['PAGE','56401',jdecode('Ergebnisse+2010+Agi+und+Obi'),jdecode(''),'/49601/56401.html','true',[],'']
	],''],
	['PAGE','37544',jdecode('Aska+%86'),jdecode(''),'/37544.html','true',[],''],
	['PAGE','37465',jdecode('Blacky+%86'),jdecode(''),'/37465.html','true',[],''],
	['PAGE','43200',jdecode('Hundesport'),jdecode(''),'/43200/index.html','true',[ 
		['PAGE','43810',jdecode('Agility'),jdecode(''),'/43200/43810.html','true',[],''],
		['PAGE','43841',jdecode('Obedience'),jdecode(''),'/43200/43841.html','true',[],''],
		['PAGE','43872',jdecode('SchH+...+VPG'),jdecode(''),'/43200/43872.html','true',[],'']
	],''],
	['PAGE','43257',jdecode('Der+Deutsche+Sch%E4ferhund'),jdecode(''),'/43257.html','true',[],''],
	['PAGE','51801',jdecode('Sporttermine+LG+10+2010'),jdecode(''),'/51801.html','true',[],''],
	['PAGE','13577',jdecode('Kontakt'),jdecode(''),'/13577/index.html','true',[ 
		['PAGE','55102',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13577/55102.html','false',[],''],
		['PAGE','46005',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13577/46005.html','false',[],'']
	],''],
	['PAGE','18277',jdecode('G%E4stebuch'),jdecode(''),'/18277/index.html','true',[ 
		['PAGE','18278',jdecode('Eintr%E4ge'),jdecode(''),'/18277/18278.html','true',[],'']
	],''],
	['PAGE','13604',jdecode('Links'),jdecode(''),'/13604.html','true',[],''],
	['PAGE','47188',jdecode('Was+ist+neu+%3F'),jdecode(''),'/47188.html','true',[],''],
	['PAGE','42704',jdecode('Hunde+suchen+ein+Zuhause'),jdecode(''),'/42704.html','true',[],''],
	['PAGE','51102',jdecode('Fotoalben+Aaron+SchHagility'),jdecode(''),'/51102.html','true',[],''],
	['PAGE','37322',jdecode('Gesundheit'),jdecode(''),'/37322.html','true',[],''],
	['PAGE','44301',jdecode('Impressum'),jdecode(''),'/44301.html','true',[],''],
	['PAGE','37358',jdecode('Anfahrt'),jdecode(''),'/37358.html','true',[],''],
	['PAGE','37393',jdecode('Routenplaner'),jdecode(''),'/37393.html','true',[],''],
	['PAGE','53402',jdecode('Gipsy+und+Aaron'),jdecode(''),'/53402.html','true',[],''],
	['PAGE','54702',jdecode('Freunde'),jdecode(''),'/54702.html','true',[],''],
	['PAGE','54902',jdecode('Anfahrt'),jdecode(''),'/54902.html','true',[],''],
	['PAGE','54937',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/54937.html','true',[],''],
	['PAGE','56902',jdecode('unsere+Vier'),jdecode(''),'/56902.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Profile';
					                                                                    
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 */					                                                            

