/* [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','4701',jdecode('Home'),jdecode(''),'/4701.html','true',[],'',''],
	['PAGE','24701',jdecode('%C3%A4therische+%C3%96le'),jdecode(''),'/24701/index.html','false',[ 
		['PAGE','101401',jdecode('Oele+von+A-Z'),jdecode(''),'/24701/101401.html','false',[],'','']
	],'',''],
	['PAGE','138601',jdecode('B%C3%BCcher+und+Karten'),jdecode(''),'/138601.html','true',[],'',''],
	['PAGE','82501',jdecode('Chakra+Licht%C3%B6le'),jdecode(''),'/82501.html','true',[],'',''],
	['PAGE','107201',jdecode('Chi-Kopf-Stimulator'),jdecode(''),'/107201.html','true',[],'',''],
	['PAGE','191923',jdecode('Farbessenzen'),jdecode(''),'/191923.html','false',[],'',''],
	['PAGE','167712',jdecode('Feng+Shui'),jdecode(''),'/167712.html','true',[],'',''],
	['PAGE','4815',jdecode('Geschenkartikel'),jdecode(''),'/4815/index.html','true',[ 
		['PAGE','179612',jdecode('Engel-Taler'),jdecode(''),'/4815/179612.html','true',[],'','']
	],'',''],
	['PAGE','82922',jdecode('Lampe+Berger'),jdecode(''),'/82922.html','false',[],'',''],
	['PAGE','191623',jdecode('Massagenbehandlungen'),jdecode(''),'/191623.html','false',[],'',''],
	['PAGE','4857',jdecode('Ohrkerzen'),jdecode(''),'/4857.html','true',[],'',''],
	['PAGE','4878',jdecode('Peking+Jelly+Royal'),jdecode(''),'/4878.html','true',[],'',''],
	['PAGE','184012',jdecode('R%C3%A4ucherst%C3%A4bchen'),jdecode(''),'/184012/index.html','true',[ 
		['PAGE','184112',jdecode('Nag+Champa+R%C3%A4ucherst%C3%A4bchen'),jdecode(''),'/184012/184112.html','true',[],'',''],
		['PAGE','99501',jdecode('Engel-R%C3%A4ucherst%C3%A4bchen'),jdecode(''),'/184012/99501.html','true',[],'','']
	],'',''],
	['PAGE','117201',jdecode('R%C3%A4ucherwerk'),jdecode(''),'/117201/index.html','true',[ 
		['PAGE','178212',jdecode('indianisches+R%C3%A4ucherwerk'),jdecode(''),'/117201/178212.html','true',[],'','']
	],'',''],
	['PAGE','166012',jdecode('Raumspray+tachyonisiert'),jdecode(''),'/166012.html','true',[],'',''],
	['PAGE','133001',jdecode('Vita+Juwel+'),jdecode(''),'/133001/index.html','true',[ 
		['PAGE','154812',jdecode('Die+Edelsteinst%C3%A4be'),jdecode(''),'/133001/154812.html','true',[],'','']
	],'',''],
	['PAGE','110601',jdecode('Waterbalance'),jdecode(''),'/110601.html','true',[],'',''],
	['PAGE','85801',jdecode('Zauberwelt'),jdecode(''),'/85801/index.html','true',[ 
		['PAGE','185612',jdecode('Zauberst%C3%A4be'),jdecode(''),'/85801/185612.html','true',[],'','']
	],'',''],
	['PAGE','116801',jdecode('Kontakt'),jdecode(''),'/116801.html','true',[],'',''],
	['PAGE','12701',jdecode('Shop+'),jdecode(''),'/12701.html','true',[],'',''],
	['PAGE','132601',jdecode('G%C3%A4stebuch'),jdecode(''),'/132601.html','false',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Sommelier';
theSitetree.paletteFamily='878CC4';
theSitetree.keyvisualId='12094';
theSitetree.keyvisualName='kv_12094.jpg';
theSitetree.fontsetId='33294';
theSitetree.graphicsetId='14169';
theSitetree.contentColor='002F54';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sommelier',
				paletteFamily: 	'878CC4',
				keyvisualId: 	'12094',
				keyvisualName: 	'kv_12094.jpg',
				fontsetId: 		'33294',
				graphicsetId: 	'14169',
				contentColor: 	'002F54',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20100630-093653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82922',
internalId:  '',
customField: '20090611-211444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132601',
internalId:  '',
customField: '20090802-162852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4878',
internalId:  '',
customField: '20100316-221614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101401',
internalId:  '',
customField: '20100125-170232'
};
webappMappings['4001']=webappMappings['4001-28584463']={
webappId:    '4001',
documentId:  '12701',
internalId:  '28584463',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82501',
internalId:  '',
customField: '20100316-193455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107201',
internalId:  '',
customField: '20091202-104212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4815',
internalId:  '',
customField: '20100316-193918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99501',
internalId:  '',
customField: '20100202-145541'
};
webappMappings['1002']=webappMappings['1002-132601abw330ine7gh']={
webappId:    '1002',
documentId:  '132601',
internalId:  '132601abw330ine7gh',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20091215-102406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4857',
internalId:  '',
customField: '20100316-194732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20091202-214220'
};
webappMappings['7008']=webappMappings['7008-6500']={
webappId:    '7008',
documentId:  '116801',
internalId:  '6500',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116801',
internalId:  '',
customField: '20090709-083635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117201',
internalId:  '',
customField: '20100316-221814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110601',
internalId:  '',
customField: '20100316-213247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85801',
internalId:  '',
customField: '20091205-212217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133001',
internalId:  '',
customField: '20100629-085801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154812',
internalId:  '',
customField: '20100316-210137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138601',
internalId:  '',
customField: '20100316-193219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166012',
internalId:  '',
customField: '20100316-195746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167712',
internalId:  '',
customField: '20100316-220015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178212',
internalId:  '',
customField: '20100316-195619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '179612',
internalId:  '',
customField: '20100316-221205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184012',
internalId:  '',
customField: '20100202-171600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184112',
internalId:  '',
customField: '20100202-145413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185612',
internalId:  '',
customField: '20100301-215030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191923',
internalId:  '',
customField: '20100814-184319'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW330INE7GH';
var companyName   = 'Duftreich+';
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();
};
