/* [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','13902',jdecode('Home'),jdecode(''),'/13902/home.html','true',[ 
		['PAGE','17109',jdecode('Kontakt'),jdecode(''),'/13902/17109.html','true',[],''],
		['PAGE','14002',jdecode('Anfahrt'),jdecode(''),'/13902/14002.html','true',[],'']
	],''],
	['PAGE','15103',jdecode('Fernw%C3%A4rme'),jdecode(''),'/15103/home.html','true',[ 
		['PAGE','15283',jdecode('Bereitschaft'),jdecode(''),'/15103/15283.html','true',[],''],
		['PAGE','15546',jdecode('News'),jdecode(''),'/15103/15546.html','true',[],''],
		['PAGE','15824',jdecode('Service'),jdecode(''),'/15103/15824.html','true',[],'']
	],''],
	['PAGE','15112',jdecode('Beh%C3%A4lterservice'),jdecode(''),'/15112/home.html','true',[ 
		['PAGE','15292',jdecode('Service'),jdecode(''),'/15112/15292.html','true',[],''],
		['PAGE','17188',jdecode('Kontakt'),jdecode(''),'/15112/17188.html','true',[],'']
	],''],
	['PAGE','15121',jdecode('Albert-Schwarz-Bad+'),jdecode(''),'/15121/home.html','true',[ 
		['PAGE','15555',jdecode('News'),jdecode(''),'/15121/15555.html','true',[],''],
		['PAGE','17197',jdecode('Kontakt'),jdecode(''),'/15121/17197.html','true',[],''],
		['PAGE','15573',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/15121/15573.html','true',[],''],
		['PAGE','15582',jdecode('Anfahrt'),jdecode(''),'/15121/15582.html','true',[],''],
		['PAGE','23001',jdecode('Bildergalerie+Freibad'),jdecode(''),'/15121/23001.html','true',[],'']
	],''],
	['PAGE','15094',jdecode('Impressum'),jdecode(''),'/15094.html','true',[],''],
	['PAGE','15131',jdecode('G%C3%A4stebuch'),jdecode(''),'/15131/home.html','true',[ 
		['PAGE','15130',jdecode('Eintr%C3%A4ge'),jdecode(''),'/15131/15130.html','true',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Toronto';
theSitetree.paletteFamily='3358C6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16882';
theSitetree.graphicsetId='12318';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3358C6';
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Toronto',
				paletteFamily: 	'3358C6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16882',
				graphicsetId: 	'12318',
				contentColor: 	'FFFFFF',
				contentBGColor: '3358C6',
				a_color: 		'3358C6',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14002',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13902',
internalId:  '',
customField: '20080208-140815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14002',
internalId:  '',
customField: '20080211-144825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15094',
internalId:  '',
customField: '20080208-135732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15103',
internalId:  '',
customField: '20080208-134029'
};
webappMappings['1002']=webappMappings['1002-15131atoix0inzdu4']={
webappId:    '1002',
documentId:  '15131',
internalId:  '15131atoix0inzdu4',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-15131atoix0inzdu4']={
webappId:    '1002',
documentId:  '15130',
internalId:  '15131atoix0inzdu4',
customField: 'action=list'
};
webappMappings['1501']=webappMappings['1501-2105896']={
webappId:    '1501',
documentId:  '13902',
internalId:  '2105896',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13902',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15112',
internalId:  '',
customField: '20080208-135313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15121',
internalId:  '',
customField: '20080208-222059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15131',
internalId:  '',
customField: '20080207-144555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15130',
internalId:  '',
customField: '20080207-144555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20080208-215321'
};
webappMappings['1007']=webappMappings['1007-117facf6917']={
webappId:    '1007',
documentId:  '23001',
internalId:  '117facf6917',
customField: 'g.12vtd1qrv.pi6lijqsth.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15283',
internalId:  '',
customField: '20080208-220706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15292',
internalId:  '',
customField: '20080207-221433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15824',
internalId:  '',
customField: '20080208-220805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15546',
internalId:  '',
customField: '20080211-153724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17109',
internalId:  '',
customField: '20080211-144701'
};
webappMappings['1005']=webappMappings['1005-117f427b7fc.64f765ab']={
webappId:    '1005',
documentId:  '15121',
internalId:  '117f427b7fc.64f765ab',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17188',
internalId:  '',
customField: '20080208-135557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15555',
internalId:  '',
customField: '20080211-153434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17197',
internalId:  '',
customField: '20080211-113342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15573',
internalId:  '',
customField: '20090703-095951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15582',
internalId:  '',
customField: '20080208-212555'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INZDU4';
var companyName   = 'Technische+Dienste+Heidenau+GmbH';
var htmlTitle	  = 'TDH-Heidenau+GmbH';
var metaKeywords  = '0';
var metaContents  = 'Fernw%C3%A4rme+%2C+Heidenau+%2C+Energieversorger+%2C+Heizung%2CHeidenau+%2C+sachsen+%2C+Energieversorger+%2C+Fernw%C3%A4rme+%2C+Strom+%2C+Freibad+%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 */					                                                            

