/* [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','4579',jdecode('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','14064',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/14064.html','true',[],''],
	['PAGE','14356',jdecode('FUB+Programm'),jdecode(''),'/14356.html','true',[],''],
	['PAGE','15401',jdecode('Politische+Arbeit+'),jdecode(''),'/15401.html','true',[],''],
	['PAGE','21601',jdecode('+Mitstreiter+der+FUB'),jdecode(''),'/21601.html','true',[],''],
	['PAGE','14302',jdecode('News'),jdecode(''),'/14302.html','true',[],''],
	['PAGE','14489',jdecode('G%C3%A4stebuch'),jdecode(''),'/14489/home.html','true',[ 
		['PAGE','14490',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14489/14490.html','true',[],'']
	],''],
	['PAGE','22875',jdecode('Kontakt'),jdecode(''),'/22875.html','true',[],''],
	['PAGE','22893',jdecode('Mitglied+werden'),jdecode(''),'/22893/home.html','true',[ 
		['PAGE','32901',jdecode('Satzung'),jdecode(''),'/22893/32901.html','true',[],'']
	],''],
	['PAGE','22902',jdecode('Impressum'),jdecode(''),'/22902.html','true',[],''],
	['PAGE','24276',jdecode('Links'),jdecode(''),'/24276.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Simple';
theSitetree.paletteFamily='EAD8C1';
theSitetree.keyvisualId='2560';
theSitetree.keyvisualName='business.jpg';
theSitetree.fontsetId='10753';
theSitetree.graphicsetId='10458';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='ead8c1';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Simple',
				paletteFamily: 	'EAD8C1',
				keyvisualId: 	'2560',
				keyvisualName: 	'business.jpg',
				fontsetId: 		'10753',
				graphicsetId: 	'10458',
				contentColor: 	'000000',
				contentBGColor: 'ead8c1',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'857157',
				e_color: 		'FFFFFF',
				f_color: 		'817E7E',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-14489ATOIX0INLOFG']={
webappId:    '1002',
documentId:  '14489',
internalId:  '14489ATOIX0INLOFG',
customField: 'action=form&icq=false'
};
webappMappings['1501']=webappMappings['1501-1884488']={
webappId:    '1501',
documentId:  '4579',
internalId:  '1884488',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-14489ATOIX0INLOFG']={
webappId:    '1002',
documentId:  '14490',
internalId:  '14489ATOIX0INLOFG',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20111206-082309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14356',
internalId:  '',
customField: '20111206-083511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14064',
internalId:  '',
customField: '20091227-145955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20111206-083722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20111206-084555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14302',
internalId:  '',
customField: '20110412-181544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14489',
internalId:  '',
customField: '20030919-130000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14490',
internalId:  '',
customField: '20030918-201828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32901',
internalId:  '',
customField: '20091231-102725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22875',
internalId:  '',
customField: '20111206-084740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22893',
internalId:  '',
customField: '20091228-080827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22902',
internalId:  '',
customField: '20091228-082013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24276',
internalId:  '',
customField: '20091221-131934'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INLOFG';
var companyName   = 'Freie+Unabhaengige+Buerger+Nidda';
var htmlTitle	  = 'unabhaengige+buerger+nidda';
var metaKeywords  = 'politik%3Bfreizeit%3Bhobby%3Baktivit%C3%A4ten%3Binformation%3B';
var metaContents  = 'unparteiliche+Institution';
					                                                                    
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 */					                                                            

