/* [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','18301',jdecode('Home'),jdecode(''),'/18301.html','true',[],''],
	['PAGE','18312',jdecode('Gr%C3%BCnholz+%2F+Aktuelles'),jdecode(''),'/18312.html','true',[],''],
	['PAGE','38640',jdecode('Termine+2008'),jdecode(''),'/38640.html','true',[],''],
	['PAGE','40940',jdecode('Termine+2009'),jdecode(''),'/40940.html','true',[],''],
	['PAGE','47140',jdecode('Termine+2010'),jdecode(''),'/47140.html','true',[],''],
	['PAGE','26740',jdecode('Termine+2011'),jdecode(''),'/26740.html','true',[],''],
	['PAGE','53740',jdecode('Kurse+2010'),jdecode(''),'/53740.html','true',[],''],
	['PAGE','58240',jdecode('Kurse+2011'),jdecode(''),'/58240.html','true',[],''],
	['PAGE','20140',jdecode('Galerie'),jdecode(''),'/20140.html','true',[],''],
	['PAGE','37340',jdecode('Wippdrechseln+%2F+Film'),jdecode(''),'/37340.html','true',[],''],
	['PAGE','49461',jdecode('Literaturtipps'),jdecode(''),'/49461.html','true',[],''],
	['PAGE','19622',jdecode('Presse+%2F+Referenzen'),jdecode(''),'/19622.html','true',[],''],
	['PAGE','18702',jdecode('G%C3%A4stebuch'),jdecode(''),'/18702/home.html','true',[ 
		['PAGE','18703',jdecode('Eintr%C3%A4ge'),jdecode(''),'/18702/18703.html','true',[],'']
	],''],
	['PAGE','18322',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/18322.html','true',[],''],
	['PAGE','19301',jdecode('Geschichte'),jdecode(''),'/19301.html','true',[],''],
	['PAGE','40961',jdecode('Interessante+Links'),jdecode(''),'/40961.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Stitch';
theSitetree.paletteFamily='E9F1EE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10769';
theSitetree.graphicsetId='10797';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stitch',
				paletteFamily: 	'E9F1EE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10769',
				graphicsetId: 	'10797',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'969595',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-18702atoix0in2amc']={
webappId:    '1002',
documentId:  '18702',
internalId:  '18702atoix0in2amc',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-18702atoix0in2amc']={
webappId:    '1002',
documentId:  '18703',
internalId:  '18702atoix0in2amc',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20140',
internalId:  '',
customField: '20110209-123854'
};
webappMappings['1007']=webappMappings['1007-10760ecf803']={
webappId:    '1007',
documentId:  '20140',
internalId:  '10760ecf803',
customField: 'g.10tgeecr2.agoa9pasua.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18301',
internalId:  '',
customField: '20100529-110120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20051105-221339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18312',
internalId:  '',
customField: '20100529-110536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19622',
internalId:  '',
customField: '20070208-115737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18322',
internalId:  '',
customField: '20100414-195633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18702',
internalId:  '',
customField: '20070219-100439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18703',
internalId:  '',
customField: '20070219-100926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26740',
internalId:  '',
customField: '20110209-152532'
};
webappMappings['7060']=webappMappings['7060-4b007f5972beebdfe268226ab06e4f2e']={
webappId:    '7060',
documentId:  '37340',
internalId:  '4b007f5972beebdfe268226ab06e4f2e',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37340',
internalId:  '',
customField: '20071004-153233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38640',
internalId:  '',
customField: '20081212-182347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40940',
internalId:  '',
customField: '20091204-211442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40961',
internalId:  '',
customField: '20110215-150326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47140',
internalId:  '',
customField: '20100826-172851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49461',
internalId:  '',
customField: '20091204-190659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53740',
internalId:  '',
customField: '20100226-124648'
};
webappMappings['1008']=webappMappings['1008-43796664']={
webappId:    '1008',
documentId:  '18322',
internalId:  '43796664',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58240',
internalId:  '',
customField: '20110114-170818'
};
webappMappings['7091']=webappMappings['7091-57901']={
webappId:    '7091',
documentId:  '26740',
internalId:  '57901',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['7091']=webappMappings['7091-57900']={
webappId:    '7091',
documentId:  '20140',
internalId:  '57900',
customField: 'align:left;language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN2AMC';
var companyName   = 'Hof+Balm';
var htmlTitle	  = 'Wippdrechseln+mit+Kindern+und+Jugendlichen';
var metaKeywords  = 'Dag+Wixforth%2C+Gaestebuch%2C+Gr%C3%BCnholz%2C+Balm%2C+Niederwald%2C+Naturschutz%2C++Wippdrechselbank%2C+Drechseln%2C+Wippdrehbank%2C+Schnitzbank%2C+Balm%2CKinderfeste%2C+Feste%2C+Ferienpass%2C+Museumsp%C3%A4dagogik%2C+B%C3%A4ume%2C+Holz%2C+Schnitzen%2C+Kindergeburtstage%2C+Kinder%2C+Jugendliche%2C+Wald%2C+Naturp%C3%A4dagogik';
var metaContents  = 'Informationen+%C3%BCber+Gr%C3%BCnholzarbeiten%2C+Termine+und+Bilder+vergangener+Veranstaltungen.';
					                                                                    
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 */					                                                            

