/* [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','13701',jdecode('Home'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','13717',jdecode('Angebote+Wattritt'),jdecode(''),'/13717/home.html','true',[ 
		['PAGE','13722',jdecode('Teilnahmevoraussetzungen'),jdecode(''),'/13717/13722.html','true',[],''],
		['PAGE','13732',jdecode('Anfrage+%2B+Preise'),jdecode(''),'/13717/13732.html','true',[],'']
	],''],
	['PAGE','16324',jdecode('Termine+Wattritt'),jdecode(''),'/16324.html','true',[],''],
	['PAGE','70810',jdecode('AKTUELLES'),jdecode(''),'/70810.html','true',[],''],
	['PAGE','13712',jdecode('Reiterh%C3%B6fe+Hombachtal'),jdecode(''),'/13712.html','true',[],''],
	['PAGE','27415',jdecode('Wattrittbilder'),jdecode(''),'/27415.html','true',[],''],
	['PAGE','13742',jdecode('Kontakt%2FG%C3%A4stebuch'),jdecode(''),'/13742.html','true',[],''],
	['PAGE','15416',jdecode('Impressum'),jdecode(''),'/15416.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Scenery';
theSitetree.paletteFamily='43784D';
theSitetree.keyvisualId='6950';
theSitetree.keyvisualName='kv_6950.jpg';
theSitetree.fontsetId='11227';
theSitetree.graphicsetId='12051';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='62976C';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Scenery',
				paletteFamily: 	'43784D',
				keyvisualId: 	'6950',
				keyvisualName: 	'kv_6950.jpg',
				fontsetId: 		'11227',
				graphicsetId: 	'12051',
				contentColor: 	'FFFFFF',
				contentBGColor: '62976C',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1008']=webappMappings['1008-28275140']={
webappId:    '1008',
documentId:  '13732',
internalId:  '28275140',
customField: 'de:DE:'
};
webappMappings['1007']=webappMappings['1007-10506c725ee']={
webappId:    '1007',
documentId:  '27415',
internalId:  '10506c725ee',
customField: 'g.10k3bpk52.pjdnfan7r1.3o'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20111229-172816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13717',
internalId:  '',
customField: '20110926-082215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20070916-104538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13732',
internalId:  '',
customField: '20110714-110645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16324',
internalId:  '',
customField: '20111218-133750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13712',
internalId:  '',
customField: '20080303-223814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27415',
internalId:  '',
customField: '20080520-170512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13742',
internalId:  '',
customField: '20080709-192801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15416',
internalId:  '',
customField: '20060829-141025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70810',
internalId:  '',
customField: '20101104-162326'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INE0NS';
var companyName   = 'Wattritt';
var htmlTitle	  = 'Wattritt';
var metaKeywords  = 'Wattritt%2C+Wattreiten%2C+Reitsport%2C+Freizeitreiten%2C+Neuwerk%2C+Anker%2C+Griebel%2C+husachterndiek%2C+Nordsee%2C+Cuxhaven%2C+Pferde%2C+Kurzurlaub%2C+Reiterferien%2C+Sahlenburg%2C+Strohlager%2C+Heuboden%2C+Kugelbake%2C+Bernstein%2C+Elbe%2C+Fahrrinne%2C+Seehunde%2C+Flipper%2C+Leuchtturm%2C+Watt%2C+Ebbe%2C+Flut%2C+Otto%2C+Wattwagen%2C+Vielseitigkeitsreiter%2C+Vielseitigkeit%2C+Neuwerk%2C+Insel+Neuwerk%2C+Hombachtal%2C+Pferd%2C+Pferde%2C+Jagdritt%2C+Jagdreiten%2C+Gel%C3%A4nderitt%2C+Gel%C3%A4ndereiten%2C+Freizeitreiter%2C+Pferde-Lehrg%C3%A4nge%2C+Reiter-Lehrg%C3%A4nge%2C+Ausbildung%2C+Rittf%C3%BChrer%2C+FN%2C+VFD%2C+Gel%C3%A4nderittf%C3%BChrer%2C+Gel%C3%A4nde-Rittf%C3%BChrer%2C+Wildeshauser+Geest%2C+Landschaftsschutzgebiet%2C+Stuhr%2C+Fahrenhorst%2C';
var metaContents  = 'Angebot+eines+gef%C3%BChrten+Rittes+von+Sahlenburg+%28Cuxhaven%29+zur+Insel+Neuwerk.+Eint%C3%A4gige+oder+mehrt%C3%A4gige+Ritte+mit+%C3%9Cbernachtungsm%C3%B6glichkeiten+auf+der+Insel.+Unterkunfts-Organisation%2C+Arrangements+f%C3%BCr+Gruppen.+Ausbildung+im+Gel%C3%A4ndereiten.+Lehrg%C3%A4nge+auch+f%C3%BCr+Wiedereinsteiger.';
					                                                                    
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 */					                                                            

