/* [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','40984',jdecode('Home%2C+Neuzug%C3%A4nge'),jdecode(''),'/40984.html','true',[],''],
	['PAGE','42322',jdecode('Lampen+m.+ATEX-Zert.'),jdecode(''),'/42322.html','true',[],''],
	['PAGE','40995',jdecode('Fahrzeugteile'),jdecode(''),'/40995.html','true',[],''],
	['PAGE','42277',jdecode('Steckverbinder+mil.'),jdecode(''),'/42277.html','true',[],''],
	['PAGE','42295',jdecode('Tek.%2C+Elektronik%2C+IC%C2%B4s'),jdecode(''),'/42295.html','true',[],''],
	['PAGE','42313',jdecode('Werkstatt%2C+Manuals'),jdecode(''),'/42313.html','true',[],''],
	['PAGE','42268',jdecode('Sonstiges'),jdecode(''),'/42268.html','true',[],''],
	['PAGE','47622',jdecode('Technikmuseum'),jdecode(''),'/47622/home.html','true',[ 
		['PAGE','47601',jdecode('Schnittmodell+Unimog+411'),jdecode(''),'/47622/47601.html','true',[],'']
	],''],
	['PAGE','41004',jdecode('Bestellung%2C+AGB'),jdecode(''),'/41004.html','true',[],''],
	['PAGE','69001',jdecode('Anfahrt'),jdecode(''),'/69001.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='666666';
theSitetree.keyvisualId='1812';
theSitetree.keyvisualName='unterhaltungselektronik.jpg';
theSitetree.fontsetId='283';
theSitetree.graphicsetId='349';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='666666';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Art',
				paletteFamily: 	'666666',
				keyvisualId: 	'1812',
				keyvisualName: 	'unterhaltungselektronik.jpg',
				fontsetId: 		'283',
				graphicsetId: 	'349',
				contentColor: 	'FFFFFF',
				contentBGColor: '666666',
				a_color: 		'666666',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40984',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40984',
internalId:  '',
customField: '20111223-160322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40995',
internalId:  '',
customField: '20111122-083754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41004',
internalId:  '',
customField: '20120218-172858'
};
webappMappings['1008']=webappMappings['1008-45798554']={
webappId:    '1008',
documentId:  '41004',
internalId:  '45798554',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1501']=webappMappings['1501-30476386']={
webappId:    '1501',
documentId:  '40984',
internalId:  '30476386',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42322',
internalId:  '',
customField: '20120222-170331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42268',
internalId:  '',
customField: '20120219-141502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42295',
internalId:  '',
customField: '20120218-173535'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '69001',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69001',
internalId:  '',
customField: '20111202-085429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42277',
internalId:  '',
customField: '20120219-133227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42313',
internalId:  '',
customField: '20120128-102925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47622',
internalId:  '',
customField: '20120222-171520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47601',
internalId:  '',
customField: '20120222-171646'
};
webappMappings['7091']=webappMappings['7091-62654']={
webappId:    '7091',
documentId:  '40984',
internalId:  '62654',
customField: 'align:left;language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I76V9H';
var companyName   = 'Handel+mit+elektronischen+Ger%C3%A4ten%2C+Elektronik-Reparatur';
var htmlTitle	  = 'Harald+Filkas+Elektronik';
var metaKeywords  = 'Shunt+300A+75mV%2C+Ex-Lampen%2C+KSE-Lights%2C+VG+96+917%2C+SEL+PSK-Indikator%2C+404S%2C+CEAG%2C+HLE7%2C+VDA+72594%2C+DIN+14690%2C+Roland%2C+ISO+4165';
var metaContents  = 'Willkommen+bei+H.+Filkas%2C+Einzelhandel+fuer+spezielle+Elektronikartikel+und+Elektronik-Reparatur.+Hier+gibt+es+Ex-gesch%C3%BCtzte+Leuchten+f%C3%BCr+Bergbau+und+Industrie%2C+Spezialleuchten%2C+milit%C3%A4rische+Steckverbinder%2C+hochwertige+Mess-+und+Pr%C3%BCfger%C3%A4te+und+spezielle+Fahrzeugteile.';
					                                                                    
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 */					                                                            

