/* [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.html','true',[],''],
	['PAGE','40711',jdecode('%C3%9Cber+uns'),jdecode(''),'/40711.html','true',[],''],
	['PAGE','40693',jdecode('Aktuelles%2C+Termine'),jdecode(''),'/40693/home.html','true',[ 
		['PAGE','40702',jdecode('Termine'),jdecode(''),'/40693/40702.html','true',[],'']
	],''],
	['PAGE','40649',jdecode('Energieberatung'),jdecode(''),'/40649/home.html','true',[ 
		['PAGE','62501',jdecode('Energieberater'),jdecode(''),'/40649/62501.html','true',[],''],
		['PAGE','62522',jdecode('Handwerker%2FDienstleister'),jdecode(''),'/40649/62522.html','true',[],''],
		['PAGE','62543',jdecode('F%C3%B6rderprogramme'),jdecode(''),'/40649/62543.html','true',[],''],
		['PAGE','62564',jdecode('Gesetze%2FEnergieausweis'),jdecode(''),'/40649/62564.html','true',[],''],
		['PAGE','79101',jdecode('+Heizsysteme'),jdecode(''),'/40649/79101.html','true',[],''],
		['PAGE','80101',jdecode('Solarw%C3%A4rme%2FSolarstrom'),jdecode(''),'/40649/80101.html','true',[],''],
		['PAGE','81501',jdecode('W%C3%A4rmepumpe'),jdecode(''),'/40649/81501.html','true',[],''],
		['PAGE','80122',jdecode('W%C3%A4rmed%C3%A4mmung'),jdecode(''),'/40649/80122.html','true',[],''],
		['PAGE','62585',jdecode('Energiespartipps'),jdecode(''),'/40649/62585.html','true',[],'']
	],''],
	['PAGE','40729',jdecode('+Energie-Infotage+2012'),jdecode(''),'/40729.html','true',[],''],
	['PAGE','40720',jdecode('Energiespar-Links'),jdecode(''),'/40720.html','true',[],''],
	['PAGE','40738',jdecode('Solaranlagen+LeoSolar'),jdecode(''),'/40738.html','true',[],''],
	['PAGE','40747',jdecode('Presse'),jdecode(''),'/40747.html','true',[],''],
	['PAGE','40658',jdecode('Impressum%2C+Kontakt'),jdecode(''),'/40658.html','true',[],''],
	['PAGE','141911',jdecode('Anfahrt'),jdecode(''),'/141911.html','true',[],''],
	['PAGE','182711',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/182711.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Zoe';
theSitetree.paletteFamily='245356';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='412';
theSitetree.graphicsetId='455';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Zoe',
				paletteFamily: 	'245356',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'412',
				graphicsetId: 	'455',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'00330B',
				e_color: 		'527559',
				f_color: 		'01841D',
				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: '20111123-172043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40649',
internalId:  '',
customField: '20100204-184926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40658',
internalId:  '',
customField: '20110323-111032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40693',
internalId:  '',
customField: '20120131-171151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40702',
internalId:  '',
customField: '20120131-170927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40711',
internalId:  '',
customField: '20120104-225338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40738',
internalId:  '',
customField: '20110825-155437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40729',
internalId:  '',
customField: '20120131-170036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40720',
internalId:  '',
customField: '20120202-150626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40747',
internalId:  '',
customField: '20120104-230033'
};
webappMappings['1501']=webappMappings['1501-45484787']={
webappId:    '1501',
documentId:  '39994',
internalId:  '45484787',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '141911',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62501',
internalId:  '',
customField: '20110330-153613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62543',
internalId:  '',
customField: '20111130-165828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62564',
internalId:  '',
customField: '20110504-100709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62585',
internalId:  '',
customField: '20111018-180459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62522',
internalId:  '',
customField: '20111215-110928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79101',
internalId:  '',
customField: '20111123-171930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80122',
internalId:  '',
customField: '20110504-100853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80101',
internalId:  '',
customField: '20111129-154104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20100420-192945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141911',
internalId:  '',
customField: '20111203-155608'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '182711',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182711',
internalId:  '',
customField: '20100205-144024'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IR1V2O';
var companyName   = 'LEO+wird+solar+-++Der+Energiekreis+informiert...';
var htmlTitle	  = 'energiekreis+lokale+Agenda21+Leonberg';
var metaKeywords  = '+Energiekreis%2C+lokale+Agenda21%2C+Leonberg%2C+R%C3%BCdiger+Beising%2C+Energieberatung%2C+Energiespar-Links%2C+LeoSolar++';
var metaContents  = 'Energiekreis+der+lokalen+Agenda+21+der+Stadt+Leonberg+mit+Berichten+%C3%BCber+seine+Aktivit%C3%A4ten%2C+Energieberatung%2C+Energiespar-Links+und+Solaranlagen+LeoSolar+';
					                                                                    
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 */					                                                            

