/* [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','2101',jdecode('Home'),jdecode(''), jdecode('%2F2101.html'), 'true',[],'',''],
	['PAGE','42412',jdecode('Diverse+Seminare'),jdecode(''), jdecode('%2F42412.html'), 'true',[],'',''],
	['PAGE','6301',jdecode('Matrix-Impuls-Seminare'),jdecode(''), jdecode('%2F6301%2Findex.html'), 'true',[ 
		['PAGE','7301',jdecode('Was+ist+Matrix-Impuls'),jdecode(''), jdecode('%2F6301%2F7301.html'), 'true',[],'',''],
		['PAGE','11401',jdecode('Termine+%26+Buchung'),jdecode(''), jdecode('%2F6301%2F11401.html'), 'true',[],'','']
	],'',''],
	['PAGE','2194',jdecode('Energetisches+Heilen'),jdecode(''), jdecode('%2F2194.html'), 'true',[],'',''],
	['PAGE','26712',jdecode('Feedbacks+Seminare'),jdecode(''), jdecode('%2F26712.html'), 'true',[],'',''],
	['PAGE','41612',jdecode('Matrix-Impuls-Behandlung'),jdecode(''), jdecode('%2F41612.html'), 'true',[],'',''],
	['PAGE','2215',jdecode('Rolphe+Alcide+Grima%C3%AEtre'),jdecode(''), jdecode('%2F2215.html'), 'true',[],'',''],
	['PAGE','22512',jdecode('Erfahrungsberichte'),jdecode(''), jdecode('%2F22512.html'), 'true',[],'',''],
	['PAGE','2257',jdecode('Links'),jdecode(''), jdecode('%2F2257.html'), 'true',[],'',''],
	['PAGE','2278',jdecode('Kontakt+%2F+Anmeldung'),jdecode(''), jdecode('%2F2278.html'), 'true',[],'',''],
	['PAGE','8701',jdecode('Wegbeschreibung'),jdecode(''), jdecode('%2F8701.html'), 'true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='0000A5';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21F'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10894',
				contentColor: 	'0000A5',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20120206-092932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26712',
internalId:  '',
customField: '20120204-210356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22512',
internalId:  '',
customField: '20120203-160013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2194',
internalId:  '',
customField: '20120206-093339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42412',
internalId:  '',
customField: '20120206-092717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2215',
internalId:  '',
customField: '20120205-044546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20120206-092627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20120204-204303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41612',
internalId:  '',
customField: '20120206-092815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2278',
internalId:  '',
customField: '20120203-101938'
};
webappMappings['7008']=webappMappings['7008-3442']={
webappId:    '7008',
documentId:  '2278',
internalId:  '3442',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20120203-160925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2257',
internalId:  '',
customField: '20120203-101822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20120203-142018'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHP340INV81T';
var companyName   = '';
var htmlTitle	  = '';
var metaKeywords  = 'Rolphe+Alcide+Grima%C3%AEtre%2C+shamballa%2C+shamballa-zentrum%2C+heilen%2Cspirituelles+heilen%2C+sch%C3%B6nheit+kommt+von+innen%2C+matrix-energetics%2Cmatrix%2C+matrix-heilung%2C+quantenheilung%2C+dr.+bartlet%2C+dr+kinslow%2C+matrix-impuls+matrix-impuls+heilung%2C+matrix+quantum%2C+urmatrix%2C+lichtkl%C3%B6rperprozess+%2Clicht%2C+freude%2C+meditation%2C+villa+unspunnen%2C+heilen+mit+energie%2C+heilen+mit+dem+herzen%2C+liebe%2C+buddha%2C+buddihsmus%2C+++hologramm%2C+quantum+hologramm%2C+releasing%2C+transformation+spiritualhealing+spiritualit%C3%A4t%2C+entwicklung%2C+massage%2C+ausbildung+in+spirituellem+heilen%2C+energetische+massage%2C+tantra%2C+licht+und+liebe%2C+die+g%C3%B6ttliche+transformation%2C+die+g%C3%B6tter%2C+erwachen%2C+bewusstsein%2C+leben%2C+frauen+und+m%C3%A4nner%2C+kinder+des+lichtes%2C+wenn+die+liebe+erwacht%2C+switzerland%2C+coaching%2C+seminare+ausbildungen%2C+quantenheilung%2C+dr+rupert+sheldrake%2C+gregg+braden%2C+kryon%2C+kryon-schule%2C+aufgestiegene+meister%2C+Chakra%2C+Licht%2C+Chakrahealing%2C+healing%2C+russische+heiler%2C+schweizer+heiler%2C+grosse+heiler%2C+energie+heilung%2C+lichtsymbole%2C+engel+heilung%2C+erzengel+michael%2C+erzendel+metatron%2C+erzengel+gabriel%2C+erzengel+raphael%2C+energetisches+heilen%2C+kronen+chakra%2C+farbtherapie%2C+kinesiologie%2C+familienstellen%2C+tantra%2C+botschafter+des+lichtes%2C+engelenergien%2C+enegelsymbole%2C+lichtsprache%2C+elohim%2C+reconnection%2C+r%C3%BCckverbindung%2C+seminare%2C+ausbildungen%2C+runen%2C+hellsehen%2C+neue+energie%2C+neues+zeitalter%2C+2012%2C+wandlung%2C+zeitalterr+des+lichtes%2C+';
var metaContents  = 'Marix-Impuls+Coaching%2C+Seminare%2C+Ausbildungen%2C+Ausbildungen+in+spirituellem+Heilen%2C++Matrix-Impuls+die+neue+Art+der+Energieheilung%2C+Quantenheilung%2C+die+neue+Art+der+Transformartion+Rolphe+Alcide+Grima%C3%AEtre+Coaching%2C+Seminare%2C+Ausbildungen%2C+neues+Bewusstsein%2C+neue+Energie%2C+einfach%2C+schnell%2C+transformierend%2C+Matrix-Impuls+Level+1%2C+Matrix-Impuls+Level+2%2C+Matrix-Impuls+F%C3%BClle+und+Erfolg%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();
};

