/* [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','41361',jdecode('START'),jdecode(''),'/41361.html','true',[],''],
	['PAGE','40290',jdecode('Aktuelle+Workshops'),jdecode(''),'/40290/home.html','true',[ 
		['PAGE','41713',jdecode('DIN+EN+ISO+13849'),jdecode(''),'/40290/41713.html','true',[],''],
		['PAGE','41749',jdecode('SISTEMA+Training'),jdecode(''),'/40290/41749.html','true',[],''],
		['PAGE','41722',jdecode('STO+SLS+%26+Co'),jdecode(''),'/40290/41722.html','true',[],''],
		['PAGE','41731',jdecode('Servo+und+Umrichter'),jdecode(''),'/40290/41731.html','true',[],''],
		['PAGE','41740',jdecode('Integration+STO'),jdecode(''),'/40290/41740.html','true',[],'']
	],''],
	['PAGE','40308',jdecode('Inhouse-Workshops+alt'),jdecode(''),'/40308.html','false',[],''],
	['PAGE','41553',jdecode('Inhouse+-+Workshops'),jdecode(''),'/41553.html','true',[],''],
	['PAGE','41250',jdecode('Workshop+in+English'),jdecode(''),'/41250.html','true',[],''],
	['PAGE','40491',jdecode('Leistungen+und+Info'),jdecode(''),'/40491.html','true',[],''],
	['PAGE','40370',jdecode('Links+und+Downloads'),jdecode(''),'/40370.html','true',[],''],
	['PAGE','41216',jdecode('Partner'),jdecode(''),'/41216.html','true',[],''],
	['PAGE','40379',jdecode('Impressum+%2F+Kontakt'),jdecode(''),'/40379.html','true',[],''],
	['PAGE','40661',jdecode('Anfahrt'),jdecode(''),'/40661.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='695A2C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10828';
theSitetree.graphicsetId='11285';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Basic',
				paletteFamily: 	'695A2C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10828',
				graphicsetId: 	'11285',
				contentColor: 	'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41361',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40290',
internalId:  '',
customField: '20120217-110054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40370',
internalId:  '',
customField: '20110823-165624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40308',
internalId:  '',
customField: '20110517-153252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40379',
internalId:  '',
customField: '20101024-121834'
};
webappMappings['1008']=webappMappings['1008-35473263']={
webappId:    '1008',
documentId:  '40379',
internalId:  '35473263',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41216',
internalId:  '',
customField: '20100330-105539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40491',
internalId:  '',
customField: '20120113-110057'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40661',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40661',
internalId:  '',
customField: '20070620-113959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41250',
internalId:  '',
customField: '20110821-142448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41361',
internalId:  '',
customField: '20120220-145427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41553',
internalId:  '',
customField: '20120118-172442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41713',
internalId:  '',
customField: '20120217-105351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41722',
internalId:  '',
customField: '20120217-105427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41749',
internalId:  '',
customField: '20120220-152651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41731',
internalId:  '',
customField: '20120217-105327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41740',
internalId:  '',
customField: '20120206-192248'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I73MPV';
var companyName   = 'Sicherheitstechnik+und+Automation';
var htmlTitle	  = 'Safetycom.de%2C+Sicherheitstechnik+und+Automation';
var metaKeywords  = 'SISTEMA%2C+SYSTEMA%2C+Sistema%2C+Systema%2C+Schulung+13849%2C+Schulung+SISTEMA%2C+Workshop+13849%2C+Workshop+SISTEMA%2C+Workshop+Servo%2C+Workshop+Frequenzumrichter%2C+Workshop+STO%2C+Schulung+STO%2C+Schulung+Servo%2C+Schulung+Frequenzumrichter%2C+Schulung+61800-5-1%2C+Schulung+61800-5-2%2C+Dipl.+Ing.+Gerhard+Pl%C3%BCddemann%2C+Ingenieurb%C3%BCro%2C+Funktionale+Sicherheitstechnik%2C+Functional+Safety%2C++Workshops%2C+Seminare%2C+Schulung%2C+Beratung%2C+Automation%2C+Maschinensteuerung%2C+Zertifizierung%2C+ISO+13849%2C+IEC+62061%2C+IEC+61508%2C+IEC+61800-5-2%2C+Quantisierung+der+Zuverl%C3%A4ssigkeit%2C+PFH%2C+PL%2C+Kat.%2C+SIL%2C+MTTF%2C+DC%2C+CCF%2C+SISTEMA%2C++Funktionale+Sicherheit%2C+Sicherheitsbetriebsarten%2C+Safe+Stop%2C+STO%2C+Safe+Torque+Off%2C+Sichere+Maschinenfunktionen%2C+SLS%2C+Sicher+reduzierte+Geschwindigkeit%2C+Safely+Limited+Speed%2C+SOS%2C+Safe+Operational+Stop%2C+www.safetycom.de%2C+www.safetycom.eu%2C+www.safetycom.biz+';
var metaContents  = 'Funktionale+Sicherheit+f%C3%BCr+Maschinenbausteuerungen%2C+PFH%2C+PL%2C+Kat.%2C+SIL%2C+Functional+Safety%2C+Sicherheitstechnik+und+Automation%2C+Workshops%2C+Beratung%2C+Projektsupport.+Anwendung+von+Sicherheitsnormen+%28ISO+13849%2C++IEC+62061%2C+IEC+61800-5-2%29.+SISTEMA+Schulung%2C+Sicherheitstechnik+mit+Servoreglern+und+Frequenzumrichtern+';
					                                                                    
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 */					                                                            

