/* [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/home.html','true',[ 
		['PAGE','42675',jdecode('Profil'),jdecode(''),'/39994/42675.html','true',[],''],
		['PAGE','41384',jdecode('Leistungen'),jdecode(''),'/39994/41384.html','true',[],''],
		['PAGE','42231',jdecode('Aktuell'),jdecode(''),'/39994/42231.html','true',[],''],
		['PAGE','42684',jdecode('Referenzen'),jdecode(''),'/39994/42684.html','true',[],''],
		['PAGE','42693',jdecode('Kooperationen'),jdecode(''),'/39994/42693.html','true',[],''],
		['PAGE','41771',jdecode('Kontakt'),jdecode(''),'/39994/41771.html','true',[],''],
		['PAGE','42702',jdecode('Impressum+%2F+Disclaimer'),jdecode(''),'/39994/42702.html','true',[],'']
	],''],
	['PAGE','41665',jdecode('Homepage%2C+English'),jdecode(''),'/41665/home.html','true',[ 
		['PAGE','42711',jdecode('Profile'),jdecode(''),'/41665/42711.html','true',[],''],
		['PAGE','41789',jdecode('Services'),jdecode(''),'/41665/41789.html','true',[],''],
		['PAGE','42240',jdecode('Latest'),jdecode(''),'/41665/42240.html','true',[],''],
		['PAGE','42720',jdecode('References'),jdecode(''),'/41665/42720.html','true',[],''],
		['PAGE','42729',jdecode('Co-operations'),jdecode(''),'/41665/42729.html','true',[],''],
		['PAGE','41798',jdecode('Contact'),jdecode(''),'/41665/41798.html','true',[],''],
		['PAGE','42738',jdecode('Site+notice+%2F+Disclaimer'),jdecode(''),'/41665/42738.html','true',[],'']
	],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Firma';
theSitetree.paletteFamily='333D5C';
theSitetree.keyvisualId='9920';
theSitetree.keyvisualName='kv_9920.jpg';
theSitetree.fontsetId='17859';
theSitetree.graphicsetId='12986';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='939DC0';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Firma',
				paletteFamily: 	'333D5C',
				keyvisualId: 	'9920',
				keyvisualName: 	'kv_9920.jpg',
				fontsetId: 		'17859',
				graphicsetId: 	'12986',
				contentColor: 	'FFFFFF',
				contentBGColor: '939DC0',
				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:     'true'
			  };
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: '20110331-102031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42675',
internalId:  '',
customField: '20100902-092814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41384',
internalId:  '',
customField: '20100902-093319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41665',
internalId:  '',
customField: '20110331-102230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41771',
internalId:  '',
customField: '20100615-104921'
};
webappMappings['1008']=webappMappings['1008-61126016']={
webappId:    '1008',
documentId:  '41771',
internalId:  '61126016',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42684',
internalId:  '',
customField: '20110331-103356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41789',
internalId:  '',
customField: '20100616-132937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41798',
internalId:  '',
customField: '20100615-142800'
};
webappMappings['1008']=webappMappings['1008-61126016']={
webappId:    '1008',
documentId:  '41798',
internalId:  '61126016',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42231',
internalId:  '',
customField: '20110331-101857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42240',
internalId:  '',
customField: '20110331-102655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42693',
internalId:  '',
customField: '20110208-164608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42702',
internalId:  '',
customField: '20101118-174248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42711',
internalId:  '',
customField: '20100625-084735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42720',
internalId:  '',
customField: '20110331-103626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42729',
internalId:  '',
customField: '20110208-164903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42738',
internalId:  '',
customField: '20101118-174053'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRO28D';
var companyName   = 'Kleinvogel+-+Technik+-+Organisation+-+Realisierung';
var htmlTitle	  = 'Kleinvogel-Technik-Organsation-Realisierung+%2F+Consulting+%26+Sernices+in+Technik';
var metaKeywords  = 'IEC%2C+60439%2C+61439%2C+Niederspannung%2C+low+voltage%2C+elektrisch%2C+electrical%2C+Anlage%2C+system%2C+Kleinvogel%2C+Consulting%2C+Beratung%2C+technisch%2C+technical%2C+service%2C+services%2C+technologie%2C+technology%2C+transfer%2C+MCC%2C+PCC%2C+Verteiler%2C+distribution%2C+bus+bar%2C+engineer%2C+engineering%2C+projekt%2C+project%2C+optimierung%2C+optimization';
var metaContents  = 'Willkommen+bei+Ihrem+technischen+Berater+und+Dienstleister+%2FWelcome+at+your+technical+consultant+and+services+providor';
					                                                                    
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 */					                                                            

