/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','4559',jdecode('Home+%2F+News'),jdecode(''),'/4559.html','true',[],'',''],
	['PAGE','13069',jdecode('Sekretariat'),jdecode(''),'/13069.html','true',[],'',''],
	['PAGE','16601',jdecode('Arbeitszeiterhebung'),jdecode(''),'/16601.html','true',[],'',''],
	['PAGE','5101',jdecode('Unsere+Grundlage'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','12964',jdecode('Organisation'),jdecode(''),'/12964.html','true',[],'',''],
	['PAGE','14301',jdecode('Gesch%C3%A4ftsleitung'),jdecode(''),'/14301.html','true',[],'',''],
	['PAGE','14322',jdecode('Regionalsektionen'),jdecode(''),'/14322/index.html','true',[ 
		['PAGE','15301',jdecode('Innerschwyz'),jdecode(''),'/14322/15301.html','true',[],'',''],
		['PAGE','15322',jdecode('Einsiedeln+%2F+H%C3%B6fe'),jdecode(''),'/14322/15322.html','true',[],'',''],
		['PAGE','15343',jdecode('March'),jdecode(''),'/14322/15343.html','true',[],'','']
	],'',''],
	['PAGE','14343',jdecode('Stufenvereine'),jdecode(''),'/14343/index.html','true',[ 
		['PAGE','15364',jdecode('Kindergarten'),jdecode(''),'/14343/15364.html','true',[],'',''],
		['PAGE','15385',jdecode('Primarschule'),jdecode(''),'/14343/15385.html','true',[],'',''],
		['PAGE','15406',jdecode('Technisches+Gestalten'),jdecode(''),'/14343/15406.html','true',[],'',''],
		['PAGE','15427',jdecode('Hauswirtschaft'),jdecode(''),'/14343/15427.html','true',[],'',''],
		['PAGE','15448',jdecode('SOK'),jdecode(''),'/14343/15448.html','true',[],'',''],
		['PAGE','15469',jdecode('PHZ'),jdecode(''),'/14343/15469.html','true',[],'',''],
		['PAGE','15490',jdecode('Legasthenie'),jdecode(''),'/14343/15490.html','true',[],'',''],
		['PAGE','15511',jdecode('Deutsch+als+Zweitsprache'),jdecode(''),'/14343/15511.html','true',[],'',''],
		['PAGE','15532',jdecode('Mittelschule'),jdecode(''),'/14343/15532.html','true',[],'',''],
		['PAGE','15553',jdecode('Heilp%C3%A4dagogik'),jdecode(''),'/14343/15553.html','true',[],'','']
	],'',''],
	['PAGE','14364',jdecode('Regionalkonferenzen'),jdecode(''),'/14364.html','true',[],'',''],
	['PAGE','14385',jdecode('Delegierte'),jdecode(''),'/14385.html','true',[],'',''],
	['PAGE','12901',jdecode('Agenda'),jdecode(''),'/12901.html','true',[],'',''],
	['PAGE','13006',jdecode('Dienstleistungen'),jdecode(''),'/13006.html','true',[],'',''],
	['PAGE','38801',jdecode('12+Gr%C3%BCnde'),jdecode(''),'/38801.html','true',[],'',''],
	['PAGE','39701',jdecode('Rundbriefe'),jdecode(''),'/39701/index.html','true',[ 
		['PAGE','112101',jdecode('Rundbriefe+10'),jdecode(''),'/39701/112101.html','true',[],'',''],
		['PAGE','77601',jdecode('Rundbriefe+09'),jdecode(''),'/39701/77601.html','true',[],'',''],
		['PAGE','61401',jdecode('Rundbriefe+08'),jdecode(''),'/39701/61401.html','true',[],'',''],
		['PAGE','13048',jdecode('Rundbriefe+07'),jdecode(''),'/39701/13048.html','true',[],'',''],
		['PAGE','40901',jdecode('Rundbriefe+06'),jdecode(''),'/39701/40901.html','true',[],'',''],
		['PAGE','40922',jdecode('Rundbriefe+05'),jdecode(''),'/39701/40922.html','true',[],'',''],
		['PAGE','40943',jdecode('Rundbriefe+04'),jdecode(''),'/39701/40943.html','true',[],'','']
	],'',''],
	['PAGE','110601',jdecode('Politische+Vorst%C3%B6sse'),jdecode(''),'/110601.html','true',[],'',''],
	['PAGE','12943',jdecode('Links'),jdecode(''),'/12943.html','true',[],'',''],
	['PAGE','12922',jdecode('Archiv'),jdecode(''),'/12922.html','true',[],'',''],
	['PAGE','64501',jdecode('Poolstunden'),jdecode(''),'/64501.html','true',[],'',''],
	['PAGE','13090',jdecode('Kontakt+mit+dem+LSZ'),jdecode(''),'/13090.html','true',[],'',''],
	['PAGE','42006',jdecode('G%C3%A4stebuch'),jdecode(''),'/42006/index.html','true',[ 
		['PAGE','42001',jdecode('Eintr%C3%A4ge'),jdecode(''),'/42006/42001.html','false',[],'','']
	],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='CC3300';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='86';
theSitetree.graphicsetId='107';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Global',
				paletteFamily: 	'CC3300',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'86',
				graphicsetId: 	'107',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'CB1C00',
				b_color: 		'FF9900',
				c_color: 		'000000',
				d_color: 		'EAEAEA',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-10574976']={
webappId:    '1501',
documentId:  '4559',
internalId:  '10574976',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13069',
internalId:  '',
customField: '20081129-132939'
};
webappMappings['1002']=webappMappings['1002-42006ahp010in2faw']={
webappId:    '1002',
documentId:  '42006',
internalId:  '42006ahp010in2faw',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20100814-080132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20091212-121501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20090621-114520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12964',
internalId:  '',
customField: '20090621-114544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20100330-195954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14322',
internalId:  '',
customField: '20090621-114700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100607-172638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15322',
internalId:  '',
customField: '20100106-193937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15343',
internalId:  '',
customField: '20070803-181409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14343',
internalId:  '',
customField: '20090621-114725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15364',
internalId:  '',
customField: '20080927-131701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15385',
internalId:  '',
customField: '20090609-075441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15406',
internalId:  '',
customField: '20091018-152932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15427',
internalId:  '',
customField: '20091018-152857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15448',
internalId:  '',
customField: '20100829-105622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15469',
internalId:  '',
customField: '20070803-185906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15490',
internalId:  '',
customField: '20080308-150850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15511',
internalId:  '',
customField: '20070803-191011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15532',
internalId:  '',
customField: '20070803-191130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15553',
internalId:  '',
customField: '20100118-094145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14364',
internalId:  '',
customField: '20090621-114806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14385',
internalId:  '',
customField: '20090621-114850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20100530-150243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13006',
internalId:  '',
customField: '20100331-152743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20091127-193600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39701',
internalId:  '',
customField: '20090625-112454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77601',
internalId:  '',
customField: '20100125-112110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61401',
internalId:  '',
customField: '20090220-085355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13048',
internalId:  '',
customField: '20080115-125258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20070803-121450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40922',
internalId:  '',
customField: '20070803-125752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40943',
internalId:  '',
customField: '20070730-175241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12943',
internalId:  '',
customField: '20090621-115120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12922',
internalId:  '',
customField: '20100114-123322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64501',
internalId:  '',
customField: '20080229-145207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13090',
internalId:  '',
customField: '20090625-112042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42006',
internalId:  '',
customField: '20070730-172146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42001',
internalId:  '',
customField: '20070730-172146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110601',
internalId:  '',
customField: '20091212-133600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112101',
internalId:  '',
customField: '20100707-154156'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'Ahp010IN2FAW';
var companyName   = 'LSZ+-+Lehrerinnen+und+Lehrer+Schwyz';
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) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	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();
};
