/* [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('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41855',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41855/home.html','true',[ 
		['PAGE','41882',jdecode('Gauaufgabe'),jdecode(''),'/41855/41882.html','true',[],''],
		['PAGE','41864',jdecode('Gauchronik'),jdecode(''),'/41855/41864.html','true',[],''],
		['PAGE','41891',jdecode('Gaumitarbeiter'),jdecode(''),'/41855/41891.html','true',[],''],
		['PAGE','42029',jdecode('Gauvereine'),jdecode(''),'/41855/42029.html','true',[],''],
		['PAGE','41945',jdecode('F%C3%B6rderverein'),jdecode(''),'/41855/41945.html','true',[],''],
		['PAGE','42038',jdecode('Veranstaltungen'),jdecode(''),'/41855/42038.html','true',[],''],
		['PAGE','42047',jdecode('Nordic+Walking'),jdecode(''),'/41855/42047.html','true',[],'']
	],''],
	['PAGE','42092',jdecode('Aktuelles'),jdecode(''),'/42092.html','true',[],''],
	['PAGE','42649',jdecode('Angebote'),jdecode(''),'/42649.html','true',[],''],
	['PAGE','41900',jdecode('Termine%2FLehrg%C3%A4nge'),jdecode(''),'/41900.html','true',[],''],
	['PAGE','42083',jdecode('Wettk%C3%A4mpfe'),jdecode(''),'/42083.html','true',[],''],
	['PAGE','41909',jdecode('Ergebnisse'),jdecode(''),'/41909.html','true',[],''],
	['PAGE','41918',jdecode('Kontakt'),jdecode(''),'/41918.html','true',[],''],
	['PAGE','41963',jdecode('Archiv'),jdecode(''),'/41963.html','true',[],''],
	['PAGE','41927',jdecode('Interessante+Links'),jdecode(''),'/41927.html','true',[],''],
	['PAGE','41936',jdecode('Impressum'),jdecode(''),'/41936.html','true',[],''],
	['PAGE','43759',jdecode('G%C3%A4stebuch'),jdecode(''),'/43759/home.html','true',[ 
		['PAGE','43758',jdecode('Eintr%C3%A4ge'),jdecode(''),'/43759/43758.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='86';
theSitetree.graphicsetId='104';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'86',
				graphicsetId: 	'104',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20120202-101844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41855',
internalId:  '',
customField: '20101215-092533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41864',
internalId:  '',
customField: '20100205-122359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41945',
internalId:  '',
customField: '20110407-114757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41882',
internalId:  '',
customField: '20100205-115957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42029',
internalId:  '',
customField: '20100205-175612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42047',
internalId:  '',
customField: '20100205-145548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41891',
internalId:  '',
customField: '20111003-091311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41936',
internalId:  '',
customField: '20110804-112643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41900',
internalId:  '',
customField: '20120209-174122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42092',
internalId:  '',
customField: '20111124-194306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41918',
internalId:  '',
customField: '20101215-094214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42649',
internalId:  '',
customField: '20100328-163751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42038',
internalId:  '',
customField: '20100430-115343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42083',
internalId:  '',
customField: '20111024-145835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41909',
internalId:  '',
customField: '20111207-163238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41963',
internalId:  '',
customField: '20111012-124558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41927',
internalId:  '',
customField: '20100225-122652'
};
webappMappings['1002']=webappMappings['1002-43759atoix0irboq1']={
webappId:    '1002',
documentId:  '43759',
internalId:  '43759atoix0irboq1',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-43759atoix0irboq1']={
webappId:    '1002',
documentId:  '43758',
internalId:  '43759atoix0irboq1',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43759',
internalId:  '',
customField: '20100204-153431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43758',
internalId:  '',
customField: '20100204-153431'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRBOQ1';
var companyName   = 'Turngau+Inn-Chiem-Rupertigau';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

