/* [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','2543',jdecode('unangenehme+wahrheiten'),jdecode(''), jdecode('%2F2543.html'), 'true',[],'',''],
	['PAGE','73132',jdecode('vergangene+hochkulturen+'),jdecode(''), jdecode('%2F73132.html'), 'true',[],'',''],
	['PAGE','93301',jdecode('verbotene+aerchologie+'),jdecode(''), jdecode('%2F93301.html'), 'true',[],'',''],
	['PAGE','76301',jdecode('riesen%3F'),jdecode(''), jdecode('%2F76301.html'), 'true',[],'',''],
	['PAGE','66701',jdecode('pr%C3%A4-+astronautik+%26+ufo'),jdecode(''), jdecode('%2F66701.html'), 'true',[],'',''],
	['PAGE','161001',jdecode('mikro-+%26+makrokosmos'),jdecode(''), jdecode('%2F161001.html'), 'true',[],'',''],
	['PAGE','63601',jdecode('hintergundpolitik'),jdecode(''), jdecode('%2F63601.html'), 'true',[],'',''],
	['PAGE','73201',jdecode('logen%2Fgeheimb%C3%BCnde%2Fsekten'),jdecode(''), jdecode('%2F73201.html'), 'true',[],'',''],
	['PAGE','66101',jdecode('wetter+manipulation'),jdecode(''), jdecode('%2F66101.html'), 'true',[],'',''],
	['PAGE','65801',jdecode('volks+vergiftung'),jdecode(''), jdecode('%2F65801.html'), 'true',[],'',''],
	['PAGE','66401',jdecode('mindcontrol'),jdecode(''), jdecode('%2F66401.html'), 'true',[],'',''],
	['PAGE','129201',jdecode('totale+%C3%BCberwachung'),jdecode(''), jdecode('%2F129201.html'), 'true',[],'',''],
	['PAGE','195922',jdecode('gender+mainstreaming'),jdecode(''), jdecode('%2F195922.html'), 'true',[],'',''],
	['PAGE','68722',jdecode('meinungsfreiheit'),jdecode(''), jdecode('%2F68722.html'), 'true',[],'',''],
	['PAGE','76501',jdecode('finanzsytem'),jdecode(''), jdecode('%2F76501.html'), 'true',[],'',''],
	['PAGE','134301',jdecode('umweltverschmutzung'),jdecode(''), jdecode('%2F134301.html'), 'true',[],'',''],
	['PAGE','80922',jdecode('klimakrise+'),jdecode(''), jdecode('%2F80922.html'), 'true',[],'',''],
	['PAGE','87201',jdecode('die+europ%C3%A4ische+union'),jdecode(''), jdecode('%2F87201.html'), 'true',[],'',''],
	['PAGE','73322',jdecode('psi+%26+paranormales'),jdecode(''), jdecode('%2F73322.html'), 'true',[],'',''],
	['PAGE','95601',jdecode('kornkreise'),jdecode(''), jdecode('%2F95601.html'), 'true',[],'',''],
	['PAGE','111501',jdecode('vegetarismus'),jdecode(''), jdecode('%2F111501.html'), 'true',[],'',''],
	['PAGE','87501',jdecode('spiritualit%C3%A4t'),jdecode(''), jdecode('%2F87501.html'), 'true',[],'',''],
	['PAGE','86922',jdecode('bewusstsein'),jdecode(''), jdecode('%2F86922.html'), 'true',[],'',''],
	['PAGE','132101',jdecode('transformation+2012'),jdecode(''), jdecode('%2F132101.html'), 'true',[],'',''],
	['PAGE','170101',jdecode('involution%2Fevolution'),jdecode(''), jdecode('%2F170101.html'), 'true',[],'',''],
	['PAGE','5701',jdecode('literatur+tips'),jdecode(''), jdecode('%2F5701.html'), 'true',[],'',''],
	['PAGE','106501',jdecode('was+kann+ich+tun%3F'),jdecode(''), jdecode('%2F106501.html'), 'true',[],'',''],
	['PAGE','93322',jdecode('religion'),jdecode(''), jdecode('%2F93322.html'), 'true',[],'',''],
	['PAGE','204222',jdecode('der+weg+zum+gl%C3%BCck%21'),jdecode(''), jdecode('%2F204222.html'), 'true',[],'',''],
	['PAGE','68701',jdecode('alternativen%2Fl%C3%B6sungen'),jdecode(''), jdecode('%2F68701.html'), 'true',[],'',''],
	['PAGE','153632',jdecode('%C3%BCber+mich'),jdecode(''), jdecode('%2F153632.html'), 'true',[],'',''],
	['PAGE','186201',jdecode('haftungsausschluss'),jdecode(''), jdecode('%2F186201.html'), 'true',[],'',''],
	['PAGE','145801',jdecode(''),jdecode(''), jdecode('%2F145801.html'), 'true',[],'',''],
	['PAGE','2401',jdecode(''),jdecode(''), jdecode('%2F2401.html'), 'true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='CFCFCF';
theSitetree.keyvisualId='11074';
theSitetree.keyvisualName='kv_11074.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13799';
theSitetree.contentColor='342500';
theSitetree.contentBGColor='CFCFCF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'genotec',
  product: 'WSCSYSSSSLY0XYAO'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'CFCFCF',
				keyvisualId: 	'11074',
				keyvisualName: 	'kv_11074.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13799',
				contentColor: 	'342500',
				contentBGColor: 'CFCFCF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20111206-095014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2543',
internalId:  '',
customField: '20110114-131944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20111210-135307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195922',
internalId:  '',
customField: '20110124-232733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63601',
internalId:  '',
customField: '20110114-121722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65801',
internalId:  '',
customField: '20110124-235035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66101',
internalId:  '',
customField: '20110114-091000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66701',
internalId:  '',
customField: '20110114-130458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66401',
internalId:  '',
customField: '20110124-233810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134301',
internalId:  '',
customField: '20110114-103540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68722',
internalId:  '',
customField: '20110125-100709'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '204222',
internalId:  '-',
customField: '20111210-142626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20111210-142249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170101',
internalId:  '',
customField: '20110111-152908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73132',
internalId:  '',
customField: '20110114-074209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73201',
internalId:  '',
customField: '20110114-090230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73322',
internalId:  '',
customField: '20110114-104216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161001',
internalId:  '',
customField: '20110111-225136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76301',
internalId:  '',
customField: '20110114-134947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76501',
internalId:  '',
customField: '20110125-102733'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80922',
internalId:  '',
customField: '20110114-104015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186201',
internalId:  '',
customField: '20110112-124513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132101',
internalId:  '',
customField: '20110225-135210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87201',
internalId:  '',
customField: '20110111-164837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86922',
internalId:  '',
customField: '20110114-131103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87501',
internalId:  '',
customField: '20110228-225511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93301',
internalId:  '',
customField: '20110114-075647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93322',
internalId:  '',
customField: '20111210-140424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95601',
internalId:  '',
customField: '20110111-163858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106501',
internalId:  '',
customField: '20110114-115312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111501',
internalId:  '',
customField: '20110114-104734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129201',
internalId:  '',
customField: '20110114-100922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145801',
internalId:  '',
customField: '20111206-094950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153632',
internalId:  '',
customField: '20111210-143510'
};
var webAppHostname = 'cgi.wsc.genotec.ch:80';
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT010IN25U1';
var companyName   = 'WE+CHANGE+THE+WORLD';
var htmlTitle	  = 'wahrheitsbewegung';
var metaKeywords  = 'wahrheit+religion+spirituallit%C3%A4t+11.9.2001+verschw%C3%B6rung+transformation+freie+energie+ufo+';
var metaContents  = 'wahrheit+religion+spirituallit%C3%A4t+11.9.2001+verschw%C3%B6rung+transformation+freie+energie+ufo+';
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();
};

