/* [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','41983',jdecode('Home'),jdecode(''),'/41983.html','true',[],''],
	['PAGE','41994',jdecode('Startseite'),jdecode(''),'/41994.html','true',[],''],
	['PAGE','42003',jdecode('Produkte'),jdecode(''),'/42003.html','true',[],''],
	['PAGE','42012',jdecode('Service'),jdecode(''),'/42012.html','true',[],''],
	['PAGE','42021',jdecode('Wichtiges+aus+der+Presse'),jdecode(''),'/42021.html','true',[],''],
	['PAGE','42030',jdecode('Links'),jdecode(''),'/42030.html','true',[],''],
	['PAGE','42039',jdecode('Kontakt'),jdecode(''),'/42039.html','true',[],''],
	['PAGE','42048',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/42048/home.html','true',[ 
		['PAGE','42057',jdecode('So+finden+Sie+uns'),jdecode(''),'/42048/42057.html','true',[],'']
	],''],
	['PAGE','42397',jdecode('Anfahrt'),jdecode(''),'/42397.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='943434';
theSitetree.keyvisualId='7172';
theSitetree.keyvisualName='kv_7172.jpg';
theSitetree.fontsetId='16410';
theSitetree.graphicsetId='12137';
theSitetree.contentColor='5D1818';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Capri',
				paletteFamily: 	'943434',
				keyvisualId: 	'7172',
				keyvisualName: 	'kv_7172.jpg',
				fontsetId: 		'16410',
				graphicsetId: 	'12137',
				contentColor: 	'5D1818',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41983',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41983',
internalId:  '',
customField: '20110902-144735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41994',
internalId:  '',
customField: '20091208-171017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42003',
internalId:  '',
customField: '20101025-211333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42012',
internalId:  '',
customField: '20080319-203057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42030',
internalId:  '',
customField: '20110728-180526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42039',
internalId:  '',
customField: '20110902-144212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42048',
internalId:  '',
customField: '20070622-144303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42057',
internalId:  '',
customField: '20070622-144303'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '42397',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-35880743']={
webappId:    '1501',
documentId:  '41983',
internalId:  '35880743',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42021',
internalId:  '',
customField: '20110902-143832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42397',
internalId:  '',
customField: '20070630-205419'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I73WL1';
var companyName   = 'Brandschutz+ist+unsere+Sache';
var htmlTitle	  = 'Feuerl%C3%B6scher+und+Brandschutz';
var metaKeywords  = 'Brandschutzservice-Le%C3%9Fke%2C+Alles+f%C3%BCr+den+vorbeugenten+Brandschutz%2C+Pr%C3%BCfung+von+Feuerl%C3%B6schern+aller+Fabrikate%2CPr%C3%BCfung+von+Wandhydranten%2CFlucht+-+und+Rettungspl%C3%A4ne%2C+Brandschutz+-+und+Fluchtwegbeschilderung%2C+Erste+Hilfe+Material%2C+RWA-+Anlagen+pr%C3%BCfen%2C+Rauch-Gas-+und+Wassermelder%2C+Hochwasserpumpen%2CAutomatisierter+%C3%84u%C3%9Ferlicher+Defibrilator';
var metaContents  = 'Willkommen+bei+Ihrem+Spezialisten+fuer+Feuerl%C3%B6scher+und+Brandschutz+.Brandschutzservice+-Le%C3%9Fke++Feuerl%C3%B6scherservice+in+Ostsachsen.';
					                                                                    
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 */					                                                            

