/* [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','44',jdecode('Startseite+mit+Natur-Info'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41300',jdecode('Aktuelles'),jdecode(''),'/41300.html','true',[],''],
	['PAGE','41309',jdecode('Termine%2C+Satzungen%2C+Sitzungsprotokolle'),jdecode(''),'/41309.html','true',[],''],
	['PAGE','41291',jdecode('Gemeinderat'),jdecode(''),'/41291.html','true',[],''],
	['PAGE','58601',jdecode('Gemeindefinanzen+Resolution'),jdecode(''),'/58601.html','true',[],''],
	['PAGE','59001',jdecode('Ehrungen+%2F+Pers%C3%B6nlichkeiten'),jdecode(''),'/59001.html','true',[],''],
	['PAGE','61101',jdecode('Immobilien'),jdecode(''),'/61101.html','true',[],''],
	['PAGE','41318',jdecode('Interessante+Links'),jdecode(''),'/41318.html','true',[],''],
	['PAGE','43069',jdecode('Anfahrt'),jdecode(''),'/43069.html','true',[],''],
	['PAGE','52801',jdecode('Feuerwehrabschlu%C3%9F%C3%BCbung+2010'),jdecode(''),'/52801.html','true',[],''],
	['PAGE','52901',jdecode('Dorfansichten+und+-aktionen'),jdecode(''),'/52901.html','true',[],''],
	['PAGE','53001',jdecode('Bilder+vom+Bauernmarkt'),jdecode(''),'/53001.html','true',[],''],
	['PAGE','41336',jdecode('Kontakt'),jdecode(''),'/41336.html','true',[],''],
	['PAGE','41354',jdecode('Impressum'),jdecode(''),'/41354.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='2E681F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10829';
theSitetree.graphicsetId='11286';
theSitetree.contentColor='2E681F';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Basic',
				paletteFamily: 	'2E681F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10829',
				graphicsetId: 	'11286',
				contentColor: 	'2E681F',
				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:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20120114-132938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41300',
internalId:  '',
customField: '20120129-194451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58601',
internalId:  '',
customField: '20101023-195210'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43069',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1007']=webappMappings['1007-1283457e01b']={
webappId:    '1007',
documentId:  '52801',
internalId:  '1283457e01b',
customField: 'g.150q5be68.alm04hi3cg.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41309',
internalId:  '',
customField: '20120129-194150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41291',
internalId:  '',
customField: '20110123-155036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41318',
internalId:  '',
customField: '20110125-223449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41336',
internalId:  '',
customField: '20100313-161101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41354',
internalId:  '',
customField: '20060505-193221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43069',
internalId:  '',
customField: '20060404-180725'
};
webappMappings['1007']=webappMappings['1007-1283459be8c']={
webappId:    '1007',
documentId:  '52901',
internalId:  '1283459be8c',
customField: 'g.150q5gdlm.46061hghuo3.3o'
};
webappMappings['1007']=webappMappings['1007-128345cbc6c']={
webappId:    '1007',
documentId:  '53001',
internalId:  '128345cbc6c',
customField: 'g.150q5k4g7.1el6kq6ao9.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52801',
internalId:  '',
customField: '20110126-233520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20100425-211531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53001',
internalId:  '',
customField: '20110123-183906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20110603-153257'
};
webappMappings['1501']=webappMappings['1501-11171663']={
webappId:    '1501',
documentId:  '44',
internalId:  '11171663',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61101',
internalId:  '',
customField: '20100520-215224'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I74IEU';
var companyName   = 'Ortsgemeinde+R%C3%B6tsweiler-Nockenthal';
var htmlTitle	  = 'roetsweiler-nockenthal';
var metaKeywords  = 'ortsgemeinde+buergermeisteramt+gemeindeverwaltung+veranstaltungen+mitteilungen+sehenswuerdigkeiten+feste+termine+vereine+einrichtungen+statistiken+tus+r-n+igrn+heimatfest+bauernmarkt+edelsteinstrasse+hans-dieter+kappler+roetsweiler+nockenthal+immobilien+sport+';
var metaContents  = 'Willkommen+in+der+Ortsgemeinde+R%C3%B6tsweiler-Nockenthal+am+Rande+des+Hunsr%C3%BCcks.+Gemeinderat.+Immobilien.+Statistiken.+Vereine.+Firmen.+Tourismus.+Lageplan.';
					                                                                    
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 */					                                                            

