/* [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','48414',jdecode('Startseite'),jdecode(''),'/48414.html','true',[],''],
	['PAGE','14443',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/14443/home.html','true',[ 
		['PAGE','13701',jdecode('Werner+Kimmel'),jdecode(''),'/14443/13701.html','true',[],''],
		['PAGE','54314',jdecode('Claudia+Kimmel'),jdecode(''),'/14443/54314.html','true',[],''],
		['PAGE','55914',jdecode('Unser+Hof'),jdecode(''),'/14443/55914.html','true',[],'']
	],''],
	['PAGE','48314',jdecode('Hufbeschlag'),jdecode(''),'/48314/home.html','true',[ 
		['PAGE','59614',jdecode('Hufbeschlag+Bilder'),jdecode(''),'/48314/59614.html','true',[],''],
		['PAGE','48635',jdecode('Video'),jdecode(''),'/48314/48635.html','true',[],''],
		['PAGE','19701',jdecode('Fahrzeug'),jdecode(''),'/48314/19701.html','true',[],'']
	],''],
	['PAGE','14464',jdecode('Referenzen'),jdecode(''),'/14464.html','true',[],''],
	['PAGE','48435',jdecode('Einzugsbereich'),jdecode(''),'/48435.html','true',[],''],
	['PAGE','22340',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/22340.html','false',[],''],
	['PAGE','22714',jdecode('Kontakt'),jdecode(''),'/22714/home.html','true',[ 
		['PAGE','19601',jdecode('AGB'),jdecode(''),'/22714/19601.html','true',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1256';
theSitetree.keyvisualName='teltastatur.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='232';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Profile',
				paletteFamily: 	'990000',
				keyvisualId: 	'1256',
				keyvisualName: 	'teltastatur.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'232',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '48414',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '22714',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1001']=webappMappings['1001-atoix0inef2x106bd562f5d']={
webappId:    '1001',
documentId:  '22340',
internalId:  'atoix0inef2x106bd562f5d',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48635',
internalId:  '',
customField: '20110208-184053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20110204-214240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55914',
internalId:  '',
customField: '20110204-215030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48435',
internalId:  '',
customField: '20110204-171904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14443',
internalId:  '',
customField: '20110204-162702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20080919-162734'
};
webappMappings['1007']=webappMappings['1007-12dfcf648d4']={
webappId:    '1007',
documentId:  '59614',
internalId:  '12dfcf648d4',
customField: 'g.15nuebglc.j69ok7uutn.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14464',
internalId:  '',
customField: '20110209-230404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20051001-121227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22340',
internalId:  '',
customField: '20051004-223253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22714',
internalId:  '',
customField: '20110205-044234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48414',
internalId:  '',
customField: '20110209-230209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48314',
internalId:  '',
customField: '20110206-234023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54314',
internalId:  '',
customField: '20110204-214949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59614',
internalId:  '',
customField: '20110206-225235'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INEF2X';
var companyName   = 'Gangpferdeschmied+++Werner+Kimmel';
var htmlTitle	  = 'Gangpferdeschmied+Werner+Kimmel';
var metaKeywords  = 'werner+Kimmel%2C+Gangpferde%2C+Beschlag%2C+Hufbeschlag%2C+FIZO%2C+Hufschmied%2C+FIPO%2C+IPO%2C+Islandpferde%2C+vierg%C3%A4nger%2C+f%C3%BCnfg%C3%A4nger%2C+t%C3%B6lt%2C+rennpass%2C+tunierbeschlag%2C+Highspeedaufnahme%2C+beschlagskontrolle%2C+IPZV%2C+Hufeisen%2C+Werkmann%2C+OSI%2C+DIM%2C+DJIM%2C+Uli+Reber%2C+Lipperthof%2C+T%C3%B6ltpreis%2C+Wildflecken%2C+Oberbach%2C+Rh%C3%B6n%2C++Sport+A%2C+Sport+B%2C+Sport+C%2C+Beschlagsreglement%2C+Passchampionat%2C+Ice-horse%2C+Island';
var metaContents  = '++Werner+Kimmel%2C+Hufbeschlagsschmied%2C+spezialisiert+auf+Gangpferde+%28Islandpferde%29+und+Tunierbeschl%C3%A4ge';
					                                                                    
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 */					                                                            

