/* [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','3001',jdecode('Home'),jdecode(''), jdecode('%2F3001%2Findex.html'), 'true',[ 
		['PAGE','3801',jdecode('News'),jdecode(''), jdecode('%2F3001%2F3801.html'), 'true',[],'','']
	],'',''],
	['PAGE','3052',jdecode('Angebote'),jdecode(''), jdecode('%2F3052%2Findex.html'), 'true',[ 
		['PAGE','3073',jdecode('Massagen+und+K%C3%B6rperarbeit'),jdecode(''), jdecode('%2F3052%2F3073.html'), 'true',[],'',''],
		['PAGE','3115',jdecode('Beratung+und+Begleitung'),jdecode(''), jdecode('%2F3052%2F3115.html'), 'true',[],'',''],
		['PAGE','3199',jdecode('Rituale+und+Natur-Erlebnisse'),jdecode(''), jdecode('%2F3052%2F3199.html'), 'true',[],'','']
	],'',''],
	['PAGE','6701',jdecode('Seminare'),jdecode(''), jdecode('%2F6701%2Findex.html'), 'true',[ 
		['PAGE','23501',jdecode('Heilungs-Trommeln'),jdecode(''), jdecode('%2F6701%2F23501.html'), 'true',[],'',''],
		['PAGE','25401',jdecode('Massage+des+Energie-K%C3%B6rpers'),jdecode(''), jdecode('%2F6701%2F25401.html'), 'true',[],'',''],
		['PAGE','25422',jdecode('Kundalini+'),jdecode(''), jdecode('%2F6701%2F25422.html'), 'true',[],'',''],
		['PAGE','29701',jdecode('Raum+f%C3%BCr+Heilung'),jdecode(''), jdecode('%2F6701%2F29701.html'), 'true',[],'',''],
		['PAGE','34001',jdecode('Lesen+in+der+Akasha-Chronik'),jdecode(''), jdecode('%2F6701%2F34001.html'), 'true',[],'','']
	],'',''],
	['PAGE','3220',jdecode('Infos'),jdecode(''), jdecode('%2F3220%2Findex.html'), 'true',[ 
		['PAGE','3241',jdecode('zu+mir'),jdecode(''), jdecode('%2F3220%2F3241.html'), 'true',[],'',''],
		['PAGE','3262',jdecode('Ausbildung+Weiterbildung'),jdecode(''), jdecode('%2F3220%2F3262.html'), 'true',[],'',''],
		['PAGE','3283',jdecode('Preise'),jdecode(''), jdecode('%2F3220%2F3283.html'), 'true',[],'',''],
		['PAGE','3304',jdecode('Praxis'),jdecode(''), jdecode('%2F3220%2F3304.html'), 'true',[],'',''],
		['PAGE','3822',jdecode('Arbeitsweise+und+Werkzeuge'),jdecode(''), jdecode('%2F3220%2F3822.html'), 'true',[],'','']
	],'',''],
	['PAGE','3325',jdecode('Kontakt'),jdecode(''), jdecode('%2F3325.html'), 'true',[],'',''],
	['PAGE','28301',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F28301.html'), 'true',[],'',''],
	['PAGE','29001',jdecode('Suche'),jdecode(''), jdecode('%2F29001.html'), 'true',[],'',''],
	['PAGE','3843',jdecode('Links'),jdecode(''), jdecode('%2F3843.html'), 'false',[],'',''],
	['PAGE','3346',jdecode('Impressum'),jdecode(''), jdecode('%2F3346.html'), 'false',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Phase';
theSitetree.paletteFamily='CBDD6C';
theSitetree.keyvisualId='12151';
theSitetree.keyvisualName='kv_12151.jpg';
theSitetree.fontsetId='33326';
theSitetree.graphicsetId='14199';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='888888';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'webland',
  product: 'WSCSYSSSSLY0XFY2'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Phase',
				paletteFamily: 	'CBDD6C',
				keyvisualId: 	'12151',
				keyvisualName: 	'kv_12151.jpg',
				fontsetId: 		'33326',
				graphicsetId: 	'14199',
				contentColor: 	'FFFFFF',
				contentBGColor: '888888',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20120121-232646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3052',
internalId:  '',
customField: '20111016-212053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3220',
internalId:  '',
customField: '20110314-161108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3199',
internalId:  '',
customField: '20111121-080537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3801',
internalId:  '',
customField: '20120112-211041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3241',
internalId:  '',
customField: '20120121-235148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3262',
internalId:  '',
customField: '20120121-231106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3325',
internalId:  '',
customField: '20110216-145440'
};
webappMappings['7008']=webappMappings['7008-10472']={
webappId:    '7008',
documentId:  '3325',
internalId:  '10472',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3843',
internalId:  '',
customField: '20120112-220245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20111207-173041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20120131-214601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3073',
internalId:  '',
customField: '20110209-222623'
};
webappMappings['1002']=webappMappings['1002-28301awb010in22jq']={
webappId:    '1002',
documentId:  '28301',
internalId:  '28301awb010in22jq',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25422',
internalId:  '',
customField: '20120112-083647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3115',
internalId:  '',
customField: '20120121-233819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20120112-200421'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3283',
internalId:  '',
customField: '20110304-085713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3304',
internalId:  '',
customField: '20120112-212532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3822',
internalId:  '',
customField: '20120112-214419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3346',
internalId:  '',
customField: '20120112-221820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20111207-174506'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '29001',
internalId:  'search',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20111026-160621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20120131-214443'
};
webappMappings['1501']=webappMappings['1501-9597535']={
webappId:    '1501',
documentId:  '3001',
internalId:  '9597535',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20120112-084344'
};
var webAppHostname = 'wsc-app.webland.ch:80';
var canonHostname = 'wsc01.webland.ch';
var accountId     = 'AWB010IN22JQ';
var companyName   = 'Hawaii-Massage+und+Coaching';
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();
};

