/* [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','10701',jdecode('Unsere+Schule'),jdecode(''),'/10701/home.html','true',[ 
		['PAGE','23001',jdecode('Kollegium'),jdecode(''),'/10701/23001.html','true',[],''],
		['PAGE','124099',jdecode('Schulkonferenzen'),jdecode(''),'/10701/124099.html','true',[],'']
	],''],
	['PAGE','108789',jdecode('Standort+H%C3%BCttenwohld'),jdecode(''),'/108789.html','true',[],''],
	['PAGE','108831',jdecode('Standort+Schipphorst'),jdecode(''),'/108831.html','true',[],''],
	['PAGE','114599',jdecode('Standort+Stolpe'),jdecode(''),'/114599.html','true',[],''],
	['PAGE','123799',jdecode('Standort+Wankendorf'),jdecode(''),'/123799.html','true',[],''],
	['PAGE','121099',jdecode('Elterninformationen'),jdecode(''),'/121099.html','true',[],''],
	['PAGE','122999',jdecode('Elternbeirat'),jdecode(''),'/122999.html','true',[],''],
	['PAGE','103189',jdecode('Ganztagsbetreuung'),jdecode(''),'/103189.html','true',[],''],
	['PAGE','91689',jdecode('Bilder'),jdecode(''),'/91689.html','true',[],''],
	['PAGE','70689',jdecode('Termine'),jdecode(''),'/70689.html','true',[],''],
	['PAGE','70089',jdecode('Downloads%2FLinks'),jdecode(''),'/70089.html','true',[],''],
	['PAGE','114683',jdecode('Projekt+Medienp%C3%A4dagogik'),jdecode(''),'/114683.html','true',[],''],
	['PAGE','119199',jdecode('Projekt+Lernen+lernen'),jdecode(''),'/119199/home.html','true',[ 
		['PAGE','120799',jdecode('Inhalte+nach+Klassenstufen+'),jdecode(''),'/119199/120799.html','true',[],'']
	],''],
	['PAGE','119220',jdecode('Projekt+Faustlos'),jdecode(''),'/119220/home.html','true',[ 
		['PAGE','122599',jdecode('Bilder+zu+Faustlos'),jdecode(''),'/119220/122599.html','true',[],'']
	],''],
	['PAGE','36321',jdecode('Schul-+und+Pausenordnung'),jdecode(''),'/36321.html','true',[],''],
	['PAGE','10707',jdecode('Schulsozialarbeit'),jdecode(''),'/10707.html','true',[],''],
	['PAGE','22501',jdecode('F%C3%B6rderverein'),jdecode(''),'/22501.html','true',[],''],
	['PAGE','22506',jdecode('Elternschaft'),jdecode(''),'/22506.html','true',[],''],
	['PAGE','23606',jdecode('Kunst+am+Bau'),jdecode(''),'/23606.html','true',[],''],
	['PAGE','10717',jdecode('Schulprogramm'),jdecode(''),'/10717.html','true',[],''],
	['PAGE','10737',jdecode('Impressum'),jdecode(''),'/10737.html','true',[],''],
	['PAGE','63172',jdecode('Anfahrt'),jdecode(''),'/63172.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Pencil';
theSitetree.paletteFamily='2D3DA5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10725';
theSitetree.graphicsetId='10514';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Pencil',
				paletteFamily: 	'2D3DA5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10725',
				graphicsetId: 	'10514',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20111208-095711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91689',
internalId:  '',
customField: '20110930-115140'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '63172',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70089',
internalId:  '',
customField: '20100825-213404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20110901-125131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121099',
internalId:  '',
customField: '20110923-114645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108831',
internalId:  '',
customField: '20110905-141642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120799',
internalId:  '',
customField: '20110921-132925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108789',
internalId:  '',
customField: '20110905-135504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36321',
internalId:  '',
customField: '20110902-084555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119199',
internalId:  '',
customField: '20110906-084712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10707',
internalId:  '',
customField: '20120207-124647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20100511-132252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119220',
internalId:  '',
customField: '20110930-114520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22506',
internalId:  '',
customField: '20111202-113628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23606',
internalId:  '',
customField: '20041109-141607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10717',
internalId:  '',
customField: '20100611-105010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103189',
internalId:  '',
customField: '20120126-135525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122999',
internalId:  '',
customField: '20111025-141147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70689',
internalId:  '',
customField: '20110915-074943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10737',
internalId:  '',
customField: '20110503-213944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63172',
internalId:  '',
customField: '20061005-213907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114599',
internalId:  '',
customField: '20110905-135743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114683',
internalId:  '',
customField: '20120206-103246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122599',
internalId:  '',
customField: '20110930-114805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123799',
internalId:  '',
customField: '20111205-132359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124099',
internalId:  '',
customField: '20111207-124346'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IN2O4Q';
var companyName   = '';
var htmlTitle	  = 'Schule+Wankendorf';
var metaKeywords  = 'Schule%0AWankendorf%0AGrund-und+Hauptschule%0Agro%C3%9Fe+Landschule%0AThilo+Philipp%0ARenko+Oloff%0APeter+Preinfalck%0AD%C3%B6rte+A%C3%9Fmus%0ASabine+Vietzke';
var metaContents  = 'Grund-+und+Hauptschule+Wankendorf%0ASchule+Wankendorf%0AElisabeth+Hotze-Stula%0ADr.+Thilo+Philipp';
					                                                                    
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 */					                                                            

