/* [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','445201',jdecode('Startseite'),jdecode(''),'/445201.html','true',[],''],
	['PAGE','588201',jdecode('Aktuelles+%2F+Presse'),jdecode(''),'/588201.html','true',[],''],
	['PAGE','109801',jdecode('Vorank%C3%BCndigungen'),jdecode(''),'/109801.html','true',[],''],
	['PAGE','635001',jdecode('Bandonion-Club'),jdecode(''),'/635001.html','true',[],''],
	['PAGE','607701',jdecode('Pers%C3%B6nliches'),jdecode(''),'/607701.html','true',[],''],
	['PAGE','545201',jdecode('Schulsportfest'),jdecode(''),'/545201.html','true',[],''],
	['PAGE','599301',jdecode('Treckerfest'),jdecode(''),'/599301.html','true',[],''],
	['PAGE','577801',jdecode('Sch%C3%BCtzenfest+2011'),jdecode(''),'/577801.html','true',[],''],
	['PAGE','580601',jdecode('Sch%C3%BCtzenfest+3.+Tag'),jdecode(''),'/580601.html','true',[],''],
	['PAGE','568901',jdecode('Gro%C3%9Fer+Stern'),jdecode(''),'/568901.html','true',[],''],
	['PAGE','40430',jdecode('Bilder+Posaunenchor'),jdecode(''),'/40430.html','true',[],''],
	['PAGE','521101',jdecode('Sch%C3%BCtzen'),jdecode(''),'/521101.html','true',[],''],
	['PAGE','40472',jdecode('Posaunenchor'),jdecode(''),'/40472.html','true',[],''],
	['PAGE','555101',jdecode('Maifeier'),jdecode(''),'/555101.html','true',[],''],
	['PAGE','40111',jdecode('Soldatenkameradschaft'),jdecode(''),'/40111.html','true',[],''],
	['PAGE','259201',jdecode('Sozialverband+'),jdecode(''),'/259201.html','true',[],''],
	['PAGE','264101',jdecode('Vereineschie%C3%9Fen'),jdecode(''),'/264101.html','true',[],''],
	['PAGE','452301',jdecode('MTV-Gesundheitssport'),jdecode(''),'/452301.html','true',[],''],
	['PAGE','90001',jdecode('Sch%C3%BCtzenverein'),jdecode(''),'/90001.html','false',[],''],
	['PAGE','248501',jdecode('Links+%2F+Impressum'),jdecode(''),'/248501.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='90A262';
theSitetree.keyvisualId='2055';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='280';
theSitetree.graphicsetId='344';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='90A262';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Architekt',
				paletteFamily: 	'90A262',
				keyvisualId: 	'2055',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'280',
				graphicsetId: 	'344',
				contentColor: 	'000066',
				contentBGColor: '90A262',
				a_color: 		'90A262',
				b_color: 		'525D37',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '445201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248501',
internalId:  '',
customField: '20111013-084723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452301',
internalId:  '',
customField: '20100826-130122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '445201',
internalId:  '',
customField: '20120208-133850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '555101',
internalId:  '',
customField: '20110502-111527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40472',
internalId:  '',
customField: '20120203-112408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40430',
internalId:  '',
customField: '20111204-113923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40111',
internalId:  '',
customField: '20120206-135332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90001',
internalId:  '',
customField: '20110206-123053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '577801',
internalId:  '',
customField: '20110711-081615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109801',
internalId:  '',
customField: '20120208-133820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '588201',
internalId:  '',
customField: '20120207-161307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599301',
internalId:  '',
customField: '20110824-164058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '521101',
internalId:  '',
customField: '20111221-143439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '568901',
internalId:  '',
customField: '20110713-014358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '635001',
internalId:  '',
customField: '20120206-145147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '607701',
internalId:  '',
customField: '20111014-102251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264101',
internalId:  '',
customField: '20120107-132908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259201',
internalId:  '',
customField: '20120123-180048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '580601',
internalId:  '',
customField: '20110713-145709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '545201',
internalId:  '',
customField: '20110826-125725'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7O7WH';
var companyName   = 'Immensen-Aktuell';
var htmlTitle	  = 'Aktuelles+aus+Immensen';
var metaKeywords  = 'Aktuelles%2C+Pressenotizen%2C+Bilder%2C+Archiv+';
var metaContents  = 'Aktuelles+aus+Immensen+hier+abrufbar+%21';
					                                                                    
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 */					                                                            

