/* [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','13721',jdecode('Home'),jdecode(''),'/13721.html','true',[],''],
	['PAGE','14355',jdecode('CNC+-+Drehmaschinen'),jdecode(''),'/14355.html','true',[],''],
	['PAGE','17774',jdecode('Vertikal-Drehmaschine'),jdecode(''),'/17774.html','true',[],''],
	['PAGE','14328',jdecode('Bearbeitungszentren'),jdecode(''),'/14328.html','true',[],''],
	['PAGE','17605',jdecode('Flachschleifmaschinen'),jdecode(''),'/17605.html','true',[],''],
	['PAGE','14409',jdecode('Gebrauchtmaschinen'),jdecode(''),'/14409.html','true',[],''],
	['PAGE','14660',jdecode('Zubeh%C3%B6r'),jdecode(''),'/14660.html','true',[],''],
	['PAGE','14436',jdecode('Service'),jdecode(''),'/14436.html','true',[],''],
	['PAGE','16801',jdecode('Maschinenbewertung'),jdecode(''),'/16801.html','true',[],''],
	['PAGE','17167',jdecode('Sicherstellung'),jdecode(''),'/17167.html','true',[],''],
	['PAGE','16701',jdecode('Verwertung'),jdecode(''),'/16701.html','true',[],''],
	['PAGE','14517',jdecode('Kontakt'),jdecode(''),'/14517.html','true',[],''],
	['PAGE','14544',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/14544/home.html','true',[ 
		['PAGE','14571',jdecode('So+finden+Sie+uns'),jdecode(''),'/14544/14571.html','true',[],'']
	],''],
	['PAGE','15002',jdecode('G%C3%A4stebuch'),jdecode(''),'/15002/home.html','true',[ 
		['PAGE','15003',jdecode('Eintr%C3%A4ge'),jdecode(''),'/15002/15003.html','true',[],'']
	],''],
	['PAGE','17489',jdecode('Impressum'),jdecode(''),'/17489.html','true',[],''],
	['PAGE','17582',jdecode('Vermischtes'),jdecode(''),'/17582.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='E9EEF4';
theSitetree.keyvisualId='2672';
theSitetree.keyvisualName='industrie.jpg';
theSitetree.fontsetId='220';
theSitetree.graphicsetId='262';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E9EEF4';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportive',
				paletteFamily: 	'E9EEF4',
				keyvisualId: 	'2672',
				keyvisualName: 	'industrie.jpg',
				fontsetId: 		'220',
				graphicsetId: 	'262',
				contentColor: 	'000000',
				contentBGColor: 'E9EEF4',
				a_color: 		'E9EEF4',
				b_color: 		'C1C4D3',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13721',
internalId:  '',
customField: '20090830-182746'
};
webappMappings['1501']=webappMappings['1501-528991']={
webappId:    '1501',
documentId:  '13721',
internalId:  '528991',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13721',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-15002ATOIX0IN3PV2']={
webappId:    '1002',
documentId:  '15002',
internalId:  '15002ATOIX0IN3PV2',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-15002ATOIX0IN3PV2']={
webappId:    '1002',
documentId:  '15003',
internalId:  '15002ATOIX0IN3PV2',
customField: 'action=list'
};
webappMappings['1011']=webappMappings['1011-ddp-vermischtes']={
webappId:    '1011',
documentId:  '17582',
internalId:  'ddp-vermischtes',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17774',
internalId:  '',
customField: '20091015-180528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14328',
internalId:  '',
customField: '20091015-181001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17605',
internalId:  '',
customField: '20091015-180729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14355',
internalId:  '',
customField: '20090108-193130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14409',
internalId:  '',
customField: '20091024-171350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14436',
internalId:  '',
customField: '20050712-003506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20050712-003721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17167',
internalId:  '',
customField: '20050712-005819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20050712-005331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14660',
internalId:  '',
customField: '20071012-234729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14517',
internalId:  '',
customField: '20070726-223750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14544',
internalId:  '',
customField: '20031220-190621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14571',
internalId:  '',
customField: '20031220-190621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15002',
internalId:  '',
customField: '20031220-203725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15003',
internalId:  '',
customField: '20031220-203725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17489',
internalId:  '',
customField: '20061103-234352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17582',
internalId:  '',
customField: '20060514-151844'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IN3PV2';
var companyName   = 'Alexander+Kraus+Werkzeugmaschinen';
var htmlTitle	  = 'Neue+und+gebrauchte+CNC++Werkzeugmaschinen';
var metaKeywords  = 'Werkzeugmaschinen%2CDrehmaschinen%2CBearbeitungszentren%2CHedelius%2CGebrauchtmaschinen%2CZiersch%2CCNC%2CMaschinen%2CDeckel%2CMaho%2CGildemeister%2COkuma%2CMazak%2CNakamura%2CAxa%2CMikron%2CHermle%2CIndex%2CTraub%2CEMco%2CHurco%2CChiron%2CStama%2CWeiler%2CSchaublin%2CEMCO%2CCNC%2CMaschinenzubeh%C3%B6r%2CFr%C3%A4smaschine+Schraubst%C3%B6cke%2C+Roehm%2C+Almatic%2C+Hilma%2C+Zubeh%C3%B6r%2C+NC-Spanner%2C+Maschinenschraubstock';
var metaContents  = 'Handel+mit+neuen+und+gebrauchten+Werkzeugmaschinen++CNC+-+gesteuert.Vertretung+f%C3%BCr+EMCO%2C+HEDELIUS%2C+INVENTOR%2C+ZIERSCH%2C+KEPPLER.Schulung+f%C3%BCr+MAZATROL+und+HEIDENHAIN+Steuerungen.';
					                                                                    
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 */					                                                            
