/* [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','961',jdecode('Willkommen'),jdecode(''),'/961.html','true',[],''],
	['PAGE','1014',jdecode('Referenzen'),jdecode(''),'/1014.html','true',[],''],
	['PAGE','10149',jdecode('Wohnvermietungen'),jdecode(''),'/10149/index.html','true',[ 
		['PAGE','51646',jdecode('Kiel+bis+300+Euro'),jdecode(''),'/10149/51646.html','true',[],''],
		['PAGE','10195',jdecode('Kiel+bis+450+Euro'),jdecode(''),'/10149/10195.html','true',[],''],
		['PAGE','10218',jdecode('Kiel+ab+450+Euro'),jdecode(''),'/10149/10218.html','true',[],''],
		['PAGE','81142',jdecode('Hamburg'),jdecode(''),'/10149/81142.html','true',[],''],
		['PAGE','81080',jdecode('Berlin'),jdecode(''),'/10149/81080.html','true',[],''],
		['PAGE','81111',jdecode('D%FCsseldorf'),jdecode(''),'/10149/81111.html','true',[],'']
	],''],
	['PAGE','42348',jdecode('Wohnpark+Wellingdorf'),jdecode(''),'/42348.html','true',[],''],
	['PAGE','10241',jdecode('Gewerbevermietungen'),jdecode(''),'/10241.html','true',[],''],
	['PAGE','62346',jdecode('Estate+Planning'),jdecode(''),'/62346.html','true',[],''],
	['PAGE','1787',jdecode('Kaufobjekte'),jdecode(''),'/1787/index.html','true',[ 
		['PAGE','8749',jdecode('Finanzierungsschutz'),jdecode(''),'/1787/8749.html','true',[],''],
		['PAGE','17849',jdecode('Finanzierungen'),jdecode(''),'/1787/17849.html','true',[],'']
	],''],
	['PAGE','80250',jdecode('Immobilien+News+'),jdecode(''),'/80250.html','true',[],''],
	['PAGE','27987',jdecode('Info+Service'),jdecode(''),'/27987/index.html','true',[ 
		['PAGE','68149',jdecode('Digital+TV'),jdecode(''),'/27987/68149.html','true',[],''],
		['PAGE','58173',jdecode('Umzugsinfos'),jdecode(''),'/27987/58173.html','true',[],''],
		['PAGE','73849',jdecode('Wohnideen'),jdecode(''),'/27987/73849.html','true',[],''],
		['PAGE','58200',jdecode('Betriebskosten'),jdecode(''),'/27987/58200.html','true',[],''],
		['PAGE','58733',jdecode('M%FClltrennung'),jdecode(''),'/27987/58733.html','true',[],''],
		['PAGE','58227',jdecode('Heizen+++L%FCften'),jdecode(''),'/27987/58227.html','true',[],'']
	],''],
	['PAGE','58146',jdecode('Mieter+Service'),jdecode(''),'/58146/index.html','true',[ 
		['PAGE','30139',jdecode('Mieterformulare'),jdecode(''),'/58146/30139.html','true',[],''],
		['PAGE','7098',jdecode('Call+Back+Service'),jdecode(''),'/58146/7098.html','true',[],''],
		['PAGE','7136',jdecode('Call+Back+Service'),jdecode(''),'/58146/7136.html','false',[],''],
		['PAGE','4804',jdecode('Hotmail'),jdecode(''),'/58146/4804.html','true',[],''],
		['PAGE','28933',jdecode('Tell-a-friend'),jdecode(''),'/58146/28933.html','true',[],''],
		['PAGE','28126',jdecode('Angebote+per+Mail'),jdecode(''),'/58146/28126/index.html','true',[ 
			['PAGE','44264',jdecode('Angebote+per+Mail+%28Folgeseite%29'),jdecode(''),'/58146/28126/44264.html','false',[],'']
		],''],
		['PAGE','7897',jdecode('Jobangebote'),jdecode(''),'/58146/7897.html','false',[],''],
		['PAGE','5015',jdecode('Hotmail+f%FCr+Kunden'),jdecode(''),'/58146/5015.html','false',[],''],
		['PAGE','18262',jdecode('Finanzierungen'),jdecode(''),'/58146/18262.html','false',[],'']
	],''],
	['PAGE','1856',jdecode('Kontakt+%2F+Hinweise'),jdecode(''),'/1856/index.html','true',[ 
		['PAGE','13270',jdecode('Kontaktformular'),jdecode(''),'/1856/13270/index.html','true',[ 
			['PAGE','13321',jdecode('Kontaktformular'),jdecode(''),'/1856/13270/13321.html','false',[],'']
		],''],
		['PAGE','1833',jdecode('Jobangebote'),jdecode(''),'/1856/1833.html','true',[],'']
	],''],
	['PAGE','73549',jdecode('Impressum'),jdecode(''),'/73549.html','true',[],''],
	['PAGE','5200',jdecode('Wegbeschreibung'),jdecode(''),'/5200.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='Straight';
					                                                                    
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 */					                                                            
