/* [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'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41010',jdecode('Die+Zehntscheune'),jdecode(''),'/41010.html','true',[],''],
	['PAGE','41019',jdecode('Veranstaltungen'),jdecode(''),'/41019/home.html','true',[ 
		['PAGE','68206',jdecode('Scheunenweihnacht+2011'),jdecode(''),'/41019/68206.html','true',[],''],
		['PAGE','68101',jdecode('Advent+2010'),jdecode(''),'/41019/68101.html','true',[],''],
		['PAGE','72801',jdecode('Liebe%2C+Kunst+und+...'),jdecode(''),'/41019/72801.html','true',[],''],
		['PAGE','70401',jdecode('Maler+Wolf+Bertram'),jdecode(''),'/41019/70401.html','true',[],''],
		['PAGE','68122',jdecode('Fu%C3%9Fball+WM+2010'),jdecode(''),'/41019/68122.html','true',[],''],
		['PAGE','68143',jdecode('BIG+BAND+2010'),jdecode(''),'/41019/68143.html','true',[],''],
		['PAGE','68164',jdecode('Weihnachten+09'),jdecode(''),'/41019/68164.html','true',[],''],
		['PAGE','68185',jdecode('FFW+Winzenb.+09'),jdecode(''),'/41019/68185.html','true',[],'']
	],''],
	['PAGE','41074',jdecode('Vereinsmitteilungen'),jdecode(''),'/41074.html','true',[],''],
	['PAGE','42174',jdecode('Fotoarchiv'),jdecode(''),'/42174.html','true',[],''],
	['PAGE','61201',jdecode('WM+Album'),jdecode(''),'/61201.html','true',[],''],
	['PAGE','41047',jdecode('G%C3%A4stebuch'),jdecode(''),'/41047/home.html','true',[ 
		['PAGE','41046',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41047/41046.html','true',[],'']
	],''],
	['PAGE','40992',jdecode('Kontakt'),jdecode(''),'/40992/home.html','true',[ 
		['PAGE','42334',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/40992/42334.html','true',[],'']
	],''],
	['PAGE','41110',jdecode('Impressum'),jdecode(''),'/41110.html','true',[],''],
	['PAGE','42637',jdecode('Links'),jdecode(''),'/42637.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Seifenblase';
theSitetree.paletteFamily='FF9B5E';
theSitetree.keyvisualId='2353';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='380';
theSitetree.graphicsetId='430';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Seifenblase',
				paletteFamily: 	'FF9B5E',
				keyvisualId: 	'2353',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'380',
				graphicsetId: 	'430',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'CC3300',
				e_color: 		'FF3300',
				f_color: 		'FF9966',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-41047atoix0invw8u']={
webappId:    '1002',
documentId:  '41047',
internalId:  '41047atoix0invw8u',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41047atoix0invw8u']={
webappId:    '1002',
documentId:  '41046',
internalId:  '41047atoix0invw8u',
customField: 'action=list'
};
webappMappings['1007']=webappMappings['1007-105d4454ae7']={
webappId:    '1007',
documentId:  '42174',
internalId:  '105d4454ae7',
customField: 'g.10na14h20.2podqc5mj9a.3o'
};
webappMappings['1001']=webappMappings['1001-atoix0invw8u1064b7491af']={
webappId:    '1001',
documentId:  '40992',
internalId:  'atoix0invw8u1064b7491af',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0invw8u1064b7491af']={
webappId:    '1001',
documentId:  '42334',
internalId:  'atoix0invw8u1064b7491af',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20090529-150439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41074',
internalId:  '',
customField: '20110221-195253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41010',
internalId:  '',
customField: '20051112-155011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41019',
internalId:  '',
customField: '20111102-194111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42174',
internalId:  '',
customField: '20051120-163301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41047',
internalId:  '',
customField: '20050820-164406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41046',
internalId:  '',
customField: '20050809-123055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40992',
internalId:  '',
customField: '20060811-173549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42334',
internalId:  '',
customField: '20050912-194926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41110',
internalId:  '',
customField: '20101122-184348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42637',
internalId:  '',
customField: '20110508-102306'
};
webappMappings['1501']=webappMappings['1501-33215890']={
webappId:    '1501',
documentId:  '44',
internalId:  '33215890',
customField: '1501'
};
webappMappings['1007']=webappMappings['1007-129384cceef']={
webappId:    '1007',
documentId:  '61201',
internalId:  '129384cceef',
customField: 'g.154s4fheu.764mrssaer.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61201',
internalId:  '',
customField: '20100704-131734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68101',
internalId:  '',
customField: '20101201-214500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68122',
internalId:  '',
customField: '20100817-200542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68143',
internalId:  '',
customField: '20100817-202106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68164',
internalId:  '',
customField: '20100817-204302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68185',
internalId:  '',
customField: '20100818-210311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68206',
internalId:  '',
customField: '20111201-125912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70401',
internalId:  '',
customField: '20100912-110408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72801',
internalId:  '',
customField: '20100912-142832'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INVW8U';
var companyName   = 'F%C3%B6rderverein+Zehntscheune+Freden+e.V.';
var htmlTitle	  = 'Zehntscheune+Freden';
var metaKeywords  = 'F%C3%B6rderverein%2C+Zehntscheune%2C+Freden%2C+Kultur%2C+Heimann%2C+Schmidt%2C+Tchorsch%2C+Tietz%2C+Habenicht%2C+Ive%2C+Kulturscheune%2C+Internationale+Fredener+Musiktage++';
var metaContents  = 'Willkommen+beim+F%C3%B6rderverein+Zehntscheune+Freden+e.V.+Infos+%C3%BCber+unseren+Verein+sowie+Veranstaltungen+in+der+Kulturscheune+im+S%C3%BCden+des+Landkreises+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 */					                                                            

