/* [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','13761',jdecode('Home'),jdecode(''),'/13761.html','true',[],''],
	['PAGE','14201',jdecode('Aktuelles'),jdecode(''),'/14201.html','true',[],''],
	['PAGE','14228',jdecode('Termine+2012'),jdecode(''),'/14228.html','true',[],''],
	['PAGE','509553',jdecode('vor+25+Jahren+1986%2F87'),jdecode(''),'/509553.html','true',[],''],
	['PAGE','114637',jdecode('Kirchengemeinde+'),jdecode(''),'/114637.html','true',[],''],
	['PAGE','788453',jdecode('Instutionen'),jdecode(''),'/788453.html','true',[],''],
	['PAGE','14282',jdecode('Vereine'),jdecode(''),'/14282.html','true',[],''],
	['PAGE','48724',jdecode('Unser+Ort'),jdecode(''),'/48724.html','true',[],''],
	['PAGE','14255',jdecode('Geschichte+%28Kurz%29'),jdecode(''),'/14255.html','true',[],''],
	['PAGE','51371',jdecode('Pers%C3%B6nlichkeiten'),jdecode(''),'/51371.html','true',[],''],
	['PAGE','44851',jdecode('In+eigener+Sache'),jdecode(''),'/44851.html','true',[],''],
	['PAGE','51064',jdecode('Heimatpflege+des+LK+Hildesheim'),jdecode(''),'/51064.html','true',[],''],
	['PAGE','49891',jdecode('%22Links%22+www.+andere'),jdecode(''),'/49891.html','true',[],''],
	['PAGE','271037',jdecode('Gastseite'),jdecode(''),'/271037.html','true',[],''],
	['PAGE','532253',jdecode('Bildergalerie'),jdecode(''),'/532253.html','true',[],''],
	['PAGE','587953',jdecode('Bildergalerie+II.'),jdecode(''),'/587953.html','true',[],''],
	['PAGE','37937',jdecode('G%C3%A4stebuch'),jdecode(''),'/37937/home.html','true',[ 
		['PAGE','37938',jdecode('Eintr%C3%A4ge'),jdecode(''),'/37937/37938.html','true',[],'']
	],''],
	['PAGE','49846',jdecode('Impressum'),jdecode(''),'/49846.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Bubbles';
theSitetree.paletteFamily='C441A6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13';
theSitetree.graphicsetId='11';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bubbles',
				paletteFamily: 	'C441A6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13',
				graphicsetId: 	'11',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'C441A6',
				b_color: 		'E4316B',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13761',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14228',
internalId:  '',
customField: '20120131-005404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13761',
internalId:  '',
customField: '20120131-215604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '587953',
internalId:  '',
customField: '20120130-105844'
};
webappMappings['1002']=webappMappings['1002-37937ATOIX0INVKQU']={
webappId:    '1002',
documentId:  '37937',
internalId:  '37937ATOIX0INVKQU',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-37937ATOIX0INVKQU']={
webappId:    '1002',
documentId:  '37938',
internalId:  '37937ATOIX0INVKQU',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114637',
internalId:  '',
customField: '20120131-005048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20120131-215939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14282',
internalId:  '',
customField: '20120130-111123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48724',
internalId:  '',
customField: '20120131-005545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49891',
internalId:  '',
customField: '20110109-173125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44851',
internalId:  '',
customField: '20110412-220528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51371',
internalId:  '',
customField: '20111007-190443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14255',
internalId:  '',
customField: '20100718-222031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51064',
internalId:  '',
customField: '20111231-174624'
};
webappMappings['1007']=webappMappings['1007-122174b6807']={
webappId:    '1007',
documentId:  '587953',
internalId:  '122174b6807',
customField: 'g.148bkhgtn.6g5595qj64v.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37937',
internalId:  '',
customField: '20070721-141533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37938',
internalId:  '',
customField: '20050520-180441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49846',
internalId:  '',
customField: '20101231-133548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '271037',
internalId:  '',
customField: '20120107-154749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788453',
internalId:  '',
customField: '20120130-091017'
};
webappMappings['1007']=webappMappings['1007-11fed075a6b']={
webappId:    '1007',
documentId:  '532253',
internalId:  '11fed075a6b',
customField: 'g.13vmg7i81.jsel70aatb.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '532253',
internalId:  '',
customField: '20120130-094128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '509553',
internalId:  '',
customField: '20120131-005215'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0INVKQU';
var companyName   = 'Stadt+Bad+Salzdetfurth';
var htmlTitle	  = 'www.heinde.net';
var metaKeywords  = 'Niedersachsen%2C+Kreis+Hildesheim%2C+Bad+Salzdetfurth%2C+Heinde%2C+Ortshomepage%2C+Ortsheimatpfleger%2CVereine%2C+Gruppen%2C+Orte%2C+heinde.net.%2C+';
var metaContents  = 'Homepage+von+Heinde+OT+der+Stadt+31162+Bad+Salzdetfurth+Niedersachsen.';
					                                                                    
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 */					                                                            

