/* [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','27214',jdecode('Marco+Marek'),jdecode(''),'/27214.html','true',[],''],
	['PAGE','15701',jdecode('Zucht-B%C3%B6cke'),jdecode(''),'/15701.html','true',[],''],
	['PAGE','13761',jdecode('Mutterziegen'),jdecode(''),'/13761.html','true',[],''],
	['PAGE','32440',jdecode('Ziegenschauen'),jdecode(''),'/32440.html','true',[],''],
	['PAGE','33840',jdecode('ZG+M%26M'),jdecode(''),'/33840.html','true',[],''],
	['PAGE','25614',jdecode('Europ.+Zuchtkollegen'),jdecode(''),'/25614.html','true',[],''],
	['PAGE','13790',jdecode('Ch%C3%A9vre+Boer'),jdecode(''),'/13790.html','true',[],''],
	['PAGE','17101',jdecode('Boer+Goats'),jdecode(''),'/17101.html','true',[],''],
	['PAGE','30340',jdecode('Videos+meiner+Ziegen'),jdecode(''),'/30340.html','true',[],''],
	['PAGE','14202',jdecode('Anfahrt%2FMAP'),jdecode(''),'/14202.html','true',[],''],
	['PAGE','13906',jdecode('Links'),jdecode(''),'/13906.html','true',[],''],
	['PAGE','18001',jdecode('Impressum'),jdecode(''),'/18001.html','true',[],''],
	['PAGE','53540',jdecode('Verkauf'),jdecode(''),'/53540.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Commander';
theSitetree.paletteFamily='CB3000';
theSitetree.keyvisualId='2385';
theSitetree.keyvisualName='leiterplatte.jpg';
theSitetree.fontsetId='393';
theSitetree.graphicsetId='441';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E0E0E0';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Commander',
				paletteFamily: 	'CB3000',
				keyvisualId: 	'2385',
				keyvisualName: 	'leiterplatte.jpg',
				fontsetId: 		'393',
				graphicsetId: 	'441',
				contentColor: 	'000000',
				contentBGColor: 'E0E0E0',
				a_color: 		'E0E0E0',
				b_color: 		'6E1A00',
				c_color: 		'B74C29',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14202',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53540',
internalId:  '',
customField: '20110622-224105'
};
webappMappings['1008']=webappMappings['1008-29740005']={
webappId:    '1008',
documentId:  '13701',
internalId:  '29740005',
customField: 'de:DE:'
};
webappMappings['1501']=webappMappings['1501-10090719']={
webappId:    '1501',
documentId:  '13701',
internalId:  '10090719',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20110704-170843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30340',
internalId:  '',
customField: '20110622-224835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20110704-180317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13761',
internalId:  '',
customField: '20110622-223610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32440',
internalId:  '',
customField: '20091116-210756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27214',
internalId:  '',
customField: '20110704-175810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33840',
internalId:  '',
customField: '20100819-112139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25614',
internalId:  '',
customField: '20090629-161426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13790',
internalId:  '',
customField: '20090130-102729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20090629-161602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14202',
internalId:  '',
customField: '20050730-001600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13906',
internalId:  '',
customField: '20101013-195229'
};
webappMappings['1007']=webappMappings['1007-12651b0a442']={
webappId:    '1007',
documentId:  '53540',
internalId:  '12651b0a442',
customField: 'g.14p8qejm7.fvaapkha6f.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20090629-161707'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INE8GF';
var companyName   = '+Burenziegen+Burenzucht+Winter+Boer+Goats+Ch%C3%A9re+Boer';
var htmlTitle	  = '+Burenziegen++Burenziege+Burenzucht+-+Winter';
var metaKeywords  = 'Burenziegen+Burenziege+Burenziegenzucht+Burenziegenz%C3%BCchter+Burenbock+Burenziegenbock';
var metaContents  = 'Burenziegen+Burenziege+Burenziegen+Burenbock+Boer+Geiten+Ch%C3%A9vre+Boer+Burenziegenz%C3%BCchter+Burenziegenbock+Burenzucht';
					                                                                    
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 */					                                                            

