/* [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','263201',jdecode('Logicus-Primarschule'),jdecode(''),'/263201/home.html','true',[ 
		['PAGE','317501',jdecode('Fragen+und+Antworten'),jdecode(''),'/263201/317501.html','true',[],'']
	],''],
	['PAGE','13701',jdecode('Fr%C3%BChe+Lernf%C3%B6rderung'),jdecode(''),'/13701/home.html','true',[ 
		['PAGE','318301',jdecode('Fragen+und+Antworten'),jdecode(''),'/13701/318301.html','true',[],'']
	],''],
	['PAGE','254301',jdecode('Schulanf%C3%A4nger'),jdecode(''),'/254301.html','false',[],''],
	['PAGE','299701',jdecode('Vorteile+fr%C3%BCher+F%C3%B6rderung'),jdecode(''),'/299701.html','true',[],''],
	['PAGE','297201',jdecode('Sprache+f%C3%B6rdern'),jdecode(''),'/297201.html','true',[],''],
	['PAGE','292701',jdecode('Mathe+f%C3%B6rdern'),jdecode(''),'/292701.html','true',[],''],
	['PAGE','249601',jdecode('Lernmodule+Shop'),jdecode(''),'/249601.html','true',[],''],
	['PAGE','178101',jdecode('Lernspiele+Sprache'),jdecode(''),'/178101.html','true',[],''],
	['PAGE','185901',jdecode('Lernspiele+Mathe'),jdecode(''),'/185901.html','true',[],''],
	['PAGE','318001',jdecode('Kontakt'),jdecode(''),'/318001.html','true',[],''],
	['PAGE','13722',jdecode('Impressum'),jdecode(''),'/13722.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20120201-185209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318301',
internalId:  '',
customField: '20120130-183305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318001',
internalId:  '',
customField: '20120129-164947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178101',
internalId:  '',
customField: '20120131-123332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185901',
internalId:  '',
customField: '20120131-124226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '299701',
internalId:  '',
customField: '20120201-184805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254301',
internalId:  '',
customField: '20110608-180732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20110723-164712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249601',
internalId:  '',
customField: '20120123-171110'
};
webappMappings['4001']=webappMappings['4001-41732360']={
webappId:    '4001',
documentId:  '249601',
internalId:  '41732360',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '263201',
internalId:  '',
customField: '20120201-184628'
};
webappMappings['1008']=webappMappings['1008-47453915']={
webappId:    '1008',
documentId:  '318001',
internalId:  '47453915',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '317501',
internalId:  '',
customField: '20120125-134036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292701',
internalId:  '',
customField: '20120203-120353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297201',
internalId:  '',
customField: '20120203-115846'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN2WZT';
var companyName   = '';
var htmlTitle	  = 'Logicus-Primarschule.eu';
var metaKeywords  = 'Fr%C3%BChkindliche+Bildung%2C+Fr%C3%BChf%C3%B6rderung%2C+Sprachf%C3%B6rderung%2C+fr%C3%BChe+mathematische+F%C3%B6rderung%2C+rechnen+mit+Legosteinen%2C+ausgezeichnete+Lernmodule%2C+Vorschulbildung%2C+elementare+Bildung%2C+Bildung+von+Anfang+an%2C+Einschulung%2C+%C3%9Cbergang+Kita-Grundschule%2C+Schulreifef%C3%B6rderung%2C+Schulvorbereitungsjahr%2C+Lernberatung%2C+Lernbegleitung%2C+Elternbildung.';
var metaContents  = 'Logicus-Primarschule.eu+bietet+Bildungskonzepte+zur+fr%C3%BChen+Lernf%C3%B6rderung+von+Vorsch%C3%BClern+und+Schulanf%C3%A4ngern+an.+Die+Lernmodule+vermitteln+die+Grundlagen+zum+Lesen-%2C+Schreiben-+und+Rechnenlernen.+Sie+sind+in+Kindertageseinrichtungen+und+im+Elternhaus+einsetzbar.';
					                                                                    
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 */					                                                            

