/* [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','4555',jdecode('....+jetzt+ist+Zukunft'),jdecode(''),'/4555/index.html','true',[ 
		['PAGE','60225',jdecode('update+2006'),jdecode(''),'/4555/60225.html','true',[],'',''],
		['PAGE','4956',jdecode('Aktuelles'),jdecode(''),'/4555/4956.html','true',[],'',''],
		['PAGE','61725',jdecode('Cathy+%26+Mark+MindControl'),jdecode(''),'/4555/61725.html','true',[],'',''],
		['PAGE','45725',jdecode('Vogelgrippe%2FH5N1-VirusL%C3%BCge+uvm.'),jdecode(''),'/4555/45725.html','true',[],'',''],
		['PAGE','45958',jdecode('Wissenschaftliche+Aufkl%C3%A4rung'),jdecode(''),'/4555/45958.html','true',[],'',''],
		['PAGE','51825',jdecode('Aufkl%C3%A4rung+Ist+Der+Schl%C3%BCssel'),jdecode(''),'/4555/51825.html','true',[],'',''],
		['PAGE','55225',jdecode('English+and+other+links'),jdecode(''),'/4555/55225.html','true',[],'',''],
		['PAGE','55692',jdecode('Hammerhart'),jdecode(''),'/4555/55692.html','true',[],'',''],
		['PAGE','57396',jdecode('Wortlos'),jdecode(''),'/4555/57396.html','true',[],'',''],
		['PAGE','59725',jdecode('V%C3%B6lker-Recht%2F+Umsetzung'),jdecode(''),'/4555/59725.html','true',[],'',''],
		['PAGE','66234',jdecode('Partei+Leben+Mit+Zukunft'),jdecode(''),'/4555/66234.html','true',[],'',''],
		['PAGE','4902',jdecode('Aktuelle+Ausstellungen%2F+Projekte'),jdecode(''),'/4555/4902.html','true',[],'',''],
		['PAGE','4983',jdecode('Buch+StePhan+Trilogie'),jdecode(''),'/4555/4983.html','true',[],'',''],
		['PAGE','48260',jdecode('Bilder+StePhan%2F+Laudationes'),jdecode(''),'/4555/48260.html','true',[],'',''],
		['PAGE','48705',jdecode('Photos+Gabriela+A.+B%C3%BCtzberger'),jdecode(''),'/4555/48705.html','true',[],'','']
	],'',''],
	['PAGE','8763',jdecode('StePhanorum-Curriculum-Vitae'),jdecode(''),'/8763.html','true',[],'',''],
	['PAGE','47705',jdecode('Paraguay+Projekt+f%C3%BCr+die+Zukunft+'),jdecode(''),'/47705.html','true',[],'',''],
	['PAGE','52129',jdecode('Gesucht'),jdecode(''),'/52129.html','true',[],'',''],
	['PAGE','7502',jdecode('Bewusstseinserweiterung'),jdecode(''),'/7502.html','true',[],'',''],
	['PAGE','5037',jdecode('Kontakt%2F+Voting'),jdecode(''),'/5037/index.html','true',[ 
		['PAGE','5064',jdecode('Lyrics%2F+Texte+StePhan'),jdecode(''),'/5037/5064.html','true',[],'',''],
		['PAGE','7529',jdecode('Produkte%2C+Leistungen'),jdecode(''),'/5037/7529.html','true',[],'',''],
		['PAGE','7556',jdecode('Palo+Santo+-+R%C3%A4ucherwerk'),jdecode(''),'/5037/7556.html','true',[],'',''],
		['PAGE','7583',jdecode('Der+Neue+Mensch+CD+'),jdecode(''),'/5037/7583.html','true',[],'',''],
		['PAGE','7610',jdecode('StePhan+and+Rebel+CD%2C+AGENDA+21+-+Hymne+'),jdecode(''),'/5037/7610.html','true',[],'','']
	],'',''],
	['PAGE','8284',jdecode('G%C3%A4stebuch+f%C3%BCr+alle+Reingucker%21%21%21%21'),jdecode(''),'/8284/index.html','true',[ 
		['PAGE','8285',jdecode('Eintr%C3%A4ge'),jdecode(''),'/8284/8285.html','false',[],'','']
	],'',''],
	['PAGE','22295',jdecode('Anfahrt'),jdecode(''),'/22295.html','true',[],'',''],
	['PAGE','22666',jdecode('R%C3%BCckfahrt'),jdecode(''),'/22666.html','true',[],'',''],
	['PAGE','69987',jdecode('Weblog'),jdecode(''),'/69987.html','true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='4D4CD2';
theSitetree.keyvisualId='605';
theSitetree.keyvisualName='pflanzen.jpg';
theSitetree.fontsetId='124';
theSitetree.graphicsetId='140';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Kreis',
				paletteFamily: 	'4D4CD2',
				keyvisualId: 	'605',
				keyvisualName: 	'pflanzen.jpg',
				fontsetId: 		'124',
				graphicsetId: 	'140',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'4D4CD2',
				b_color: 		'7794F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-8284ABW0X0INX3YQ']={
webappId:    '1002',
documentId:  '8284',
internalId:  '8284ABW0X0INX3YQ',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1950410']={
webappId:    '1501',
documentId:  '4555',
internalId:  '1950410',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '22295',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '22666',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1003']=webappMappings['1003-abw0x0inx3yq10c64c12b24']={
webappId:    '1003',
documentId:  '4956',
internalId:  'abw0x0inx3yq10c64c12b24',
customField: 'de:CH:'
};
webappMappings['7005']=webappMappings['7005-523']={
webappId:    '7005',
documentId:  '5037',
internalId:  '523',
customField: 'language:de;country:CH;'
};
webappMappings['7005']=webappMappings['7005-524']={
webappId:    '7005',
documentId:  '13063',
internalId:  '524',
customField: 'language:de;country:CH;'
};
webappMappings['1003']=webappMappings['1003-abw0x0inx3yq10c64c12b24']={
webappId:    '1003',
documentId:  '13093',
internalId:  'abw0x0inx3yq10c64c12b24',
customField: 'de:CH:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20060929-043325'
};
webappMappings['7050']=webappMappings['7050-1387']={
webappId:    '7050',
documentId:  '69987',
internalId:  '1387',
customField: 'language:de;country:CH;'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX3YQ';
var companyName   = 'S+++t+++e+++P+++h+++a+++n+++o+++r+++u+++m';
var htmlTitle	  = 'Vogelgrippe%2C+H5N1%2C+Influenza%2C+Viren%2C+Virus%2C+Viri%2C+AIDS%2C+HIV%2C+Mind+Control%2C+StePhan%2C+StePhanorum%2C+Kunst%2C+Aufkl%C3%A4rung%2C+Freiheit%2C+Zeitlinie%2C+All%2C+Universum%2C+Universen%2C+Reinkarnation%2C+Autark%2C+Alternativ%2C+Selbst%C3%A4ndig%2C+Bewusst-Sein%2C+Aufkl%C3%A4rung%2C+Eigenst%C3%A4ndigkeit%2C';
var metaKeywords  = 'Vogelgrippe%2C+H5N1%2C+Influenza%2C+Viren%2C+Virus%2C+Viri%2C+AIDS%2C+HIV%2C+Mind+Control%2C+Bewusstsein%2CEntwicklung%2CPsychic%2CBeratung%2CMetaphysik%2CAstrologie%2CStePhan%2C+StePhan+B%C3%BCtzberger%2CSeminare%2C+Workshop%2C+Einzelberatung%2C+Esoterik%2C+Jenseits%2CKulturRevolution%2CHolistik%2C+holistisch%2CZukunft%2C+Leben%2C+Gay%2C+GayWorld%2C+Rechtsstaat%2CStePhan%2C+StePhanorum%2C+Kunst%2C+%C3%9Cberleben%2C+Existenz%2C+Reinkarnation%2C+Autark%2C+Alternativ%2C+Selbst%C3%A4ndig%2C+Bewusst-Sein%2C+Aufkl%C3%A4rung%2C+Eigenst%C3%A4ndigkeit%2C+Leben%2C+Zukunft%2C+Genozid%2CAIDS%2C+Vogelgrippe%2CInfluenza%2C+H5N1%2C+V%C3%B6lkermord.+Gay%2C+GayWorld%2C+was+Bunte+Welt+meint+und+Vielfalt%2C+Cathy+OBrien%2C+Bewusstseinskontrolle%2C+Mark+Phillips%2C+Grundrechte%2C+Freiheit%2C+Kultur%2C+Kulturrevolution%2C+Evolution%2C+Kulturevolution%2C+Recht%2C+Klarheit%2C+Demokratie%2CFreiheit%2CEigenst%C3%A4ndigkeit';
var metaContents  = 'Vogelgrippe%2C+H5N1%2C+Influenza%2C+Viren%2C+Virus%2C+Viri%2C+AIDS%2C+HIV%2C+Mind%2C+Control%2CBewusstsein%2CEntwicklung%2CPsychic%2CBeratung%2CMetaphysik%2CAstrologie%2C+Zukunft%2C+Esoterik%2C+Leben%2C+Gay%2C+GayWorld%2C+Rechtsstaat%2C+Demokratie%2C+Freiheit%2C+Eigenst%C3%A4ndigkeitStePhan%2C+StePhanorum%2C+Kunst%2C+%C3%9Cberleben%2C+Existenz%2C+Reinkarnation%2C+Autark%2C+Alternativ%2C+Selbst%C3%A4ndig%2C+Bewusst-Sein%2C+Aufkl%C3%A4rung%2C+Eigenst%C3%A4ndigkeit%2C+Leben%2C+Zukunft%2C+Genozid%2C+V%C3%B6lkermord.+Gay%2C+GayWorld%2C+was+Bunte+Welt+meint+und+Vielfalt%2C+Cathy+OBrien%2C+Bewusstseinskontrolle%2C+Mark+Phillips%2C+Grundrechte%2C+Freiheit%2C+Kultur%2C+Kulturrevolution%2C+Evolution%2C+Kulturevolution%2C+Recht%2C+Klarheit%2C';
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();
};
