/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','92464',jdecode('Flox+%26Luna'),jdecode(''),'/92464/index.html','true',[ 
		['PAGE','4652',jdecode('Floxemanns+Ankunft'),jdecode(''),'/92464/4652.html','true',[],''],
		['PAGE','4679',jdecode('Luna%26%23x27%3Bs+Ankunft'),jdecode(''),'/92464/4679.html','true',[],'']
	],''],
	['PAGE','153203',jdecode('Aktuelles'),jdecode(''),'/153203/index.html','true',[ 
		['PAGE','144653',jdecode('2007+-+2008'),jdecode(''),'/153203/144653.html','true',[],''],
		['PAGE','118364',jdecode('2006'),jdecode(''),'/153203/118364.html','true',[],''],
		['PAGE','100364',jdecode('2005'),jdecode(''),'/153203/100364.html','true',[],''],
		['PAGE','4760',jdecode('Das+erste+Jahr'),jdecode(''),'/153203/4760.html','true',[],'']
	],''],
	['PAGE','143570',jdecode('Flox+%26+Luna+im+Urlaub'),jdecode(''),'/143570/index.html','true',[ 
		['PAGE','126159',jdecode('Flox+und+Luna+in+Nordfriesland'),jdecode(''),'/143570/126159.html','true',[],''],
		['PAGE','110877',jdecode('Urlaub+2005'),jdecode(''),'/143570/110877.html','true',[],'']
	],''],
	['PAGE','4706',jdecode('Tierschutz'),jdecode(''),'/4706/index.html','true',[ 
		['PAGE','67864',jdecode('Animal+Respect'),jdecode(''),'/4706/67864.html','true',[],''],
		['PAGE','94164',jdecode('Hunde+aus+dem+S%FCden'),jdecode(''),'/4706/94164.html','true',[],''],
		['PAGE','103164',jdecode('Patenhunde'),jdecode(''),'/4706/103164.html','true',[],'']
	],''],
	['PAGE','73064',jdecode('Graue+Schnauzen'),jdecode(''),'/73064.html','true',[],''],
	['PAGE','123957',jdecode('Aegina'),jdecode(''),'/123957/index.html','true',[ 
		['PAGE','149103',jdecode('Aegina+2009'),jdecode(''),'/123957/149103.html','true',[],''],
		['PAGE','145735',jdecode('Aegina+2007'),jdecode(''),'/123957/145735.html','true',[],''],
		['PAGE','120501',jdecode('Aegina+2006'),jdecode(''),'/123957/120501.html','true',[],''],
		['PAGE','113364',jdecode('Aegina+2005'),jdecode(''),'/123957/113364.html','true',[],''],
		['PAGE','70264',jdecode('Aegina+2004'),jdecode(''),'/123957/70264.html','true',[],'']
	],''],
	['PAGE','9336',jdecode('Impressionen'),jdecode(''),'/9336/index.html','true',[ 
		['PAGE','74095',jdecode('Galerie'),jdecode(''),'/9336/74095.html','true',[],''],
		['PAGE','148656',jdecode('Aus+aller+Welt'),jdecode(''),'/9336/148656.html','true',[],''],
		['PAGE','68019',jdecode('In+liebevoller+Erinnerung'),jdecode(''),'/9336/68019.html','true',[],'']
	],''],
	['PAGE','9309',jdecode('Hundherum'),jdecode(''),'/9309/index.html','true',[ 
		['PAGE','74264',jdecode('Ern%E4hrung'),jdecode(''),'/9309/74264.html','true',[],''],
		['PAGE','77564',jdecode('Bachbl%FCten'),jdecode(''),'/9309/77564.html','true',[],'']
	],''],
	['PAGE','19022',jdecode('G%E4stebuch'),jdecode(''),'/19022/index.html','true',[ 
		['PAGE','19023',jdecode('Eintr%E4ge'),jdecode(''),'/19022/19023.html','true',[],'']
	],''],
	['PAGE','4787',jdecode('Links'),jdecode(''),'/4787.html','true',[],''],
	['PAGE','74164',jdecode('Impressum'),jdecode(''),'/74164.html','true',[],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Inspiration';
					                                                                    
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 */					                                                            
