/* [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','44',jdecode('Startseite+%2F+Kontakt'),jdecode(''),'/44.html','true',[],''],
	['PAGE','240601',jdecode('Freie+Termine+f.+Kuhkuscheln+%26+Kinderprogramm%21'),jdecode(''),'/240601.html','true',[],''],
	['PAGE','157606',jdecode('Seminar+Kuhkuscheln+%26+K%C3%BChe+erleben'),jdecode(''),'/157606.html','true',[],''],
	['PAGE','157543',jdecode('+Kindergeburtstag+%26+Gruppen+Erlebnis'),jdecode(''),'/157543.html','true',[],''],
	['PAGE','231001',jdecode('Kuh+Patenschaften+'),jdecode(''),'/231001.html','true',[],''],
	['PAGE','41354',jdecode('G%C3%A4stezimmer+-+Wanderreiterstation'),jdecode(''),'/41354.html','true',[],''],
	['PAGE','41372',jdecode('Pensionstall+f%C3%BCr+Pferde'),jdecode(''),'/41372.html','true',[],''],
	['PAGE','360301',jdecode('Pensionsstall+f%C3%BCr+K%C3%BChe'),jdecode(''),'/360301.html','true',[],''],
	['PAGE','41291',jdecode('Unser+Team+'),jdecode(''),'/41291.html','true',[],''],
	['PAGE','41264',jdecode('Der+Bergwaldhof'),jdecode(''),'/41264.html','true',[],''],
	['PAGE','41363',jdecode('Unsere+Hinterw%C3%A4lder+Zucht+'),jdecode(''),'/41363.html','true',[],''],
	['PAGE','355822',jdecode('Infos+zu+Hinterw%C3%A4lder+Bullen+'),jdecode(''),'/355822.html','true',[],''],
	['PAGE','160101',jdecode('Verk%C3%A4ufliche+Hinterw%C3%A4lder'),jdecode(''),'/160101.html','true',[],''],
	['PAGE','221201',jdecode('Geschichten+unserer+K%C3%BChe'),jdecode(''),'/221201.html','true',[],''],
	['PAGE','41381',jdecode('Die+%22Bullis%22+Silvan+%26+Savanna+'),jdecode(''),'/41381.html','true',[],''],
	['PAGE','41345',jdecode('Unsere++Pferde'),jdecode(''),'/41345.html','true',[],''],
	['PAGE','99001',jdecode('+Hunde%2C+Katzen+%26+Kleintiere'),jdecode(''),'/99001.html','true',[],''],
	['PAGE','177901',jdecode('Hoffest%2C+Turnier+%26+Kuh-Lotto+2012'),jdecode(''),'/177901.html','true',[],''],
	['PAGE','169701',jdecode('Neuigkeiten+%26+R%C3%BCckblicke+2012'),jdecode(''),'/169701.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Roses02';
theSitetree.paletteFamily='DF861C';
theSitetree.keyvisualId='11031';
theSitetree.keyvisualName='kv_11031.jpg';
theSitetree.fontsetId='31935';
theSitetree.graphicsetId='13763';
theSitetree.contentColor='21441C';
theSitetree.contentBGColor='DF861C';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses02',
				paletteFamily: 	'DF861C',
				keyvisualId: 	'11031',
				keyvisualName: 	'kv_11031.jpg',
				fontsetId: 		'31935',
				graphicsetId: 	'13763',
				contentColor: 	'21441C',
				contentBGColor: 'DF861C',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240601',
internalId:  '',
customField: '20120204-160744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20120204-160629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99001',
internalId:  '',
customField: '20120130-231118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41345',
internalId:  '',
customField: '20120130-230105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41372',
internalId:  '',
customField: '20120130-221346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221201',
internalId:  '',
customField: '20111106-235057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41264',
internalId:  '',
customField: '20120130-223634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41291',
internalId:  '',
customField: '20120130-221751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41354',
internalId:  '',
customField: '20120130-225019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41363',
internalId:  '',
customField: '20111025-003428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41381',
internalId:  '',
customField: '20110930-002517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169701',
internalId:  '',
customField: '20120204-161917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160101',
internalId:  '',
customField: '20120130-221833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177901',
internalId:  '',
customField: '20120119-004150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157543',
internalId:  '',
customField: '20120204-161326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '355822',
internalId:  '',
customField: '20111121-222815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157606',
internalId:  '',
customField: '20111223-222931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231001',
internalId:  '',
customField: '20120119-003154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '360301',
internalId:  '',
customField: '20120130-221541'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INH60D';
var companyName   = 'K%C3%BChe+erleben+-+Kuhkuscheln';
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;                                                                     
	};                                                                               
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 */					                                                            

