/* [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','4466',jdecode('Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','39205',jdecode('About+a+girl....'),jdecode(''),'/39205.html','true',[],''],
	['PAGE','93435',jdecode('Blog+-+mach+mit%21'),jdecode(''),'/93435.html','true',[],''],
	['PAGE','142295',jdecode('2011+-+That%B4s+life'),jdecode(''),'/142295.html','true',[],''],
	['PAGE','139308',jdecode('Das+ist+2010%21'),jdecode(''),'/139308.html','true',[],''],
	['PAGE','135130',jdecode('Highlights+2009'),jdecode(''),'/135130.html','true',[],''],
	['PAGE','126111',jdecode('Events+2008'),jdecode(''),'/126111.html','true',[],''],
	['PAGE','115095',jdecode('Was+gibt%B4s+2007%3F'),jdecode(''),'/115095.html','true',[],''],
	['PAGE','96098',jdecode('+Neues+im+Pott+06'),jdecode(''),'/96098.html','true',[],''],
	['PAGE','94009',jdecode('Tagebuch+05'),jdecode(''),'/94009/index.html','true',[ 
		['PAGE','88709',jdecode('Herbst+05'),jdecode(''),'/94009/88709.html','true',[],''],
		['PAGE','80233',jdecode('Sommer+05'),jdecode(''),'/94009/80233.html','true',[],''],
		['PAGE','67701',jdecode('Fr%FC%FC%FC%FC%FChling+05'),jdecode(''),'/94009/67701.html','true',[],'']
	],''],
	['PAGE','61901',jdecode('Tagebuch++04'),jdecode(''),'/61901.html','true',[],''],
	['PAGE','90831',jdecode('Urlaub%21%21%21'),jdecode(''),'/90831.html','true',[],''],
	['PAGE','102395',jdecode('Viele+Bilder....'),jdecode(''),'/102395.html','true',[],''],
	['PAGE','111695',jdecode('Pfotenb%FCcher'),jdecode(''),'/111695/index.html','true',[ 
		['PAGE','15102',jdecode('altes+Pfotenbuch'),jdecode(''),'/111695/15102.html','true',[],''],
		['PAGE','15103',jdecode('Eintr%E4ge'),jdecode(''),'/111695/15103.html','true',[],'']
	],''],
	['PAGE','75233',jdecode('Links'),jdecode(''),'/75233.html','true',[],''],
	['PAGE','26701',jdecode('Editorial%2FKontakt'),jdecode(''),'/26701/index.html','true',[ 
		['PAGE','27002',jdecode('Kontakt+zu+uns...+%28Folgeseite%29'),jdecode(''),'/26701/27002.html','false',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='cutout';
					                                                                    
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 */					                                                            

