/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','44',jdecode('BEA-Kita'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41071',jdecode('Unser+Bezirk'),jdecode(''),'/41071.html','true',[],''],
	['PAGE','41080',jdecode('Kitas+im+Eigenbetrieb'),jdecode(''),'/41080.html','true',[],''],
	['PAGE','41089',jdecode('Kitas+in+fr.+Tr%C3%A4gerschaft'),jdecode(''),'/41089.html','true',[],''],
	['PAGE','40511',jdecode('Termine'),jdecode(''),'/40511.html','true',[],''],
	['PAGE','40520',jdecode('Einladung'),jdecode(''),'/40520.html','true',[],''],
	['PAGE','41934',jdecode('BEA-Wahl'),jdecode(''),'/41934.html','true',[],''],
	['PAGE','40538',jdecode('Kontakt'),jdecode(''),'/40538.html','true',[],''],
	['PAGE','40547',jdecode('Protokolle'),jdecode(''),'/40547/home.html','true',[ 
		['PAGE','41532',jdecode('Juniprotokoll'),jdecode(''),'/40547/41532.html','true',[],''],
		['PAGE','41775',jdecode('Augustprotokoll'),jdecode(''),'/40547/41775.html','true',[],''],
		['PAGE','41925',jdecode('Septemberprotokoll'),jdecode(''),'/40547/41925.html','true',[],'']
	],''],
	['PAGE','41157',jdecode('Elternbeteiligung'),jdecode(''),'/41157.html','true',[],''],
	['PAGE','42128',jdecode('Leitfaden+Elternvertreter'),jdecode(''),'/42128.html','true',[],''],
	['PAGE','40592',jdecode('Kitawerbung'),jdecode(''),'/40592.html','true',[],''],
	['PAGE','40702',jdecode('Links'),jdecode(''),'/40702.html','true',[],''],
	['PAGE','41679',jdecode('Familie'),jdecode(''),'/41679.html','true',[],''],
	['PAGE','40742',jdecode('G%C3%A4stebuch'),jdecode(''),'/40742/home.html','true',[ 
		['PAGE','40741',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40742/40741.html','true',[],'']
	],''],
	['PAGE','40583',jdecode('Impressum'),jdecode(''),'/40583.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Porthole';
theSitetree.paletteFamily='06911D';
theSitetree.keyvisualId='6704';
theSitetree.keyvisualName='kv_6704.jpg';
theSitetree.fontsetId='11202';
theSitetree.graphicsetId='12018';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E6FCED';
var theTemplate={
				name: 			'Porthole',
				paletteFamily: 	'06911D',
				keyvisualId: 	'6704',
				keyvisualName: 	'kv_6704.jpg',
				fontsetId: 		'11202',
				graphicsetId: 	'12018',
				contentColor: 	'000000',
				contentBGColor: 'E6FCED',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '44',
internalId:  '11147003',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '40742',
internalId:  '40742atoix0i75zmg',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '40741',
internalId:  '40742atoix0i75zmg',
customField: 'action=list'
};
webappMappings['1011']={
webappId:    '1011',
documentId:  '41679',
internalId:  'ddp-familie',
customField: 'language:de;country:DE;'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '40583',
internalId:  '18376565',
customField: 'de:DE:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '40538',
internalId:  '18376865',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk06.aul.t-online.de';
var accountId     = 'ATOIX0I75ZMG';
var companyName   = 'Bezirkselternausschuss+Kita+Marzahn%2FHellersdorf';
var htmlTitle	  = 'Bezirkselternausschuss+Kita+-+Berlin+Marzahn%2FHellersdorf';
var metaKeywords  = '++Bezirkselternausschuss+Kita%2C+Marzahn%2FHellersdorf%2C+Berlin%2C+Kita%2C+Kinderbetreuung%2C+Elternvereinigung+';
var metaContents  = 'Bezirkselternausschuss+Kita%2C+Marzahn%2FHellersdorf%2C+Berlin%2C+Kita%2C+Kinderbetreuung%2C+Elternvereinigung+';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
