/* [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','4579',jdecode('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','14004',jdecode('Firmendaten'),jdecode(''),'/14004/home.html','true',[ 
		['PAGE','24704',jdecode('Firmenchronik'),jdecode(''),'/14004/24704.html','true',[],'']
	],''],
	['PAGE','28401',jdecode('Neuheiten'),jdecode(''),'/28401.html','true',[],''],
	['PAGE','23267',jdecode('Fertigungsabteilungen'),jdecode(''),'/23267/home.html','true',[ 
		['PAGE','21475',jdecode('Zerspanung'),jdecode(''),'/23267/21475.html','true',[],''],
		['PAGE','21502',jdecode('Stahlbau'),jdecode(''),'/23267/21502.html','true',[],''],
		['PAGE','26324',jdecode('Schwei%C3%9Fen'),jdecode(''),'/23267/26324.html','true',[],''],
		['PAGE','21529',jdecode('Montage'),jdecode(''),'/23267/21529.html','true',[],''],
		['PAGE','22558',jdecode('QS%2C+CAD%2C+CAM'),jdecode(''),'/23267/22558.html','true',[],'']
	],''],
	['PAGE','21436',jdecode('Bildergalerie'),jdecode(''),'/21436/home.html','true',[ 
		['PAGE','22152',jdecode('Firmenfotos'),jdecode(''),'/21436/22152.html','true',[],''],
		['PAGE','23201',jdecode('Produktfotos'),jdecode(''),'/21436/23201.html','true',[],''],
		['PAGE','23228',jdecode('Maschinenfotos'),jdecode(''),'/21436/23228.html','true',[],'']
	],''],
	['PAGE','22957',jdecode('Referenzen'),jdecode(''),'/22957.html','true',[],''],
	['PAGE','21801',jdecode('Kontakt'),jdecode(''),'/21801/home.html','true',[ 
		['PAGE','21839',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/21801/21839.html','false',[],'']
	],''],
	['PAGE','25601',jdecode('Impressum'),jdecode(''),'/25601.html','true',[],''],
	['PAGE','30644',jdecode('Downloadbereich'),jdecode(''),'/30644.html','true',[],''],
	['PAGE','30682',jdecode('Routenplanung'),jdecode(''),'/30682/home.html','true',[ 
		['PAGE','30688',jdecode('Lageplan'),jdecode(''),'/30682/30688.html','true',[],'']
	],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0inv9cfd0fa73122931b52e']={
webappId:    '1001',
documentId:  '21839',
internalId:  'atoix0inv9cfd0fa73122931b52e',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-atoix0inv9cfd0fa73122931b52e']={
webappId:    '1001',
documentId:  '21801',
internalId:  'atoix0inv9cfd0fa73122931b52e',
customField: ''
};
webappMappings['1501']=webappMappings['1501-685519']={
webappId:    '1501',
documentId:  '4579',
internalId:  '685519',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20120122-191813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20080422-221546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23267',
internalId:  '',
customField: '20110517-221054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21475',
internalId:  '',
customField: '20110929-091805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21436',
internalId:  '',
customField: '20110517-221118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23228',
internalId:  '',
customField: '20061224-124514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14004',
internalId:  '',
customField: '20110517-220840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24704',
internalId:  '',
customField: '20110517-221956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21502',
internalId:  '',
customField: '20040313-175546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26324',
internalId:  '',
customField: '20060506-160045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21529',
internalId:  '',
customField: '20031127-204908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22558',
internalId:  '',
customField: '20061022-090634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22152',
internalId:  '',
customField: '20111006-101805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20040820-222300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22957',
internalId:  '',
customField: '20110517-221200'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '30688',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20031028-203019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21839',
internalId:  '',
customField: '20031020-215350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20110517-221242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30644',
internalId:  '',
customField: '20111006-122752'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '30682',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30682',
internalId:  '',
customField: '20080502-190248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30688',
internalId:  '',
customField: '20080502-193117'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INV9CF';
var companyName   = '';
var htmlTitle	  = 'Maschinenbau%2C+Apparatebau';
var metaKeywords  = 'CNC-Fr%C3%A4sen%2C+CNC-Drehen%2C+3D-Freiformfl%C3%A4chenfr%C3%A4sen%2C+Schwei%C3%9Fkonstruktionen%2C+Sondermaschinenbau%2C+Stahlbau%2C+Montage+von+Maschinen+und+Baugruppen%2C+Konstruktion%2C+Oberfl%C3%A4chenbehandlung.';
var metaContents  = 'CNC-Fr%C3%A4steile%2C+CNC-Drehteile%2C+3D-Freiformfl%C3%A4chenfr%C3%A4sen%2C+Schwei%C3%9Fkonstruktionen%2C+Sondermaschinenbau%2C+Stahlbau%2C+Montage+von+Maschinen+und+Baugruppen%2C+Konstruktion%2C+Oberfl%C3%A4chenbehandlung.';
					                                                                    
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 */					                                                            

