/* [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('Organisation'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40701',jdecode('Kompetenz'),jdecode(''),'/40701.html','true',[],''],
	['PAGE','40557',jdecode('Qualifikation'),jdecode(''),'/40557.html','true',[],''],
	['PAGE','40605',jdecode('Praxis'),jdecode(''),'/40605.html','true',[],''],
	['PAGE','41804',jdecode('Tradition'),jdecode(''),'/41804.html','true',[],''],
	['PAGE','41311',jdecode('Annex'),jdecode(''),'/41311.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='TOI_Segel_1';
theSitetree.paletteFamily='8CD047';
theSitetree.keyvisualId='10721';
theSitetree.keyvisualName='kv_10721.jpg';
theSitetree.fontsetId='31819';
theSitetree.graphicsetId='13591';
theSitetree.contentColor='8E8C8C';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Segel_1',
				paletteFamily: 	'8CD047',
				keyvisualId: 	'10721',
				keyvisualName: 	'kv_10721.jpg',
				fontsetId: 		'31819',
				graphicsetId: 	'13591',
				contentColor: 	'8E8C8C',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
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: '20120108-184257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40557',
internalId:  '',
customField: '20080420-145426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40701',
internalId:  '',
customField: '20080420-150216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40605',
internalId:  '',
customField: '20090221-104205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41311',
internalId:  '',
customField: '20120111-174513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41804',
internalId:  '',
customField: '20120112-195358'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IR9HTY';
var companyName   = 'International+Electrical+Engineering+Expert+Services+++++++++++++++++*%29';
var htmlTitle	  = 'DRAMO+Elektrotechnik';
var metaKeywords  = 'Sachverst%C3%A4ndiger%2C+Sachverst%C3%A4ndige%2C+%C3%B6ffentlich+bestellt+und+vereidigt%2C+%C3%B6buv%2C+Gutachter%2C+Gutachten%2C+Experte%2C+Experten%2C+Expertisen%2C+Studien%2C+Beratung%2C+Consulting%2C+Ingenieur%2C+Elektrotechnik%2C+E-Technik%2C+Elektro%2C+Elektrik%2C+Elektrisch%2C+Elektrische%2C+Elektrizit%C3%A4t%2C+Hardware%2C+Software%2C+Computer%2C+Datenverarbeitung%2C+EDV%2C+Elektronik%2C+Automatisierung%2C+MSR%2C+Messen+Steuern+Regeln%2C+Systeme%2C+Systemtechnik%2C+Verkehrssysteme%2C+Simulation%2C+Maschinen%2C+Elektromaschinen%2C+Elektroantriebe%2C+Elektrische+Bahnen%2C+Industrieanlagen%2C+Energie%2C+Windenergie%2C+Solarenergie%2C+Solaranlagen%2C+Biokraftanlagen%2C+Wasserkraftanlagen%2C+Kraftwerke%2C+Wasserkraftwerke%2C+Pumpspeicherwerke%2C+BHKW%2C+Blockheizkraftwerke%2C+Kohlekraftwerke%2C+Atomkraftwerke%2C+Atomenergie%2C+Energietechnik%2C+Hochspannungstechnik%2C+Schaltanlagen%2C+Lastverteiler%2C+Netze%2C+Verbundbetrieb%2C+Stromversorgung%2C+Strom%2C+Energieversorgung%2C+Energiewirtschaft%2C+Regelenergie%2C+DRAMO%2C+Dramo%2C+dramo%2C+Modlinger%2C+Dr.+Modlinger%2C+Andreas+Modlinger%2C+Modlinger+Andreas%2C+Dr.+Andreas+Modlinger%2C+Dr.+Modlinger+Andreas%2C+Josef+Modlinger%2C+Modlinger+Josef%2C+Mittlere+Isar%2C+Richard+Modlinger%2C+Dr.+Richard+Modlinger%2C+Modlinger+Richard%2C+Dr.+Modlinger+Richard%2C+United+Nations%2C+UN%2C+UNO%2C+ECAFE%2C+Expert+on+Energy+Surveys%2C+Bayernwerk%2C+Stadtwerke+M%C3%BCnchen%2C+Bangkok%2C+Kabul';
var metaContents  = 'Dr.-Ing.+Andreas+Modlinger%2C+International+Electrical+Engineering+Expert+Services%2C+Sachverst%C3%A4ndigen-B%C3%BCro+f%C3%BCr+Elektrotechnik';
					                                                                    
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 */					                                                            

