/* [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','65301',jdecode('Start'),jdecode(''),'/65301.html','true',[],''],
	['PAGE','39994',jdecode('Aktuell'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41323',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41323/home.html','true',[ 
		['PAGE','41332',jdecode('Unsere+Sch%C3%BClerinnen+und+Sch%C3%BCler'),jdecode(''),'/41323/41332.html','true',[],''],
		['PAGE','41341',jdecode('Unser+Kollegium'),jdecode(''),'/41323/41341.html','true',[],''],
		['PAGE','41359',jdecode('FSJ'),jdecode(''),'/41323/41359.html','true',[],''],
		['PAGE','46163',jdecode('Praktikum'),jdecode(''),'/41323/46163.html','true',[],''],
		['PAGE','41350',jdecode('Unterricht'),jdecode(''),'/41323/41350.html','true',[],''],
		['PAGE','45809',jdecode('Schulische+Schwerpunkte'),jdecode(''),'/41323/45809.html','true',[],''],
		['PAGE','46172',jdecode('Unser+Name'),jdecode(''),'/41323/46172.html','true',[],''],
		['PAGE','66501',jdecode('H%C3%A4ufige+Fragen'),jdecode(''),'/41323/66501.html','true',[],'']
	],''],
	['PAGE','45632',jdecode('Elternseiten'),jdecode(''),'/45632.html','true',[],''],
	['PAGE','94301',jdecode('Sch%C3%BClerzeitung'),jdecode(''),'/94301.html','true',[],''],
	['PAGE','41386',jdecode('Termine'),jdecode(''),'/41386.html','true',[],''],
	['PAGE','45598',jdecode('G%C3%A4stebuch'),jdecode(''),'/45598/home.html','true',[ 
		['PAGE','45599',jdecode('Mein+Beitrag'),jdecode(''),'/45598/45599.html','true',[],'']
	],''],
	['PAGE','46020',jdecode('K%C3%B6-Ju+Intern'),jdecode(''),'/46020.html','true',[],''],
	['PAGE','41368',jdecode('Kontakt'),jdecode(''),'/41368/home.html','true',[ 
		['PAGE','45990',jdecode('Anfahrt'),jdecode(''),'/41368/45990.html','true',[],'']
	],''],
	['PAGE','41395',jdecode('Impressum'),jdecode(''),'/41395.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='FF9F21';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='418';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FF9F21';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'FF9F21',
				keyvisualId: 	'2224',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'418',
				contentColor: 	'FFFFFF',
				contentBGColor: 'FF9F21',
				a_color: 		'FF9F21',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				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:  '65301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20120205-174856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41323',
internalId:  '',
customField: '20100109-122258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41332',
internalId:  '',
customField: '20100104-095854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41341',
internalId:  '',
customField: '20110912-143726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41350',
internalId:  '',
customField: '20100922-080610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41359',
internalId:  '',
customField: '20110304-092450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41368',
internalId:  '',
customField: '20090113-095949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65301',
internalId:  '',
customField: '20110621-095455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41386',
internalId:  '',
customField: '20111116-115742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41395',
internalId:  '',
customField: '20090113-091825'
};
webappMappings['1002']=webappMappings['1002-45599atoix0i7h62s']={
webappId:    '1002',
documentId:  '45599',
internalId:  '45599atoix0i7h62s',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-45599atoix0i7h62s']={
webappId:    '1002',
documentId:  '45598',
internalId:  '45599atoix0i7h62s',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45599',
internalId:  '',
customField: '20071120-161449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45598',
internalId:  '',
customField: '20100930-092740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45632',
internalId:  '',
customField: '20120127-112826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94301',
internalId:  '',
customField: '20120207-133624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45809',
internalId:  '',
customField: '20090401-153544'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '45990',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45990',
internalId:  '',
customField: '20080820-155540'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '46020',
internalId:  '',
customField: ''
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46020',
internalId:  '',
customField: '20111007-110301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46163',
internalId:  '',
customField: '20110321-132937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46172',
internalId:  '',
customField: '20080406-132944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66501',
internalId:  '',
customField: '20100109-123036'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7H62S';
var companyName   = 'K%C3%B6nigin-Juliana-Schule';
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 */					                                                            

