/* [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('Startseite'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','28883',jdecode('*+Onlineshop'),jdecode(''),'/28883.html','true',[],''],
	['PAGE','41294',jdecode('Registrierung+Firmen'),jdecode(''),'/41294.html','true',[],''],
	['PAGE','48101',jdecode('Registrierung+Privat'),jdecode(''),'/48101.html','true',[],''],
	['PAGE','36292',jdecode('*+Onlinekatalog'),jdecode(''),'/36292.html','true',[],''],
	['PAGE','41432',jdecode('Kataloganforderung'),jdecode(''),'/41432.html','true',[],''],
	['PAGE','41343',jdecode('*+Preisliste'),jdecode(''),'/41343.html','true',[],''],
	['PAGE','29018',jdecode('Impressum'),jdecode(''),'/29018.html','true',[],''],
	['PAGE','35892',jdecode('ATEX+NEU'),jdecode(''),'/35892/home.html','false',[ 
		['PAGE','38637',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/35892/38637.html','false',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='6683B6';
theSitetree.keyvisualId='2443';
theSitetree.keyvisualName='beratung.jpg';
theSitetree.fontsetId='405';
theSitetree.graphicsetId='461';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'6683B6',
				keyvisualId: 	'2443',
				keyvisualName: 	'beratung.jpg',
				fontsetId: 		'405',
				graphicsetId: 	'461',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'6683B6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-878305']={
webappId:    '1501',
documentId:  '4579',
internalId:  '878305',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0invdb310839d64302']={
webappId:    '1001',
documentId:  '38637',
internalId:  'atoix0invdb310839d64302',
customField: 'followUp'
};
webappMappings['1008']=webappMappings['1008-29246579']={
webappId:    '1008',
documentId:  '41294',
internalId:  '29246579',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20090828-131853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36292',
internalId:  '',
customField: '20110210-172348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28883',
internalId:  '',
customField: '20100413-122343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35892',
internalId:  '',
customField: '20060922-090607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41343',
internalId:  '',
customField: '20090812-092507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41294',
internalId:  '',
customField: '20110222-151110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38637',
internalId:  '',
customField: '20060313-135549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29018',
internalId:  '',
customField: '20090108-100421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41432',
internalId:  '',
customField: '20100208-111255'
};
webappMappings['1008']=webappMappings['1008-47955124']={
webappId:    '1008',
documentId:  '41432',
internalId:  '47955124',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20110222-151155'
};
webappMappings['1008']=webappMappings['1008-74334590']={
webappId:    '1008',
documentId:  '48101',
internalId:  '74334590',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INVDB3';
var companyName   = '-+S+T+R+E+U+B+E+L+-+A+U+T+O+M+A+T+I+O+N+-+';
var htmlTitle	  = 'Pneumatik-Welt.de';
var metaKeywords  = 'Streubel%2CAutomation%2CPneumatik%2CZylinder%2CVentile%2CSchlauch%2Cpneumatikwelt%2CPneumatikzylinder%2CPneumatikventile%2CDruckschalter%2CVerschraubungen%2CWartungseinheiten%2CDruckluft%2C';
var metaContents  = 'Der+Vollsortimenter+der+Automation+-+mit+Online-Shop+f%C3%BCr+die+Pneumatik+Zylinder+Ventile+Wartungseinheiten+';
					                                                                    
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 */					                                                            

