/* [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','4535',jdecode('Home'),jdecode(''),'/4535.html','true',[],''],
	['PAGE','4836',jdecode('Referenzen'),jdecode(''),'/4836.html','true',[],''],
	['PAGE','14141',jdecode('Aktuelle+Texte'),jdecode(''),'/14141.html','true',[],''],
	['PAGE','41779',jdecode('News+Good+-+PR+Services'),jdecode(''),'/41779.html','true',[],''],
	['PAGE','50179',jdecode('Budget+PR'),jdecode(''),'/50179.html','true',[],''],
	['PAGE','67395',jdecode('Reputation+PR'),jdecode(''),'/67395.html','true',[],''],
	['PAGE','59379',jdecode('Travel+Press'),jdecode(''),'/59379.html','true',[],''],
	['PAGE','19801',jdecode('Pressekommuniqu%E9es'),jdecode(''),'/19801/index.html','true',[ 
		['PAGE','19833',jdecode('dp+real+bonds'),jdecode(''),'/19801/19833.html','true',[],''],
		['PAGE','19864',jdecode('Feuring+Group'),jdecode(''),'/19801/19864.html','true',[],''],
		['PAGE','54725',jdecode('gastromusik.de'),jdecode(''),'/19801/54725.html','true',[],''],
		['PAGE','19895',jdecode('WOW+Traveler'),jdecode(''),'/19801/19895.html','true',[],''],
		['PAGE','23401',jdecode('TONart%26BILDsch%F6n'),jdecode(''),'/19801/23401.html','true',[],''],
		['PAGE','23501',jdecode('pro-buero'),jdecode(''),'/19801/23501.html','true',[],''],
		['PAGE','46203',jdecode('CHD+Expert'),jdecode(''),'/19801/46203.html','true',[],''],
		['PAGE','68495',jdecode('Top+hotel'),jdecode(''),'/19801/68495.html','true',[],''],
		['PAGE','70608',jdecode('Heinz+Horrmann'),jdecode(''),'/19801/70608.html','true',[],''],
		['PAGE','29553',jdecode('hottelling'),jdecode(''),'/19801/29553.html','true',[],''],
		['PAGE','45079',jdecode('hotelier.com'),jdecode(''),'/19801/45079.html','true',[],''],
		['PAGE','37601',jdecode('Restaurant+des+Monats'),jdecode(''),'/19801/37601.html','true',[],''],
		['PAGE','30301',jdecode('Cultuzz'),jdecode(''),'/19801/30301.html','true',[],''],
		['PAGE','32201',jdecode('Sharework'),jdecode(''),'/19801/32201.html','true',[],''],
		['PAGE','63779',jdecode('Fearless+Medien'),jdecode(''),'/19801/63779.html','true',[],''],
		['PAGE','33201',jdecode('Gestio'),jdecode(''),'/19801/33201.html','true',[],''],
		['PAGE','61779',jdecode('mmh'),jdecode(''),'/19801/61779.html','true',[],''],
		['PAGE','53579',jdecode('Dietmar+Baum'),jdecode(''),'/19801/53579.html','true',[],''],
		['PAGE','47479',jdecode('B%F6hmler%2C+J%FCrgen'),jdecode(''),'/19801/47479.html','true',[],''],
		['PAGE','34301',jdecode('Thomson+Media+Control'),jdecode(''),'/19801/34301.html','true',[],''],
		['PAGE','36301',jdecode('fashion+technics+today'),jdecode(''),'/19801/36301.html','true',[],''],
		['PAGE','65179',jdecode('CG-PARTNER'),jdecode(''),'/19801/65179.html','true',[],''],
		['PAGE','48879',jdecode('Sonstiges'),jdecode(''),'/19801/48879.html','true',[],'']
	],''],
	['PAGE','4809',jdecode('Leistungen'),jdecode(''),'/4809.html','true',[],''],
	['PAGE','12902',jdecode('Step+by+step'),jdecode(''),'/12902.html','true',[],''],
	['PAGE','59579',jdecode('Kundenzeitschrift'),jdecode(''),'/59579.html','true',[],''],
	['PAGE','38249',jdecode('Marketing+%26+PR-Tipps'),jdecode(''),'/38249.html','true',[],''],
	['PAGE','43879',jdecode('Aktuelle+Umfragen'),jdecode(''),'/43879.html','true',[],''],
	['PAGE','67426',jdecode('Online-Befragungen'),jdecode(''),'/67426.html','true',[],''],
	['PAGE','12402',jdecode('Int.+Gesch%E4ftsw%FCnsche'),jdecode(''),'/12402.html','true',[],''],
	['PAGE','6602',jdecode('creative_source'),jdecode(''),'/6602/index.html','true',[ 
		['PAGE','37201',jdecode('creative_source+ProGastro'),jdecode(''),'/6602/37201.html','true',[],''],
		['PAGE','43679',jdecode('Caf%E9+Catwalk+Hamburg'),jdecode(''),'/6602/43679.html','true',[],'']
	],''],
	['PAGE','8002',jdecode('Networking'),jdecode(''),'/8002/index.html','true',[ 
		['PAGE','43279',jdecode('Ole+Janssen'),jdecode(''),'/8002/43279.html','true',[],''],
		['PAGE','43310',jdecode('Iris+Schlomski'),jdecode(''),'/8002/43310.html','true',[],'']
	],''],
	['PAGE','4863',jdecode('Kontakt'),jdecode(''),'/4863/index.html','true',[ 
		['PAGE','19502',jdecode('Kontakt+%28follow+up+page%29'),jdecode(''),'/4863/19502.html','false',[],''],
		['PAGE','37401',jdecode('Intranet'),jdecode(''),'/4863/37401.html','true',[],'']
	],''],
	['PAGE','12002',jdecode('Anfahrt'),jdecode(''),'/12002.html','true',[],''],
	['PAGE','13802',jdecode('Webimpressum'),jdecode(''),'/13802.html','true',[],''],
	['PAGE','33901',jdecode('Weblogs'),jdecode(''),'/33901.html','true',[],'']];
var siteelementCount=50;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
