/* [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','13701',jdecode('Home'),jdecode(''),'/13701/home.html','true',[ 
		['PAGE','25918',jdecode('Home+%28Folgeseite%29'),jdecode(''),'/13701/25918.html','false',[],'']
	],''],
	['PAGE','13707',jdecode('Aufnahme'),jdecode(''),'/13707.html','true',[],''],
	['PAGE','13712',jdecode('Aktuelles'),jdecode(''),'/13712.html','true',[],''],
	['PAGE','30917',jdecode('Termine'),jdecode(''),'/30917.html','true',[],''],
	['PAGE','160217',jdecode('Bildergalerie'),jdecode(''),'/160217.html','true',[],''],
	['PAGE','13717',jdecode('Schulleitung'),jdecode(''),'/13717.html','true',[],''],
	['PAGE','13722',jdecode('Lehrer'),jdecode(''),'/13722/home.html','true',[ 
		['PAGE','35917',jdecode('Sprechstunden'),jdecode(''),'/13722/35917.html','true',[],'']
	],''],
	['PAGE','13727',jdecode('Sch%C3%BCler'),jdecode(''),'/13727.html','true',[],''],
	['PAGE','13732',jdecode('Organisation'),jdecode(''),'/13732.html','true',[],''],
	['PAGE','13747',jdecode('Schulprofil'),jdecode(''),'/13747/home.html','true',[ 
		['PAGE','34717',jdecode('Stundentafel'),jdecode(''),'/13747/34717.html','true',[],'']
	],''],
	['PAGE','13742',jdecode('2-stufige+WS'),jdecode(''),'/13742.html','true',[],''],
	['PAGE','164817',jdecode('Fachbereiche'),jdecode(''),'/164817/home.html','true',[ 
		['PAGE','164838',jdecode('Englisch'),jdecode(''),'/164817/164838.html','true',[],''],
		['PAGE','167617',jdecode('%C3%9Cbungsfirmen'),jdecode(''),'/164817/167617.html','true',[],''],
		['PAGE','176917',jdecode('Projektunterricht'),jdecode(''),'/164817/176917.html','true',[],'']
	],''],
	['PAGE','156617',jdecode('F%C3%B6rderverein'),jdecode(''),'/156617.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Spiegelwand';
theSitetree.paletteFamily='679DD1';
theSitetree.keyvisualId='10909';
theSitetree.keyvisualName='kv_10909.jpg';
theSitetree.fontsetId='31886';
theSitetree.graphicsetId='13693';
theSitetree.contentColor='213B55';
theSitetree.contentBGColor='8AA269';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Spiegelwand',
				paletteFamily: 	'679DD1',
				keyvisualId: 	'10909',
				keyvisualName: 	'kv_10909.jpg',
				fontsetId: 		'31886',
				graphicsetId: 	'13693',
				contentColor: 	'213B55',
				contentBGColor: '8AA269',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0in3mjl104a81a31db']={
webappId:    '1001',
documentId:  '13701',
internalId:  'atoix0in3mjl104a81a31db',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0in3mjl104a81a31db']={
webappId:    '1001',
documentId:  '25918',
internalId:  'atoix0in3mjl104a81a31db',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25918',
internalId:  '',
customField: '20050623-092946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20120105-121106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13707',
internalId:  '',
customField: '20120121-115645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13712',
internalId:  '',
customField: '20120208-174138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160217',
internalId:  '',
customField: '20120218-134233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30917',
internalId:  '',
customField: '20120105-121005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13717',
internalId:  '',
customField: '20110310-184652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20110920-105525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35917',
internalId:  '',
customField: '20111109-175225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13727',
internalId:  '',
customField: '20120121-120004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13732',
internalId:  '',
customField: '20111128-161809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167617',
internalId:  '',
customField: '20111128-164838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13742',
internalId:  '',
customField: '20110113-172937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13747',
internalId:  '',
customField: '20071012-171312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34717',
internalId:  '',
customField: '20070924-210701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164817',
internalId:  '',
customField: '20101111-165818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164838',
internalId:  '',
customField: '20111023-111346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156617',
internalId:  '',
customField: '20110627-172733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176917',
internalId:  '',
customField: '20111027-175322'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IN3MJL';
var companyName   = 'Staatliche+Wirtschaftsschule++Dinkelsb%C3%BChl';
var htmlTitle	  = 'Wirtschaftsschule+Dinkelsb%C3%BChl';
var metaKeywords  = 'Ihr+Name%2CSchule%2CHauptschule%2CAbitur%2C+Gesamtschule%2CGymnasium%2Cschule%2C+Azubis%2CJugendliche%2CKinder%2CSchuuml%3Bler%2CStudenten%2CLehrer%2CP%C3%A4dagogen%2CRealschule%2C+Schulklassen++';
var metaContents  = 'Besuchen+Sie+die+Website+unserer+Schule.+Hier+finden+Sie+Bilder%2C+Stundenpl%C3%A4ne+und+Informationen+zur+Geschichte+unserer+Schule++';
					                                                                    
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 */					                                                            

