/* [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','4597',jdecode('bienvenido'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','4735',jdecode('nuestros+viajes'),jdecode(''),'/4735/index.html','true',[ 
		['PAGE','299198',jdecode('Sri+Lanka'),jdecode(''),'/4735/299198.html','true',[],''],
		['PAGE','298414',jdecode('Ibiza'),jdecode(''),'/4735/298414.html','true',[],''],
		['PAGE','255598',jdecode('Mexico'),jdecode(''),'/4735/255598.html','true',[],''],
		['PAGE','238598',jdecode('Spaniens+Nordwesten'),jdecode(''),'/4735/238598.html','true',[],''],
		['PAGE','231274',jdecode('Gambia'),jdecode(''),'/4735/231274.html','true',[],''],
		['PAGE','217374',jdecode('Griechenland'),jdecode(''),'/4735/217374.html','true',[],''],
		['PAGE','213438',jdecode('Wien'),jdecode(''),'/4735/213438.html','true',[],''],
		['PAGE','204042',jdecode('Namibia'),jdecode(''),'/4735/204042.html','true',[],''],
		['PAGE','196947',jdecode('S%FCdtirol'),jdecode(''),'/4735/196947.html','true',[],''],
		['PAGE','193048',jdecode('Lissabon'),jdecode(''),'/4735/193048.html','true',[],''],
		['PAGE','199873',jdecode('Costa+Rica'),jdecode(''),'/4735/199873.html','true',[],''],
		['PAGE','175953',jdecode('London'),jdecode(''),'/4735/175953.html','true',[],'']
	],''],
	['PAGE','140674',jdecode('1%2F2+Marathon'),jdecode(''),'/140674/index.html','true',[ 
		['PAGE','150543',jdecode('Trollinger'),jdecode(''),'/140674/150543.html','true',[],''],
		['PAGE','32317',jdecode('Stuttgart-Lauf'),jdecode(''),'/140674/32317.html','true',[],''],
		['PAGE','178277',jdecode('Kochertal'),jdecode(''),'/140674/178277.html','true',[],''],
		['PAGE','183647',jdecode('Schw%E4bisch+Gm%FCnd'),jdecode(''),'/140674/183647.html','true',[],''],
		['PAGE','185347',jdecode('Nikolauslauf'),jdecode(''),'/140674/185347.html','true',[],'']
	],''],
	['PAGE','140643',jdecode('Marathon'),jdecode(''),'/140643/index.html','true',[ 
		['PAGE','296498',jdecode('Kopenhagen'),jdecode(''),'/140643/296498.html','true',[],''],
		['PAGE','236273',jdecode('Hamburg-Marathon'),jdecode(''),'/140643/236273.html','true',[],''],
		['PAGE','198373',jdecode('K%F6ln-Marathon'),jdecode(''),'/140643/198373.html','true',[],''],
		['PAGE','179348',jdecode('Berlin-Marathon'),jdecode(''),'/140643/179348.html','true',[],''],
		['PAGE','130044',jdecode('Stockholm'),jdecode(''),'/140643/130044.html','true',[],''],
		['PAGE','34006',jdecode('NY+Marathon'),jdecode(''),'/140643/34006.html','true',[],''],
		['PAGE','32001',jdecode('Freiburg-Marathon'),jdecode(''),'/140643/32001.html','true',[],''],
		['PAGE','179147',jdecode('M%FCnchen-Marathon'),jdecode(''),'/140643/179147.html','true',[],'']
	],''],
	['PAGE','5127',jdecode('G%E4stebuch'),jdecode(''),'/5127/index.html','true',[ 
		['PAGE','5128',jdecode('Eintr%E4ge'),jdecode(''),'/5127/5128.html','true',[],'']
	],''],
	['PAGE','130895',jdecode('Impressum'),jdecode(''),'/130895.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 */					                                                            

