/* [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','13676',jdecode('Home'),jdecode(''),'/13676.html','true',[],''],
	['PAGE','13722',jdecode('Firmengeschichte'),jdecode(''),'/13722.html','true',[],''],
	['PAGE','13682',jdecode('Produkte'),jdecode(''),'/13682.html','true',[],''],
	['PAGE','13687',jdecode('Service'),jdecode(''),'/13687.html','true',[],''],
	['PAGE','13697',jdecode('News'),jdecode(''),'/13697.html','true',[],''],
	['PAGE','39223',jdecode('Anlagenbau'),jdecode(''),'/39223.html','true',[],''],
	['PAGE','40523',jdecode('Fahrwagen'),jdecode(''),'/40523.html','true',[],''],
	['PAGE','40544',jdecode('Beh%C3%A4lter'),jdecode(''),'/40544.html','true',[],''],
	['PAGE','40565',jdecode('CNC-Fertigung'),jdecode(''),'/40565.html','true',[],''],
	['PAGE','14923',jdecode('Anfahrt'),jdecode(''),'/14923.html','true',[],''],
	['PAGE','13707',jdecode('AGB%C2%B4s'),jdecode(''),'/13707.html','true',[],''],
	['PAGE','13702',jdecode('Kontakt'),jdecode(''),'/13702.html','true',[],''],
	['PAGE','13727',jdecode('Impressum'),jdecode(''),'/13727.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='385CA9';
theSitetree.keyvisualId='7245';
theSitetree.keyvisualName='kv_7245.jpg';
theSitetree.fontsetId='16409';
theSitetree.graphicsetId='12134';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Capri',
				paletteFamily: 	'385CA9',
				keyvisualId: 	'7245',
				keyvisualName: 	'kv_7245.jpg',
				fontsetId: 		'16409',
				graphicsetId: 	'12134',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14923',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-5947852']={
webappId:    '1501',
documentId:  '13676',
internalId:  '5947852',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13676',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13676',
internalId:  '',
customField: '20100106-114734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13697',
internalId:  '',
customField: '20090910-134709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13682',
internalId:  '',
customField: '20071012-145636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20091204-121518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13687',
internalId:  '',
customField: '20091204-115919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40523',
internalId:  '',
customField: '20090721-153408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40544',
internalId:  '',
customField: '20071227-142159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40565',
internalId:  '',
customField: '20080523-110010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14923',
internalId:  '',
customField: '20070830-161556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13707',
internalId:  '',
customField: '20041214-091856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13702',
internalId:  '',
customField: '20071106-150515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13727',
internalId:  '',
customField: '20071106-150637'
};
webappMappings['1007']=webappMappings['1007-115943a234a']={
webappId:    '1007',
documentId:  '39223',
internalId:  '115943a234a',
customField: 'g.12ma3fqr7.8ieeaka0b5.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39223',
internalId:  '',
customField: '20071012-145016'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INECQY';
var companyName   = 'Fey+und+K%C3%B6gler+GmbH';
var htmlTitle	  = 'Fey+und+K%C3%B6gler+GmbH';
var metaKeywords  = 'Galvanik%2CGalvanikanlagen%2CGalvanozubeh%C3%B6r%2CSolingen%2C+Trommelaggregate%2CKunststoffbeh%C3%A4lter%2CKunststoffzahnr%C3%A4der%2CFahrwagen%2CFey%2CK%C3%B6gler';
var metaContents  = 'Fey+und+K%C3%B6gler+GmbH++Galvanotechnik';
					                                                                    
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 */					                                                            

