/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40897',jdecode('Bearbeitungszentren'),jdecode(''),'/40897/home.html','true',[ 
		['PAGE','41817',jdecode('Fanuc+Robodrill'),jdecode(''),'/40897/41817.html','true',[],''],
		['PAGE','41804',jdecode('OKK'),jdecode(''),'/40897/41804.html','true',[],''],
		['PAGE','41921',jdecode('Willemin'),jdecode(''),'/40897/41921.html','true',[],'']
	],''],
	['PAGE','40616',jdecode('Drehmaschinen'),jdecode(''),'/40616/home.html','true',[ 
		['PAGE','40888',jdecode('Gildemeister+'),jdecode(''),'/40616/40888.html','true',[],''],
		['PAGE','41281',jdecode('Index+GFG+250'),jdecode(''),'/40616/41281.html','true',[],''],
		['PAGE','40851',jdecode('Spinner'),jdecode(''),'/40616/40851.html','true',[],''],
		['PAGE','41881',jdecode('Tornos'),jdecode(''),'/40616/41881.html','true',[],''],
		['PAGE','41689',jdecode('Tornos+Deco+13+mm+Bauj.++2001'),jdecode(''),'/40616/41689.html','true',[],''],
		['PAGE','41857',jdecode('Tornos+Deco+20+%2B+20%2F26'),jdecode(''),'/40616/41857.html','true',[],''],
		['PAGE','41831',jdecode('Tornos+MultiDeco+20%2F8'),jdecode(''),'/40616/41831.html','true',[],''],
		['PAGE','41892',jdecode('Index+MS+32+B'),jdecode(''),'/40616/41892.html','true',[],''],
		['PAGE','41943',jdecode('Index+G+200+Compact'),jdecode(''),'/40616/41943.html','true',[],''],
		['PAGE','41952',jdecode('+++Traub+TNX+65%2F42'),jdecode(''),'/40616/41952.html','true',[],'']
	],''],
	['PAGE','41077',jdecode('Fr%C3%A4smaschinen'),jdecode(''),'/41077.html','true',[],''],
	['PAGE','41086',jdecode('Schleifmaschinen++'),jdecode(''),'/41086/home.html','true',[ 
		['PAGE','41698',jdecode('PeTeWe+Profilschleifmaschine'),jdecode(''),'/41086/41698.html','true',[],'']
	],''],
	['PAGE','41707',jdecode('neu'),jdecode(''),'/41707.html','true',[],''],
	['PAGE','41095',jdecode('Pressen+-+Stanzautomaten'),jdecode(''),'/41095.html','true',[],''],
	['PAGE','41326',jdecode('Erodiermaschinen++'),jdecode(''),'/41326/home.html','true',[ 
		['PAGE','41335',jdecode('Drahterosion'),jdecode(''),'/41326/41335.html','true',[],''],
		['PAGE','41344',jdecode('AGIE'),jdecode(''),'/41326/41344.html','true',[],''],
		['PAGE','41353',jdecode('Senkerosion'),jdecode(''),'/41326/41353.html','true',[],''],
		['PAGE','41362',jdecode('Agie'),jdecode(''),'/41326/41362.html','true',[],'']
	],''],
	['PAGE','41387',jdecode('Aktuelle+Maschinengesuche'),jdecode(''),'/41387.html','true',[],''],
	['PAGE','40607',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40607.html','true',[],''],
	['PAGE','40625',jdecode('News'),jdecode(''),'/40625/home.html','true',[ 
		['PAGE','40634',jdecode('Kontakt'),jdecode(''),'/40625/40634.html','true',[],'']
	],''],
	['PAGE','40643',jdecode('Impressum'),jdecode(''),'/40643.html','true',[],'']];
var siteelementCount=31;
theSitetree.topTemplateName='TOI_Freizeit_1';
theSitetree.paletteFamily='BEBDBD';
theSitetree.keyvisualId='10785';
theSitetree.keyvisualName='kv_10785.jpg';
theSitetree.fontsetId='31831';
theSitetree.graphicsetId='13624';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2A2A2A';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Freizeit_1',
				paletteFamily: 	'BEBDBD',
				keyvisualId: 	'10785',
				keyvisualName: 	'kv_10785.jpg',
				fontsetId: 		'31831',
				graphicsetId: 	'13624',
				contentColor: 	'FFFFFF',
				contentBGColor: '2A2A2A',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20100224-140956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40607',
internalId:  '',
customField: '20071015-190710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40634',
internalId:  '',
customField: '20091223-132338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40616',
internalId:  '',
customField: '20071011-154345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40625',
internalId:  '',
customField: '20071024-112352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40643',
internalId:  '',
customField: '20091223-132831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41707',
internalId:  '',
customField: '20100105-114642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40897',
internalId:  '',
customField: '20100222-130310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40851',
internalId:  '',
customField: '20071016-213609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41326',
internalId:  '',
customField: '20071023-194805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41831',
internalId:  '',
customField: '20100222-151815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41817',
internalId:  '',
customField: '20100222-150600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40888',
internalId:  '',
customField: '20071020-175631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41077',
internalId:  '',
customField: '20071020-175818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41086',
internalId:  '',
customField: '20100105-115152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41095',
internalId:  '',
customField: '20071020-175846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41804',
internalId:  '',
customField: '20100222-150435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41689',
internalId:  '',
customField: '20100222-161145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41281',
internalId:  '',
customField: '20071023-220703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41335',
internalId:  '',
customField: '20071023-195059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41344',
internalId:  '',
customField: '20071023-195059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41353',
internalId:  '',
customField: '20071023-195059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41362',
internalId:  '',
customField: '20071023-195059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41387',
internalId:  '',
customField: '20071029-123033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41892',
internalId:  '',
customField: '20100224-140903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41698',
internalId:  '',
customField: '20100105-120436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41857',
internalId:  '',
customField: '20100222-153356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41881',
internalId:  '',
customField: '20100222-171215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41921',
internalId:  '',
customField: '20100224-144430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41943',
internalId:  '',
customField: '20100224-175851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41952',
internalId:  '',
customField: '20100224-180320'
};
var canonHostname = 'cfawrk11.aul.t-online.de';
var accountId     = 'ATOIX0I7P4QG';
var companyName   = 'TVM+Technologievertrieb+Maschinenhandel';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
