/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','40315',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40315/home.html','true',[ 
		['PAGE','40384',jdecode('Anfahrt'),jdecode(''),'/40315/40384.html','true',[],'']
	],''],
	['PAGE','141835',jdecode('Aktuelles'),jdecode(''),'/141835.html','true',[],''],
	['PAGE','40453',jdecode('Kalender'),jdecode(''),'/40453.html','true',[],''],
	['PAGE','40410',jdecode('Schulinfos'),jdecode(''),'/40410.html','true',[],''],
	['PAGE','43353',jdecode('Schulprogramm'),jdecode(''),'/43353/home.html','true',[ 
		['PAGE','43796',jdecode('Jahresplanung'),jdecode(''),'/43353/43796.html','true',[],''],
		['PAGE','44417',jdecode('Konzepte'),jdecode(''),'/43353/44417.html','true',[],'']
	],''],
	['PAGE','55635',jdecode('Fotogalerie+'),jdecode(''),'/55635.html','true',[],''],
	['PAGE','42475',jdecode('F%C3%B6rderverein'),jdecode(''),'/42475.html','true',[],''],
	['PAGE','42492',jdecode('Eltern'),jdecode(''),'/42492.html','true',[],''],
	['PAGE','40419',jdecode('Kinderseite'),jdecode(''),'/40419/home.html','true',[ 
		['PAGE','76335',jdecode('Unsere+Traumschiffe%2CKlammertiere...'),jdecode(''),'/40419/76335.html','true',[],'']
	],''],
	['PAGE','123535',jdecode('Archiv10%2F11'),jdecode(''),'/123535/home.html','true',[ 
		['PAGE','105535',jdecode('Archiv+09%2F10...'),jdecode(''),'/123535/105535.html','true',[],''],
		['PAGE','82535',jdecode('Archiv+08%2F09'),jdecode(''),'/123535/82535.html','true',[],''],
		['PAGE','58535',jdecode('Archiv+07%2F08'),jdecode(''),'/123535/58535.html','true',[],'']
	],'']];
var siteelementCount=18;
theSitetree.topTemplateName='School';
theSitetree.paletteFamily='DEDBDB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10745';
theSitetree.graphicsetId='11099';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='DEDBDB';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'School',
				paletteFamily: 	'DEDBDB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10745',
				graphicsetId: 	'11099',
				contentColor: 	'000000',
				contentBGColor: 'DEDBDB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40384',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-2959275']={
webappId:    '1501',
documentId:  '44',
internalId:  '2959275',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20120111-204302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141835',
internalId:  '',
customField: '20120122-213719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42475',
internalId:  '',
customField: '20120103-164933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40315',
internalId:  '',
customField: '20110910-182347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40384',
internalId:  '',
customField: '20051020-105151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40453',
internalId:  '',
customField: '20111024-113844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40410',
internalId:  '',
customField: '20111024-163831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43353',
internalId:  '',
customField: '20071001-172336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43796',
internalId:  '',
customField: '20111022-084525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44417',
internalId:  '',
customField: '20061121-171752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42492',
internalId:  '',
customField: '20100926-183219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40419',
internalId:  '',
customField: '20110911-162204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123535',
internalId:  '',
customField: '20110707-211600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55635',
internalId:  '',
customField: '20111206-202058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58535',
internalId:  '',
customField: '20081117-203246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105535',
internalId:  '',
customField: '20100804-092739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82535',
internalId:  '',
customField: '20090626-090940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76335',
internalId:  '',
customField: '20090514-210639'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0INZUER';
var companyName   = 'Katholische+Grundschule+Garrel';
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 */					                                                            

