/* [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','1111',jdecode('COSTA+RICA+REISE+SERVICE'),jdecode(''),'/1111/index.html','true',[ 
		['PAGE','1740',jdecode('Anreise%2C+Fluege'),jdecode(''),'/1111/1740/index.html','true',[ 
			['PAGE','67097',jdecode('Anreise+%28Folgeseite%29'),jdecode(''),'/1111/1740/67097.html','false',[],'']
		],''],
		['PAGE','11608',jdecode('Empfehlenswerte+Tips+zu%3A'),jdecode(''),'/1111/11608.html','false',[],''],
		['PAGE','10338',jdecode('dt.+Reiseb%FCros+in+Costa+Rica'),jdecode(''),'/1111/10338.html','true',[],''],
		['PAGE','47280',jdecode('Mietwagen'),jdecode(''),'/1111/47280/index.html','true',[ 
			['PAGE','70848',jdecode('Mietwagen+%28Folgeseite%29'),jdecode(''),'/1111/47280/70848.html','false',[],'']
		],''],
		['PAGE','10361',jdecode('Sprachen%2C+Sprachrundreisen'),jdecode(''),'/1111/10361.html','true',[],''],
		['PAGE','54299',jdecode('Restaurant+Montauk+%28Folgeseite%29'),jdecode(''),'/1111/54299.html','false',[],''],
		['PAGE','8834',jdecode('Empfehlenswerte+Tips+zu%3A'),jdecode(''),'/1111/8834.html','true',[],''],
		['PAGE','39770',jdecode('Sprachen%2C+Sprachrundreisen+%28Folgeseite%29'),jdecode(''),'/1111/39770.html','false',[],''],
		['PAGE','23408',jdecode('Kaffeetour+%28Folgeseite%29'),jdecode(''),'/1111/23408.html','false',[],''],
		['PAGE','10384',jdecode('Tips+zu+Ihrer+Sicherheit'),jdecode(''),'/1111/10384.html','true',[],''],
		['PAGE','10476',jdecode('Adressen%2C+Reisef%FChrer'),jdecode(''),'/1111/10476.html','true',[],''],
		['PAGE','10453',jdecode('Landesinformationen'),jdecode(''),'/1111/10453.html','true',[],''],
		['PAGE','28507',jdecode('Reiseberichte'),jdecode(''),'/1111/28507.html','true',[],'']
	],''],
	['PAGE','12654',jdecode('UNTERKUENFTE+%26+TOUREN'),jdecode(''),'/12654/index.html','true',[ 
		['PAGE','22203',jdecode('Pazifikk%FCste'),jdecode(''),'/12654/22203/index.html','true',[ 
			['PAGE','63474',jdecode('Pazifikk%FCste+%28Folgeseite%29'),jdecode(''),'/12654/22203/63474.html','false',[],'']
		],''],
		['PAGE','22230',jdecode('Atlantikk%FCste'),jdecode(''),'/12654/22230/index.html','true',[ 
			['PAGE','64917',jdecode('Atlantikk%FCste+%28Folgeseite%29'),jdecode(''),'/12654/22230/64917.html','false',[],'']
		],''],
		['PAGE','22257',jdecode('Arenal'),jdecode(''),'/12654/22257/index.html','true',[ 
			['PAGE','65011',jdecode('Arenal+%28Folgeseite%29'),jdecode(''),'/12654/22257/65011.html','false',[],'']
		],''],
		['PAGE','22284',jdecode('Monteverde'),jdecode(''),'/12654/22284/index.html','true',[ 
			['PAGE','65060',jdecode('Monteverde+%28Folgeseite%29'),jdecode(''),'/12654/22284/65060.html','false',[],'']
		],''],
		['PAGE','22311',jdecode('Guanacaste'),jdecode(''),'/12654/22311/index.html','true',[ 
			['PAGE','62813',jdecode('Guanacaste+%28Folgeseite%29'),jdecode(''),'/12654/22311/62813.html','false',[],'']
		],''],
		['PAGE','22338',jdecode('Zona+Sur'),jdecode(''),'/12654/22338/index.html','true',[ 
			['PAGE','65109',jdecode('Zona+Sur+%28Folgeseite%29'),jdecode(''),'/12654/22338/65109.html','false',[],'']
		],''],
		['PAGE','22365',jdecode('Cartago'),jdecode(''),'/12654/22365/index.html','true',[ 
			['PAGE','65156',jdecode('Cartago+%28Folgeseite%29'),jdecode(''),'/12654/22365/65156.html','false',[],'']
		],'']
	],''],
	['PAGE','58709',jdecode('INSEL+SAN+ANDRES'),jdecode(''),'/58709/index.html','true',[ 
		['PAGE','58960',jdecode('Insel+San+Andres+%28Folgeseite%29'),jdecode(''),'/58709/58960.html','false',[],''],
		['PAGE','59200',jdecode('Reisebericht+San+Andres'),jdecode(''),'/58709/59200.html','true',[],'']
	],''],
	['PAGE','23003',jdecode('BUCHEN'),jdecode(''),'/23003/index.html','true',[ 
		['PAGE','71217',jdecode('Buchen+%28Folgeseite%29'),jdecode(''),'/23003/71217.html','false',[],'']
	],''],
	['PAGE','23315',jdecode('IMMOBILIEN'),jdecode(''),'/23315/index.html','true',[ 
		['PAGE','49878',jdecode('Immobilien+%26+Investitionen'),jdecode(''),'/23315/49878.html','true',[],''],
		['PAGE','67317',jdecode('Immobilien+%26+Investitionen+%28Folgeseite%29'),jdecode(''),'/23315/67317.html','false',[],'']
	],''],
	['PAGE','75513',jdecode('FERTIGHAEUSER'),jdecode(''),'/75513/index.html','true',[ 
		['PAGE','68417',jdecode('Immobilien+%28Folgeseite%29'),jdecode(''),'/75513/68417.html','false',[],''],
		['PAGE','76213',jdecode('prefab++Houses+central+America'),jdecode(''),'/75513/76213.html','true',[],'']
	],''],
	['PAGE','20305',jdecode('LANGZEITURLAUBER'),jdecode(''),'/20305.html','true',[],''],
	['PAGE','75013',jdecode('INFO+CENTER'),jdecode(''),'/75013.html','true',[],''],
	['PAGE','77013',jdecode('ROYAL+HEIGHTS+%28german%29'),jdecode(''),'/77013.html','true',[],''],
	['PAGE','77950',jdecode('Royal+Heights+%28english%29'),jdecode(''),'/77950.html','true',[],''],
	['PAGE','78350',jdecode('AVAILABILITY+AND+PRICES'),jdecode(''),'/78350.html','true',[],''],
	['PAGE','10499',jdecode('AUSWANDERERSEITE'),jdecode(''),'/10499/index.html','true',[ 
		['PAGE','68439',jdecode('Auswandererseite+%28Folgeseite%29'),jdecode(''),'/10499/68439.html','false',[],'']
	],''],
	['PAGE','10407',jdecode('COSTA+RICA+FOTOS'),jdecode(''),'/10407.html','true',[],''],
	['PAGE','77044',jdecode('JICARAL+%28german%29'),jdecode(''),'/77044.html','true',[],''],
	['PAGE','78150',jdecode('Jicaral+%28english%29'),jdecode(''),'/78150.html','true',[],''],
	['PAGE','40068',jdecode('WALDSCHUTZPROJEKTE'),jdecode(''),'/40068/index.html','true',[ 
		['PAGE','50909',jdecode('Reforst+Projekts'),jdecode(''),'/40068/50909.html','true',[],''],
		['PAGE','66030',jdecode('Reforst+Projekts+%28Folgeseite%29'),jdecode(''),'/40068/66030.html','false',[],'']
	],''],
	['PAGE','23803',jdecode('PROPERTIES'),jdecode(''),'/23803/index.html','true',[ 
		['PAGE','54679',jdecode('about+buy+a+Property+in+Costa+Rica'),jdecode(''),'/23803/54679.html','true',[],'']
	],''],
	['PAGE','27707',jdecode('GESUNDHEIT%2C+WELLNESS'),jdecode(''),'/27707/index.html','true',[ 
		['PAGE','66008',jdecode('Gesundheit%2C+Wellness+%28Folgeseite%29'),jdecode(''),'/27707/66008.html','false',[],'']
	],''],
	['PAGE','59956',jdecode('TRAUMINSEL+MALLORCA'),jdecode(''),'/59956/index.html','true',[ 
		['PAGE','71552',jdecode('Trauminsel+Mallorca+%28Folgeseite%29'),jdecode(''),'/59956/71552.html','false',[],'']
	],''],
	['PAGE','66557',jdecode('ATV+TOURS+COSTA+RICA'),jdecode(''),'/66557.html','true',[],''],
	['PAGE','68498',jdecode('Reiseinformationen'),jdecode(''),'/68498.html','true',[],''],
	['PAGE','70726',jdecode('ADOPE+RENT+A+CAR'),jdecode(''),'/70726/index.html','true',[ 
		['PAGE','70801',jdecode('Adobe+rent+a+car+%28Folgeseite%29'),jdecode(''),'/70726/70801.html','false',[],'']
	],''],
	['PAGE','70758',jdecode('PAY+LESS+RENT+A+CAR'),jdecode(''),'/70758/index.html','true',[ 
		['PAGE','70934',jdecode('Pay+Less+rent+a+car+%28Folgeseite%29'),jdecode(''),'/70758/70934.html','false',[],'']
	],''],
	['PAGE','41868',jdecode('COSTA+RICA+CHAT'),jdecode(''),'/41868.html','true',[],''],
	['PAGE','39268',jdecode('NEWSLETTER'),jdecode(''),'/39268.html','true',[],''],
	['PAGE','66110',jdecode('IMPRESSUM'),jdecode(''),'/66110.html','true',[],''],
	['PAGE','3101',jdecode('GAESTEBUCH'),jdecode(''),'/3101.html','true',[],''],
	['PAGE','3102',jdecode('EINTRAEGE'),jdecode(''),'/3102.html','true',[],'']];
var siteelementCount=72;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            

