/* [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','1914',jdecode('Home'),jdecode(''), jdecode('%2F1914.html'), 'true',[],'',''],
	['PAGE','2543',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F2543%2Findex.html'), 'true',[ 
		['PAGE','15501',jdecode('Allgemeines'),jdecode(''), jdecode('%2F2543%2F15501.html'), 'true',[],'',''],
		['PAGE','15522',jdecode('Vorstandschaft'),jdecode(''), jdecode('%2F2543%2F15522.html'), 'true',[],'','']
	],'',''],
	['PAGE','4901',jdecode('News'),jdecode(''), jdecode('%2F4901.html'), 'true',[],'',''],
	['PAGE','2501',jdecode('Aktuelles'),jdecode(''), jdecode('%2F2501%2Findex.html'), 'true',[ 
		['PAGE','4801',jdecode('Termine+2012'),jdecode(''), jdecode('%2F2501%2F4801.html'), 'true',[],'',''],
		['PAGE','23401',jdecode('Ausbildung'),jdecode(''), jdecode('%2F2501%2F23401.html'), 'true',[],'',''],
		['PAGE','23301',jdecode('Freibaddienst+2012'),jdecode(''), jdecode('%2F2501%2F23301.html'), 'true',[],'',''],
		['PAGE','4822',jdecode('Weiherplan+2012'),jdecode(''), jdecode('%2F2501%2F4822.html'), 'true',[],'','']
	],'',''],
	['PAGE','4201',jdecode('Bildergalerie'),jdecode(''), jdecode('%2F4201%2Findex.html'), 'true',[ 
		['PAGE','19201',jdecode('Eins%C3%A4tze+2008'),jdecode(''), jdecode('%2F4201%2F19201.html'), 'true',[],'',''],
		['PAGE','20401',jdecode('Eins%C3%A4tze+2009'),jdecode(''), jdecode('%2F4201%2F20401.html'), 'true',[],'',''],
		['PAGE','21901',jdecode('Eins%C3%A4tze+2010'),jdecode(''), jdecode('%2F4201%2F21901.html'), 'true',[],'',''],
		['PAGE','7001',jdecode('Behindertenschwimmen+2011'),jdecode(''), jdecode('%2F4201%2F7001.html'), 'true',[],'','']
	],'',''],
	['PAGE','3901',jdecode('SEG'),jdecode(''), jdecode('%2F3901%2Findex.html'), 'true',[ 
		['PAGE','4501',jdecode('Mitglieder'),jdecode(''), jdecode('%2F3901%2F4501.html'), 'true',[],'',''],
		['PAGE','4601',jdecode('Eins%C3%A4tze'),jdecode(''), jdecode('%2F3901%2F4601.html'), 'true',[],'','']
	],'',''],
	['PAGE','3922',jdecode('Technik'),jdecode(''), jdecode('%2F3922%2Findex.html'), 'true',[ 
		['PAGE','16401',jdecode('Fahrzeuge'),jdecode(''), jdecode('%2F3922%2F16401.html'), 'true',[],'',''],
		['PAGE','16422',jdecode('Boote'),jdecode(''), jdecode('%2F3922%2F16422.html'), 'true',[],'',''],
		['PAGE','16443',jdecode('Wachstationen'),jdecode(''), jdecode('%2F3922%2F16443.html'), 'true',[],'','']
	],'',''],
	['PAGE','36701',jdecode('Standort+der+WW+SR'),jdecode(''), jdecode('%2F36701.html'), 'true',[],'',''],
	['PAGE','5022',jdecode('Weiherpl%C3%A4ne'),jdecode(''), jdecode('%2F5022%2Findex.html'), 'true',[ 
		['PAGE','5043',jdecode('Atting%2FRain'),jdecode(''), jdecode('%2F5022%2F5043.html'), 'true',[],'',''],
		['PAGE','5064',jdecode('Parkstetten'),jdecode(''), jdecode('%2F5022%2F5064.html'), 'true',[],'','']
	],'',''],
	['PAGE','3943',jdecode('Forum'),jdecode(''), jdecode('%2F3943.html'), 'true',[],'',''],
	['PAGE','5001',jdecode('Interessante+Links'),jdecode(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','4701',jdecode('Download'),jdecode(''), jdecode('%2F4701%2Findex.html'), 'true',[ 
		['PAGE','27201',jdecode('Zeitungsberichte'),jdecode(''), jdecode('%2F4701%2F27201.html'), 'true',[],'',''],
		['PAGE','28101',jdecode('Rettungsschwimmabzeichen'),jdecode(''), jdecode('%2F4701%2F28101.html'), 'true',[],'','']
	],'',''],
	['PAGE','3301',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F3301.html'), 'true',[],'',''],
	['PAGE','4401',jdecode('Kontaktformular'),jdecode(''), jdecode('%2F4401.html'), 'true',[],'',''],
	['PAGE','3985',jdecode('Impressum'),jdecode(''), jdecode('%2F3985.html'), 'true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='000099';
theSitetree.keyvisualId='9239';
theSitetree.keyvisualName='kv1.swf';
theSitetree.fontsetId='17360';
theSitetree.graphicsetId='12755';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'DE'
};
var prodDef={
  wl_name: 'alfahosting',
  product: 'WSCSYSSSSLY0XWJH'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'000099',
				keyvisualId: 	'9239',
				keyvisualName: 	'kv1.swf',
				fontsetId: 		'17360',
				graphicsetId: 	'12755',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1914',
internalId:  '',
customField: '20120115-171218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2543',
internalId:  '',
customField: '20110701-131628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20120107-203223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20120107-203039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20120107-210323'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1914',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-3301aahs10ine1cr']={
webappId:    '1002',
documentId:  '3301',
internalId:  '3301aahs10ine1cr',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-aahs10ine1cr1308919269c']={
webappId:    '1003',
documentId:  '3943',
internalId:  'aahs10ine1cr1308919269c',
customField: 'de:DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20120107-203917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3922',
internalId:  '',
customField: '20110701-155611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3943',
internalId:  '',
customField: '20110613-120304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20120107-205530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3985',
internalId:  '',
customField: '20110613-125229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20110719-192528'
};
webappMappings['7008']=webappMappings['7008-8510']={
webappId:    '7008',
documentId:  '4401',
internalId:  '8510',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4401',
internalId:  '',
customField: '20110702-194255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4501',
internalId:  '',
customField: '20110702-181603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20111111-215659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20111111-215935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4822',
internalId:  '',
customField: '20111111-220222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20110717-143930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20110719-192434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20120107-205144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5043',
internalId:  '',
customField: '20110701-130535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20110701-130605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20110623-140914'
};
webappMappings['7060']=webappMappings['7060-6653718dc1ac0ff12c22a4506826924d']={
webappId:    '7060',
documentId:  '21901',
internalId:  '6653718dc1ac0ff12c22a4506826924d',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20110719-193027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20110723-183257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15522',
internalId:  '',
customField: '20110701-132801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20110701-155625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16422',
internalId:  '',
customField: '20110702-182017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16443',
internalId:  '',
customField: '20110702-182829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20120102-190402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20110702-194631'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '36701',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:true;'
};
webappMappings['7060']=webappMappings['7060-809f6b20224ddc73c2250a15cf6773c6']={
webappId:    '7060',
documentId:  '19201',
internalId:  '809f6b20224ddc73c2250a15cf6773c6',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20110702-183655'
};
webappMappings['7060']=webappMappings['7060-bf8c680188fb43a67e80a2d97b0554dd']={
webappId:    '7060',
documentId:  '20401',
internalId:  'bf8c680188fb43a67e80a2d97b0554dd',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20110702-190302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20110702-192311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36701',
internalId:  '',
customField: '20120107-211817'
};
var webAppHostname = 'cgi-wsc.alfahosting.de:80';
var canonHostname = 'wsc.alfahosting.de';
var accountId     = 'AAHS10INE1CR';
var companyName   = 'Wasserwacht+Straubing';
var htmlTitle	  = 'Wasserwacht+Straubing';
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();
};

