/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','4601',jdecode('Home'),jdecode(''),'/4601.html','true',[],''],
	['PAGE','6022',jdecode('About+Tembo+Lodge'),jdecode(''),'/6022.html','true',[],''],
	['PAGE','10601',jdecode('Rooms+%26+Restaurant'),jdecode(''),'/10601/index.html','true',[ 
		['PAGE','10622',jdecode('The+Rooms'),jdecode(''),'/10601/10622.html','true',[],''],
		['PAGE','10643',jdecode('The+Restaurant'),jdecode(''),'/10601/10643.html','true',[],'']
	],''],
	['PAGE','10685',jdecode('Activities'),jdecode(''),'/10685/index.html','true',[ 
		['PAGE','10706',jdecode('Game+viewing'),jdecode(''),'/10685/10706.html','true',[],''],
		['PAGE','10748',jdecode('Wellness+%26+Spa+'),jdecode(''),'/10685/10748.html','true',[],'']
	],''],
	['PAGE','10769',jdecode('Rates'),jdecode(''),'/10769.html','true',[],''],
	['PAGE','10790',jdecode('Online+reservation'),jdecode(''),'/10790.html','true',[],''],
	['PAGE','12101',jdecode('Contact'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','12901',jdecode('Guestbook'),jdecode(''),'/12901.html','true',[],''],
	['PAGE','12122',jdecode('Sightings'),jdecode(''),'/12122.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Flat';
theSitetree.paletteFamily='CC9933';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16705';
theSitetree.graphicsetId='12239';
theSitetree.contentColor='715110';
theSitetree.contentBGColor='E3BD70';
var theTemplate={
				name: 			'Flat',
				paletteFamily: 	'CC9933',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16705',
				graphicsetId: 	'12239',
				contentColor: 	'715110',
				contentBGColor: 'E3BD70',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20080131-160236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10643',
internalId:  '',
customField: '20080129-101435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10622',
internalId:  '',
customField: '20080129-101258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10790',
internalId:  '',
customField: '20080125-165729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20080125-160539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20080130-172723'
};
webappMappings['7008']=webappMappings['7008-3']={
webappId:    '7008',
documentId:  '10790',
internalId:  '3',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-12901ahtz10inxso1']={
webappId:    '1002',
documentId:  '12901',
internalId:  '12901ahtz10inxso1',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10685',
internalId:  '',
customField: '20080128-171448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10706',
internalId:  '',
customField: '20080128-171535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10748',
internalId:  '',
customField: '20080128-171638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10769',
internalId:  '',
customField: '20080125-163557'
};
webappMappings['1003']=webappMappings['1003-ahtz10inxso111768f563fe']={
webappId:    '1003',
documentId:  '12122',
internalId:  'ahtz10inxso111768f563fe',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20080125-162351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20080125-162548'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20080125-163655'
};
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10INXSO1';
var companyName   = 'Tembo+Lodge';
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 */					                                                            

