/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41206',jdecode('Aktuelles'),jdecode(''),'/41206.html','true',[],''],
	['PAGE','40555',jdecode('Pensionsstall'),jdecode(''),'/40555/home.html','true',[ 
		['PAGE','40646',jdecode('Im+Sommer'),jdecode(''),'/40555/40646.html','true',[],''],
		['PAGE','40685',jdecode('Im+Winter'),jdecode(''),'/40555/40685.html','true',[],''],
		['PAGE','40871',jdecode('Offenstall+1'),jdecode(''),'/40555/40871.html','true',[],''],
		['PAGE','40880',jdecode('Offenstall+2'),jdecode(''),'/40555/40880.html','true',[],''],
		['PAGE','40889',jdecode('Offenstall+3'),jdecode(''),'/40555/40889.html','true',[],''],
		['PAGE','40898',jdecode('Offenstall+4'),jdecode(''),'/40555/40898.html','true',[],''],
		['PAGE','40694',jdecode('Reitplatz'),jdecode(''),'/40555/40694.html','true',[],''],
		['PAGE','40655',jdecode('F%C3%BCr+die+Reiter'),jdecode(''),'/40555/40655.html','true',[],'']
	],''],
	['PAGE','40794',jdecode('Fotos'),jdecode(''),'/40794.html','true',[],''],
	['PAGE','40732',jdecode('G%C3%A4stebuch'),jdecode(''),'/40732/home.html','true',[ 
		['PAGE','40731',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40732/40731.html','true',[],'']
	],''],
	['PAGE','41033',jdecode('Links'),jdecode(''),'/41033.html','true',[],''],
	['PAGE','40564',jdecode('Kontakt'),jdecode(''),'/40564.html','true',[],''],
	['PAGE','40808',jdecode('Anfahrt'),jdecode(''),'/40808.html','true',[],''],
	['PAGE','41278',jdecode('Online-Shop'),jdecode(''),'/41278/home.html','true',[ 
		['PAGE','41287',jdecode('Produktbeschreibungen'),jdecode(''),'/41278/41287.html','true',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='TOI_Boutique_02';
theSitetree.paletteFamily='FFF8DF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33422';
theSitetree.graphicsetId='14290';
theSitetree.contentColor='FFFEF9';
theSitetree.contentBGColor='D36819';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Boutique_02',
				paletteFamily: 	'FFF8DF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33422',
				graphicsetId: 	'14290',
				contentColor: 	'FFFEF9',
				contentBGColor: 'D36819',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20090601-074624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20090913-074925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40685',
internalId:  '',
customField: '20090913-075208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40646',
internalId:  '',
customField: '20090913-075041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40694',
internalId:  '',
customField: '20081010-153806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40655',
internalId:  '',
customField: '20100606-073355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20081010-154615'
};
webappMappings['1002']=webappMappings['1002-40732atoix0ir40m7']={
webappId:    '1002',
documentId:  '40732',
internalId:  '40732atoix0ir40m7',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40732atoix0ir40m7']={
webappId:    '1002',
documentId:  '40731',
internalId:  '40732atoix0ir40m7',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40732',
internalId:  '',
customField: '20081010-190436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41278',
internalId:  '',
customField: '20100929-172939'
};
webappMappings['1007']=webappMappings['1007-11cea783151']={
webappId:    '1007',
documentId:  '40794',
internalId:  '11cea783151',
customField: 'g.13jl6p86d.ketbakrqbe.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40794',
internalId:  '',
customField: '20081016-194046'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40808',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40808',
internalId:  '',
customField: '20081011-080613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40731',
internalId:  '',
customField: '20081010-190436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41206',
internalId:  '',
customField: '20090822-062820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41033',
internalId:  '',
customField: '20081017-112139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40871',
internalId:  '',
customField: '20081013-103814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40880',
internalId:  '',
customField: '20081013-103933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40889',
internalId:  '',
customField: '20090218-195518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40898',
internalId:  '',
customField: '20081013-102915'
};
webappMappings['1501']=webappMappings['1501-52948900']={
webappId:    '1501',
documentId:  '39994',
internalId:  '52948900',
customField: '1501'
};
webappMappings['4001']=webappMappings['4001-73392870']={
webappId:    '4001',
documentId:  '41278',
internalId:  '73392870',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41287',
internalId:  '',
customField: '20100930-061841'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IR40M7';
var companyName   = 'Gl%C3%BCckliche+Dreckspatzen+vom+Wendbachtalhof';
var htmlTitle	  = 'Gl%C3%BCckliche+Dreckspatzen+vom+Wendbachtalhof';
var metaKeywords  = 'Offenstall%2C+Gangpferde%2C+Isl%C3%A4nder%2C+Isi%2C+reduzierter+Weidegang%2C+T%C3%B6lt%2C+t%C3%B6lten%2C+Freizeitreiterstall%2C+Paddockbox%2C+Rhein-Sieg-Kreis%2C+Neunkirchen-Seelscheid%2C+back+on+track%2C+Ekzoderm%2C+Pensionsstall%2C+';
var metaContents  = 'Pensionstall+Wendbachtalhof%2C+Neunkirchen-Seelscheid%2C+gl%C3%BCckliche+Pferde+im+Offenstall.+Neu+jetzt+mit+online+Shop+f%C3%BCr+Back+on+track+und+Ekzoderm';
					                                                                    
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 */					                                                            

