/* [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','4519',jdecode('START'),jdecode(''),'/4519/index.html','true',[ 
		['PAGE','249946',jdecode('START+%28Folgeseite%29'),jdecode(''),'/4519/249946.html','false',[],'']
	],''],
	['PAGE','251090',jdecode('Angebot'),jdecode(''),'/251090.html','true',[],''],
	['PAGE','222273',jdecode('Assistenz-Zuschl%E4ge'),jdecode(''),'/222273.html','true',[],''],
	['PAGE','5008',jdecode('Jobs'),jdecode(''),'/5008/index.html','true',[ 
		['PAGE','249909',jdecode('Jobs+%28Folgeseite%29'),jdecode(''),'/5008/249909.html','false',[],'']
	],''],
	['PAGE','79051',jdecode('unser+Team'),jdecode(''),'/79051.html','true',[],''],
	['PAGE','41935',jdecode('Rhein+Flusskreuzfahrten'),jdecode(''),'/41935/index.html','true',[ 
		['PAGE','123286',jdecode('aktuell+%28Folgeseite%29'),jdecode(''),'/41935/123286.html','false',[],'']
	],''],
	['PAGE','223173',jdecode('Kreuzfahrten-AidaBella'),jdecode(''),'/223173/index.html','true',[ 
		['PAGE','221543',jdecode('PARIS+%28Folgeseite%29'),jdecode(''),'/223173/221543.html','false',[],'']
	],''],
	['PAGE','251791',jdecode('Aida-BLeu'),jdecode(''),'/251791.html','true',[],''],
	['PAGE','246669',jdecode('Tunesien'),jdecode(''),'/246669.html','true',[],''],
	['PAGE','246387',jdecode('Teneriffa'),jdecode(''),'/246387.html','true',[],''],
	['PAGE','253890',jdecode('Korsika'),jdecode(''),'/253890.html','true',[],''],
	['PAGE','255190',jdecode('Griechenland+'),jdecode(''),'/255190.html','true',[],''],
	['PAGE','253390',jdecode('Italien_+Kalabrein'),jdecode(''),'/253390.html','true',[],''],
	['PAGE','254235',jdecode('Mallorca'),jdecode(''),'/254235.html','true',[],''],
	['PAGE','254105',jdecode('Zypern'),jdecode(''),'/254105.html','true',[],''],
	['PAGE','250090',jdecode('Vietnam'),jdecode(''),'/250090.html','true',[],''],
	['PAGE','253960',jdecode('+Schottland+2012++++++++++++++'),jdecode(''),'/253960.html','true',[],''],
	['PAGE','246154',jdecode('Marokko'),jdecode(''),'/246154.html','true',[],''],
	['PAGE','183629',jdecode('Hamburg'),jdecode(''),'/183629/index.html','true',[ 
		['PAGE','123055',jdecode('urlaub+in+deutschland+%28Folgeseite%29'),jdecode(''),'/183629/123055.html','false',[],'']
	],''],
	['PAGE','253422',jdecode('Dresden'),jdecode(''),'/253422.html','true',[],''],
	['PAGE','246999',jdecode('Berlin'),jdecode(''),'/246999.html','true',[],''],
	['PAGE','243385',jdecode('Antalya+-T%FCrkei'),jdecode(''),'/243385.html','true',[],''],
	['PAGE','245792',jdecode('St.+Lucia+_Karibik'),jdecode(''),'/245792.html','true',[],''],
	['PAGE','245466',jdecode('Kuba.Varaderro'),jdecode(''),'/245466.html','true',[],''],
	['PAGE','254497',jdecode('Abu+Dhabi'),jdecode(''),'/254497.html','true',[],''],
	['PAGE','134948',jdecode('AGB'),jdecode(''),'/134948.html','true',[],''],
	['PAGE','252300',jdecode('+Fotoalbum'),jdecode(''),'/252300.html','true',[],'']];
var siteelementCount=32;
theSitetree.topTemplateName='Enjoy';
					                                                                    
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 */					                                                            

