/* [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','118',jdecode('Home'),jdecode(''),'/118.html','true',[],''],
	['PAGE','124',jdecode('About+us'),jdecode(''),'/124.html','true',[],''],
	['PAGE','129',jdecode('Kilimanjaro+Challenge'),jdecode(''),'/129/index.html','true',[ 
		['PAGE','134',jdecode('Our+Team'),jdecode(''),'/129/134.html','true',[],''],
		['PAGE','139',jdecode('Training'),jdecode(''),'/129/139.html','true',[],''],
		['PAGE','144',jdecode('Fundraising'),jdecode(''),'/129/144.html','true',[],''],
		['PAGE','149',jdecode('Benefits'),jdecode(''),'/129/149.html','true',[],''],
		['PAGE','8427',jdecode('Intinerary'),jdecode(''),'/129/8427.html','true',[],'']
	],''],
	['PAGE','154',jdecode('Contact'),jdecode(''),'/154/index.html','true',[ 
		['PAGE','159',jdecode('Adresses'),jdecode(''),'/154/159.html','true',[],''],
		['PAGE','164',jdecode('How+to+find+us'),jdecode(''),'/154/164.html','true',[],'']
	],''],
	['PAGE','169',jdecode('Tips'),jdecode(''),'/169.html','true',[],''],
	['PAGE','5632',jdecode('Sid+%26+Mar%26%23x27%3Bs+photos'),jdecode(''),'/5632.html','true',[],''],
	['PAGE','13923',jdecode('Guestbook'),jdecode(''),'/13923/index.html','true',[ 
		['PAGE','13918',jdecode('Read+Guestbook'),jdecode(''),'/13923/13918.html','true',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='BB9C60';
theSitetree.keyvisualId='2247';
theSitetree.keyvisualName='reisebueros2.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='417';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='BB9C60';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'BB9C60',
				keyvisualId: 	'2247',
				keyvisualName: 	'reisebueros2.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'417',
				contentColor: 	'FFFFFF',
				contentBGColor: 'BB9C60',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'BB9C60',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '118',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '5632',
internalId:  '1053b42caf4',
customField: 'g.10ktk07h7.agcqq2plnc8.d4'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '118',
internalId:  '962909',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13923',
internalId:  '13923aen010in2c02',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13918',
internalId:  '13923aen010in2c02',
customField: 'action=list'
};
var canonHostname = 'wsc.ehost-services.com';
var accountId     = 'AEN010IN2C02';
var companyName   = 'SID+%26+MAR';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
