/* [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','41645',jdecode('M%2BM'),jdecode(''),'/41645.html','true',[],''],
	['PAGE','41498',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41498.html','true',[],''],
	['PAGE','41525',jdecode('Unsere+Dienste+'),jdecode(''),'/41525.html','true',[],''],
	['PAGE','41534',jdecode('Unsere+Produkte'),jdecode(''),'/41534.html','true',[],''],
	['PAGE','272001',jdecode('Downloads'),jdecode(''),'/272001.html','true',[],''],
	['PAGE','42742',jdecode('Unsere+News'),jdecode(''),'/42742.html','true',[],''],
	['PAGE','41731',jdecode('Unsere+Referenzen'),jdecode(''),'/41731.html','true',[],''],
	['PAGE','100101',jdecode('Unsere+Partner'),jdecode(''),'/100101.html','true',[],''],
	['PAGE','42751',jdecode('Kontakten+Sie+uns'),jdecode(''),'/42751.html','true',[],''],
	['PAGE','41561',jdecode('Impressum+%2B+AGB'),jdecode(''),'/41561.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Spiegelwand';
theSitetree.paletteFamily='C1C5BC';
theSitetree.keyvisualId='10906';
theSitetree.keyvisualName='kv_10906.jpg';
theSitetree.fontsetId='31886';
theSitetree.graphicsetId='13692';
theSitetree.contentColor='444641';
theSitetree.contentBGColor='C1C5BC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Spiegelwand',
				paletteFamily: 	'C1C5BC',
				keyvisualId: 	'10906',
				keyvisualName: 	'kv_10906.jpg',
				fontsetId: 		'31886',
				graphicsetId: 	'13692',
				contentColor: 	'444641',
				contentBGColor: 'C1C5BC',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41534',
internalId:  '',
customField: '20120119-171547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41525',
internalId:  '',
customField: '20120120-120349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41645',
internalId:  '',
customField: '20110608-151839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41498',
internalId:  '',
customField: '20110619-111038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41561',
internalId:  '',
customField: '20120120-171449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42742',
internalId:  '',
customField: '20111110-110810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42751',
internalId:  '',
customField: '20100222-164840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41731',
internalId:  '',
customField: '20111108-160710'
};
webappMappings['1008']=webappMappings['1008-27936400']={
webappId:    '1008',
documentId:  '42751',
internalId:  '27936400',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100101',
internalId:  '',
customField: '20111009-112346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272001',
internalId:  '',
customField: '20120120-170416'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7UV26';
var companyName   = 'DIE+EXPERTEN+F%C3%9CR+ELEKTROMAGNETISCHE+VERTR%C3%84GLICHKEIT+%28EMV-EMVU%29';
var htmlTitle	  = 'M%2BM+-+Der+Spezialist+bei+EDV-St%C3%B6rungen';
var metaKeywords  = 'MM%2C+EMV%2C+St%C3%B6rung%2C+EDV%2C+Computer%2C+Mensch%2C+elektromagnetisch%2C+elektrisch%2C+Abstrahlung%2C+Sendeanlage%2C+Starkstrom%2C+Kabeltrasse%2C+Bahnstrom%2C+Bahnstromtrasse%2C+V%2Fm%2C+UPS%2C+USV%2C+Transformator%2C+Trenntrafo%2C+Erdleiter%2C+PE%2C+N-Leiter%2C+Sachverst%C3%A4ndiger%2C+Entst%C3%B6r%2C+Netzwerk%2C+Network%2C+ESD%2C+Strahlenschutz%2C+Fogging%2C+Filter%2C+Netzfilter%2C+Einphasen%2C+Ferrit%2C+Elastomer%2C+Messdienst%2C+Erdungssystem%2C+Potenzialausgleich%2C+Feld%2C+Handy%2C+gepulst%2C+UMTS%2C+HF%2C+Hochfrequenz%2C+Niederfrequenz%2C+GHz%2C+SPS%2C+Drossel%2C+EN%2C+DIN+VDE';
var metaContents  = 'Elektrosmog%2C+Transienten%2C+USV%2C+UPS%2C+Filter%2C+Erder%2C+Stromausfall%2C+Abstrahlung%2C+Bahnstrom%2C+Hochstrom%2C+Tesla%2C+V%2Fm%2C+A%2Fm%2C+ESD%2C+Strom%2C+Messen%2C+Wartung%2C+Service%2C+galvanische+Trennung%2C+Freischaltung%2C+Ferrit%2C+Schirmung%2C+Patchcord%2C+Sachverst%C3%A4ndiger%2C+Television%2C+EMV%2C+ESD%2C+Stick%2C+Speicherstick%2C+USB-Stick%2C+PC%2C+Computer%2C+Supertalent%2C+AdPoS%2C+%C3%9Cberspannung%2C+Gasableiter%2C+Akku%2C+Wartung%2C+';
					                                                                    
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 */					                                                            

