/* [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('Der+Verein'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','42037',jdecode('News+%2B+Tipps'),jdecode(''),'/42037/home.html','true',[ 
		['PAGE','42046',jdecode('Gemeinschaftsarbeit'),jdecode(''),'/42037/42046.html','true',[],''],
		['PAGE','42055',jdecode('Termine'),jdecode(''),'/42037/42055.html','true',[],''],
		['PAGE','92501',jdecode('Hinweise'),jdecode(''),'/42037/92501.html','true',[],'']
	],''],
	['PAGE','42028',jdecode('Freie+G%C3%A4rten+%2802%2F2012%29'),jdecode(''),'/42028.html','true',[],''],
	['PAGE','42019',jdecode('Schulgarten'),jdecode(''),'/42019.html','true',[],''],
	['PAGE','42001',jdecode('Kontakt'),jdecode(''),'/42001/home.html','true',[ 
		['PAGE','42010',jdecode('Impressum'),jdecode(''),'/42001/42010.html','true',[],'']
	],''],
	['PAGE','94101',jdecode('Fotogalerie'),jdecode(''),'/94101.html','true',[],''],
	['PAGE','43832',jdecode('Anfahrt'),jdecode(''),'/43832.html','true',[],''],
	['PAGE','42605',jdecode('Archiv'),jdecode(''),'/42605.html','true',[],''],
	['PAGE','129501',jdecode('Lese-Ecke+f%C3%BCr+Kinder'),jdecode(''),'/129501.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Cherry';
theSitetree.paletteFamily='FCFCFB';
theSitetree.keyvisualId='10891';
theSitetree.keyvisualName='kv_10891.jpg';
theSitetree.fontsetId='31881';
theSitetree.graphicsetId='13691';
theSitetree.contentColor='0A0A0A';
theSitetree.contentBGColor='FCFCFB';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cherry',
				paletteFamily: 	'FCFCFB',
				keyvisualId: 	'10891',
				keyvisualName: 	'kv_10891.jpg',
				fontsetId: 		'31881',
				graphicsetId: 	'13691',
				contentColor: 	'0A0A0A',
				contentBGColor: 'FCFCFB',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20120201-190904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42001',
internalId:  '',
customField: '20110523-192602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42019',
internalId:  '',
customField: '20100926-193856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42028',
internalId:  '',
customField: '20120201-191430'
};
webappMappings['1008']=webappMappings['1008-55518006']={
webappId:    '1008',
documentId:  '42001',
internalId:  '55518006',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42010',
internalId:  '',
customField: '20100524-161011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42037',
internalId:  '',
customField: '20120201-191151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42046',
internalId:  '',
customField: '20111024-213401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42605',
internalId:  '',
customField: '20111228-205246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42055',
internalId:  '',
customField: '20111210-181235'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43832',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43832',
internalId:  '',
customField: '20090203-200706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94101',
internalId:  '',
customField: '20120112-201213'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92501',
internalId:  '',
customField: '20111024-213829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129501',
internalId:  '',
customField: '20110411-202441'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7X33Q';
var companyName   = 'Gartenfreunde+Bockfeld+e.V.';
var htmlTitle	  = 'Gartenfreunde+Bockfeld+e.V.';
var metaKeywords  = 'Ihr+Name%2C+Kleingarten%2C+Kleingartenanlage%2C+Gartenfreunde%2C+KGV%2C+Bezirksverband+Gartenfreunde%2C+Landesverband+Gartenfreunde%2C++Freie+G%C3%A4rten%2C+Garten%2C+Nutzgarten%2C+Presseberichte%2C+Hildesheim%2C+31137%2C+Bockfeld%2C+Moritzberg%2C+Kleing%C3%A4rtner%2C+Freizeit%2C+Gr%C3%BCnanlage%2C+Stadt+Hildesheim%2C+Landkreis+Hildesheim%2C+Erholung%2C+Urlaub%2C+Termine%2C+News+und+Tipps';
var metaContents  = 'Willkommen+bei+Gartenfreunde+Bockfeld+e.V.+%2CKleingartenanlage+%C3%BCber+den+D%C3%A4chern+von+Hildesheim';
					                                                                    
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 */					                                                            

