/* [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','4459',jdecode('Home+%26+Privat'),jdecode(''), jdecode('%2F4459.html'), 'true',[],'',''],
	['PAGE','4516',jdecode('Humor-+%26+Lachseminare'),jdecode(''), jdecode('%2F4516.html'), 'true',[],'',''],
	['PAGE','19902',jdecode('Bilder+Lachyoga'),jdecode(''), jdecode('%2F19902.html'), 'true',[],'',''],
	['PAGE','20064',jdecode('Morphogenetische+Felder'),jdecode(''), jdecode('%2F20064.html'), 'true',[],'',''],
	['PAGE','40933',jdecode('Vortragstechnik+G-Dynamik%2FTZI'),jdecode(''), jdecode('%2F40933.html'), 'true',[],'',''],
	['PAGE','19956',jdecode('Tonbildschauen'),jdecode(''), jdecode('%2F19956%2Findex.html'), 'true',[ 
		['PAGE','19983',jdecode('Ganges+%26+Garwhal+'),jdecode(''), jdecode('%2F19956%2F19983.html'), 'true',[],'',''],
		['PAGE','20010',jdecode('H%C3%B6chste+Passstrasse+'),jdecode(''), jdecode('%2F19956%2F20010.html'), 'true',[],'',''],
		['PAGE','20037',jdecode('Ladakh+'),jdecode(''), jdecode('%2F19956%2F20037.html'), 'true',[],'','']
	],'',''],
	['PAGE','19929',jdecode('Hilfsaktionen+'),jdecode(''), jdecode('%2F19929.html'), 'true',[],'',''],
	['PAGE','40772',jdecode('Unwetterhilfe+Ladakh+2010'),jdecode(''), jdecode('%2F40772.html'), 'true',[],'',''],
	['PAGE','4597',jdecode('Postkarten+%26+Reisebilder'),jdecode(''), jdecode('%2F4597.html'), 'true',[],'',''],
	['PAGE','20091',jdecode('Beratungen+%26+Dokus'),jdecode(''), jdecode('%2F20091.html'), 'true',[],'',''],
	['PAGE','14002',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F14002%2Findex.html'), 'true',[ 
		['PAGE','14003',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F14002%2F14003.html'), 'false',[],'','']
	],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Artless';
theSitetree.paletteFamily='7E62A2';
theSitetree.keyvisualId='4540';
theSitetree.keyvisualName='kv_4540.jpg';
theSitetree.fontsetId='10795';
theSitetree.graphicsetId='11223';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7E62A2';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Artless',
				paletteFamily: 	'7E62A2',
				keyvisualId: 	'4540',
				keyvisualName: 	'kv_4540.jpg',
				fontsetId: 		'10795',
				graphicsetId: 	'11223',
				contentColor: 	'FFFFFF',
				contentBGColor: '7E62A2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'3D275A',
				e_color: 		'3D275A',
				f_color: 		'3D275A',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4459',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4516',
internalId:  '',
customField: '20111118-175730'
};
webappMappings['1002']=webappMappings['1002-14002ABW0X0INXEG8']={
webappId:    '1002',
documentId:  '14002',
internalId:  '14002ABW0X0INXEG8',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4459',
internalId:  '',
customField: '20111118-174829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40772',
internalId:  '',
customField: '20111118-200741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19956',
internalId:  '',
customField: '20090210-170033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20037',
internalId:  '',
customField: '20090210-163424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20010',
internalId:  '',
customField: '20050529-121004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19983',
internalId:  '',
customField: '20050529-120645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20091',
internalId:  '',
customField: '20050603-085607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14002',
internalId:  '',
customField: '20050528-191554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19902',
internalId:  '',
customField: '20090210-170823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40933',
internalId:  '',
customField: '20111118-180216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19929',
internalId:  '',
customField: '20110203-160009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20050607-171039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20064',
internalId:  '',
customField: '20050528-174700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14003',
internalId:  '',
customField: '20040917-170542'
};
webappMappings['7060']=webappMappings['7060-8b42c15f34a52c7cb87db71f8bbdbd29']={
webappId:    '7060',
documentId:  '40772',
internalId:  '8b42c15f34a52c7cb87db71f8bbdbd29',
customField: 'language:de;country:CH;'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXEG8';
var companyName   = 'Raymond+Katz++++Humor-+und+Lachtraining%2C+Multimedia';
var htmlTitle	  = 'Katzvsm+Lachyoga+Lachseminare+Lachtraining+Humortraining+Humorseminar+Tonbildschauen++Multimediaschau';
var metaKeywords  = 'Multimediashows%2C+Himalaya%2C+Indien%2C+Morphogenetische+Felder%2C+Rupert+Sheldrake%2C+Feuerwehr%2C+Vort%C3%A4ge%2C+Seminare%2C+Tonbildschauen%2C+Ladakh%2C+Manali-Leh+Highway%2C+Nubratal%2C+Leh%2C+Lachen%2C+Lachtraining%2C+Lachseminar%2C+Humor%2C+Spass%2C+Lachyoga%2C+Lachclub%2C+Humortraining%2C+Humorseminar%2C+Madan+Kataria+';
var metaContents  = 'Lachtraining%2C+Vortr%C3%A4ge%2C+Seminare%2C+Multimediashows%2C+Tonbildschauen%2C+Lachseminar%2C+Lachyoga%2C+Humortraining%2C+Humorseminar+';
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();
};

