/* [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('Aktuelles'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','42701',jdecode('Veit+Bach+Festspiele'),jdecode(''),'/42701/home.html','true',[ 
		['PAGE','19852',jdecode('2000'),jdecode(''),'/42701/19852.html','true',[],''],
		['PAGE','21275',jdecode('2004'),jdecode(''),'/42701/21275.html','true',[],''],
		['PAGE','31501',jdecode('2008'),jdecode(''),'/42701/31501.html','true',[],'']
	],''],
	['PAGE','18323',jdecode('Geschichte'),jdecode(''),'/18323/home.html','true',[ 
		['PAGE','13663',jdecode('1992'),jdecode(''),'/18323/13663.html','true',[],''],
		['PAGE','13690',jdecode('1994'),jdecode(''),'/18323/13690.html','true',[],''],
		['PAGE','17093',jdecode('1997'),jdecode(''),'/18323/17093.html','true',[],''],
		['PAGE','17724',jdecode('2000'),jdecode(''),'/18323/17724.html','true',[],''],
		['PAGE','13771',jdecode('2004'),jdecode(''),'/18323/13771.html','true',[],''],
		['PAGE','21775',jdecode('Umzug+2004'),jdecode(''),'/18323/21775.html','true',[],''],
		['PAGE','27600',jdecode('2007'),jdecode(''),'/18323/27600.html','true',[],''],
		['PAGE','25899',jdecode('25+Jahre+WHV'),jdecode(''),'/18323/25899.html','true',[],'']
	],''],
	['PAGE','27394',jdecode('Gruppen+'),jdecode(''),'/27394.html','true',[],''],
	['PAGE','13717',jdecode('Erlebnisse'),jdecode(''),'/13717.html','true',[],''],
	['PAGE','14083',jdecode('Landhaus+Studnitz'),jdecode(''),'/14083.html','true',[],''],
	['PAGE','18717',jdecode('G%C3%A4stebuch'),jdecode(''),'/18717/home.html','true',[ 
		['PAGE','18718',jdecode('Eintr%C3%A4ge'),jdecode(''),'/18717/18718.html','true',[],'']
	],''],
	['PAGE','26111',jdecode('Impressum'),jdecode(''),'/26111.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Boutique_02';
theSitetree.paletteFamily='CBF7FF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33419';
theSitetree.graphicsetId='14284';
theSitetree.contentColor='E7CBEB';
theSitetree.contentBGColor='734C79';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Boutique_02',
				paletteFamily: 	'CBF7FF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33419',
				graphicsetId: 	'14284',
				contentColor: 	'E7CBEB',
				contentBGColor: '734C79',
				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['1007']=webappMappings['1007-1065e570101']={
webappId:    '1007',
documentId:  '17724',
internalId:  '1065e570101',
customField: 'g.10pf5e081.6rnqbntlf1tei.6rn80'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20111011-204331'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-18717ATOIX0INZQRJ']={
webappId:    '1002',
documentId:  '18717',
internalId:  '18717ATOIX0INZQRJ',
customField: 'action=form&icq=false'
};
webappMappings['1007']=webappMappings['1007-1065e570107']={
webappId:    '1007',
documentId:  '19852',
internalId:  '1065e570107',
customField: 'g.10pf5e087.3psnq83puahns.6rn80'
};
webappMappings['1002']=webappMappings['1002-18717ATOIX0INZQRJ']={
webappId:    '1002',
documentId:  '18718',
internalId:  '18717ATOIX0INZQRJ',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18323',
internalId:  '',
customField: '20070726-201625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25899',
internalId:  '',
customField: '20080422-093211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13663',
internalId:  '',
customField: '20100330-213523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13690',
internalId:  '',
customField: '20100330-213646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17093',
internalId:  '',
customField: '20100330-213745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17724',
internalId:  '',
customField: '20040802-173253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19852',
internalId:  '',
customField: '20040812-092644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13771',
internalId:  '',
customField: '20100330-213422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21775',
internalId:  '',
customField: '20040907-182322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21275',
internalId:  '',
customField: '20111010-132217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27600',
internalId:  '',
customField: '20070727-122917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20081210-232520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14083',
internalId:  '',
customField: '20100330-215056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13717',
internalId:  '',
customField: '20100503-183729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27394',
internalId:  '',
customField: '20111012-114012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18717',
internalId:  '',
customField: '20070710-114308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18718',
internalId:  '',
customField: '20040808-114931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26111',
internalId:  '',
customField: '20090919-124114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42701',
internalId:  '',
customField: '20111011-204358'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INZQRJ';
var companyName   = 'Wechmarer+Heimatverein+e.V.';
var htmlTitle	  = 'Wechmarer+Heimatverein+e.V.';
var metaKeywords  = 'Tracht%2C+Verein%2C+Wechmar%2C+Bach%2C+Heimat';
var metaContents  = 'Seit+1982+widmet+sich+der+Wechmarer+Heimatverein+e.V.+der+Pflege+von+Brauch+und+Sitte.+Die+Tracht+als+Kleid+der+Heimat+zu+erhalten%2C+die+Sitten+der+Altvorderen+in+Mundart%2C+Lied+und+Tanz+zu+pflegen+ist+das+Ziel+unseres+Vereins.';
					                                                                    
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 */					                                                            

