/* [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','40611',jdecode('Die+Farm'),jdecode(''),'/40611.html','true',[],''],
	['PAGE','42635',jdecode('Ein+starkes+Team'),jdecode(''),'/42635.html','true',[],''],
	['PAGE','41600',jdecode('Jagen'),jdecode(''),'/41600.html','true',[],''],
	['PAGE','44',jdecode('+Buschleute'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41258',jdecode('+Aktivit%C3%A4ten'),jdecode(''),'/41258.html','true',[],''],
	['PAGE','48101',jdecode('Hier+wohnen+Sie'),jdecode(''),'/48101.html','true',[],''],
	['PAGE','40602',jdecode('Anreise+und+Kontakt'),jdecode(''),'/40602.html','true',[],''],
	['PAGE','41388',jdecode('The+Farm'),jdecode(''),'/41388.html','true',[],''],
	['PAGE','50901',jdecode('A+strong+team'),jdecode(''),'/50901.html','true',[],''],
	['PAGE','41765',jdecode('Hunting'),jdecode(''),'/41765.html','true',[],''],
	['PAGE','41406',jdecode('The+Bushmen'),jdecode(''),'/41406.html','true',[],''],
	['PAGE','41397',jdecode('What+to+do'),jdecode(''),'/41397.html','true',[],''],
	['PAGE','50922',jdecode('You+stay+here+...'),jdecode(''),'/50922.html','true',[],''],
	['PAGE','41415',jdecode('How+you+get+there+and+contact'),jdecode(''),'/41415.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Desert';
theSitetree.paletteFamily='9D3F2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10617';
theSitetree.graphicsetId='11008';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Desert',
				paletteFamily: 	'9D3F2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10617',
				graphicsetId: 	'11008',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'9D3F2B',
				e_color: 		'9D3F2B',
				f_color: 		'9D3F2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40611',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20101226-103659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40611',
internalId:  '',
customField: '20100516-100747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40602',
internalId:  '',
customField: '20101226-105635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41258',
internalId:  '',
customField: '20100521-094752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41388',
internalId:  '',
customField: '20100516-110736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41397',
internalId:  '',
customField: '20101226-105355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41406',
internalId:  '',
customField: '20101226-105134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41415',
internalId:  '',
customField: '20101226-105605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41600',
internalId:  '',
customField: '20111220-164247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41765',
internalId:  '',
customField: '20111220-164630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42635',
internalId:  '',
customField: '20100507-091444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20101226-103751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20100520-170840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50922',
internalId:  '',
customField: '20101226-105446'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I74ZHX';
var companyName   = 'Omandumba+-+Farm+im+Erongo';
var htmlTitle	  = 'Omandumba';
var metaKeywords  = 'Farm%2C+Jagdfarm%2C+G%C3%A4stefarm%2C+Familien%2C+Camping%2C+Namibia%2C+Rust%2C+Felsmalereien%2C+Felsgravierungen%2C+Erongo%2C+Buschleute%2C+San%2C+Lebendes+Museum%2C+Bergsteigen+in+Namibia%2C+Jagd%2C+Troph%C3%A4enjagd%2C+NAPHA%2C+Hegegebiet%2C+V%C3%B6gel+in+Namibia%2C+Farmrundfahrt%2C+Wildbeobachtung%2C+sundowner%2C+hunting+in+Namibia%2C+rock+paintings%2C+bushmen%2C+living+museum%2C+guest+farm%2C+hunting+farm%2C+Namibian+rock+art%2C+rock+climbing%2C+walking+trails%2C+game+drive%2C+birds+in+Namibia%2C+Hegegebiet%2C+conservancy';
var metaContents  = 'Jagd-+und+G%C3%A4stefarm+Omandumba+West+im+Erongo%2C+Namibia++';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            

