/* [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','28601',jdecode('Home'),jdecode(''), jdecode('%2F28601.html'), 'true',[],'',''],
	['PAGE','34501',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F34501.html'), 'true',[],'',''],
	['PAGE','136801',jdecode('Kalender'),jdecode(''), jdecode('%2F136801.html'), 'true',[],'',''],
	['PAGE','26864',jdecode('Unser+Team'),jdecode(''), jdecode('%2F26864.html'), 'true',[],'',''],
	['PAGE','151401',jdecode('Kontaktformular'),jdecode(''), jdecode('%2F151401.html'), 'true',[],'',''],
	['PAGE','158301',jdecode('R+E+S+E+R+V+A+T+I+O+N+E+N'),jdecode(''), jdecode('%2F158301.html'), 'true',[],'',''],
	['PAGE','155901',jdecode('Kost%C3%BCmvermietung'),jdecode(''), jdecode('%2F155901.html'), 'true',[],'',''],
	['PAGE','26801',jdecode('Allerlei'),jdecode(''), jdecode('%2F26801.html'), 'true',[],'',''],
	['PAGE','47801',jdecode('Probefotos'),jdecode(''), jdecode('%2F47801.html'), 'true',[],'',''],
	['PAGE','39201',jdecode('Bisherige+Produktionen'),jdecode(''), jdecode('%2F39201.html'), 'true',[],'',''],
	['PAGE','7301',jdecode('Bildergalerie'),jdecode(''), jdecode('%2F7301.html'), 'true',[],'',''],
	['PAGE','137401',jdecode('Fotos+vom+Arbeitstag'),jdecode(''), jdecode('%2F137401.html'), 'true',[],'',''],
	['PAGE','166801',jdecode('+Fotos+vom+Film+Noir+Pinot'),jdecode(''), jdecode('%2F166801.html'), 'true',[],'',''],
	['PAGE','28306',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F28306%2Findex.html'), 'true',[ 
		['PAGE','28301',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F28306%2F28301.html'), 'false',[],'','']
	],'',''],
	['PAGE','145101',jdecode('Diverse++DVD%26%23x27%3Bs'),jdecode(''), jdecode('%2F145101.html'), 'true',[],'',''],
	['PAGE','112022',jdecode('Links'),jdecode(''), jdecode('%2F112022.html'), 'true',[],'',''],
	['PAGE','133001',jdecode('Impressum'),jdecode(''), jdecode('%2F133001.html'), 'true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Evident';
theSitetree.paletteFamily='4C7D51';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10433';
theSitetree.graphicsetId='10775';
theSitetree.contentColor='1F4D23';
theSitetree.contentBGColor='F9F9D6';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Evident',
				paletteFamily: 	'4C7D51',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10433',
				graphicsetId: 	'10775',
				contentColor: 	'1F4D23',
				contentBGColor: 'F9F9D6',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'4C7C50',
				e_color: 		'1F4D23',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '28601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-28306abw0x0inx3xd']={
webappId:    '1002',
documentId:  '28306',
internalId:  '28306abw0x0inx3xd',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20081226-122256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137401',
internalId:  '',
customField: '20110417-210336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136801',
internalId:  '',
customField: '20120128-152416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20090105-204818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20120220-112645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20111113-124217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39201',
internalId:  '',
customField: '20111127-211651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20111127-212818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26864',
internalId:  '',
customField: '20120128-151523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112022',
internalId:  '',
customField: '20110131-131408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28306',
internalId:  '',
customField: '20081226-123547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20070121-231430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151401',
internalId:  '',
customField: '20091029-190853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155901',
internalId:  '',
customField: '20100414-104216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158301',
internalId:  '',
customField: '20111127-211019'
};
webappMappings['7008']=webappMappings['7008-7877']={
webappId:    '7008',
documentId:  '151401',
internalId:  '7877',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145101',
internalId:  '',
customField: '20110527-120106'
};
webappMappings['7008']=webappMappings['7008-8878']={
webappId:    '7008',
documentId:  '158301',
internalId:  '8878',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166801',
internalId:  '',
customField: '20100723-220739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133001',
internalId:  '',
customField: '20090222-151828'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX3XD';
var companyName   = 'Die+etwas+andere+Theatergruppe';
var htmlTitle	  = 'Theatergruppe+Jenins%2C+die+etwas+andere+Theatergruppe';
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();
};

