/* [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','301',jdecode('home'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','54801',jdecode('schulungen+%26+kurse'),jdecode(''),'/54801.html','true',[],'',''],
	['PAGE','46801',jdecode('news'),jdecode(''),'/46801/index.html','true',[ 
		['PAGE','119901',jdecode('video+nail+gallerie'),jdecode(''),'/46801/119901.html','true',[],'',''],
		['PAGE','118001',jdecode('modelle+gesucht+%21%21'),jdecode(''),'/46801/118001.html','true',[],'','']
	],'',''],
	['PAGE','7001',jdecode('das+team'),jdecode(''),'/7001/index.html','true',[ 
		['PAGE','143901',jdecode('sandra+eugster'),jdecode(''),'/7001/143901.html','true',[],'',''],
		['PAGE','147401',jdecode('irina+nobili'),jdecode(''),'/7001/147401.html','true',[],'',''],
		['PAGE','147422',jdecode('denise+christen'),jdecode(''),'/7001/147422.html','true',[],'',''],
		['PAGE','144001',jdecode('gaby+ghani'),jdecode(''),'/7001/144001.html','true',[],'',''],
		['PAGE','84801',jdecode('+punch+%26+jack+'),jdecode(''),'/7001/84801.html','true',[],'',''],
		['PAGE','143501',jdecode('punch%26jack+video%26%23x27%3Bs'),jdecode(''),'/7001/143501.html','true',[],'','']
	],'',''],
	['PAGE','7064',jdecode('permanent+make+up'),jdecode(''),'/7064.html','true',[],'',''],
	['PAGE','7022',jdecode('modellierte+n%C3%A4gel'),jdecode(''),'/7022.html','true',[],'',''],
	['PAGE','70601',jdecode('rekonstruktionen'),jdecode(''),'/70601.html','true',[],'',''],
	['PAGE','98201',jdecode('nagelbettverl%C3%A4ngerung'),jdecode(''),'/98201.html','true',[],'',''],
	['PAGE','7043',jdecode('naturn%C3%A4gel'),jdecode(''),'/7043.html','true',[],'',''],
	['PAGE','18185',jdecode('zehenn%C3%A4gel'),jdecode(''),'/18185.html','true',[],'',''],
	['PAGE','77301',jdecode('ohrringe+%26+piercing'),jdecode(''),'/77301.html','true',[],'',''],
	['PAGE','21722',jdecode('zahnschmuck'),jdecode(''),'/21722.html','true',[],'',''],
	['PAGE','141301',jdecode('face+%26+bodypainting'),jdecode(''),'/141301/index.html','true',[ 
		['PAGE','82401',jdecode('facepainting'),jdecode(''),'/141301/82401.html','true',[],'','']
	],'',''],
	['PAGE','21743',jdecode('wimpernverl%C3%A4ngerung'),jdecode(''),'/21743.html','true',[],'',''],
	['PAGE','7127',jdecode('airbrush'),jdecode(''),'/7127.html','true',[],'',''],
	['PAGE','8601',jdecode('preisliste'),jdecode(''),'/8601.html','true',[],'',''],
	['PAGE','7148',jdecode('galerie'),jdecode(''),'/7148/index.html','true',[ 
		['PAGE','17801',jdecode('nail+art'),jdecode(''),'/7148/17801.html','true',[],'',''],
		['PAGE','18101',jdecode('vorher+%26+nachher'),jdecode(''),'/7148/18101.html','true',[],'',''],
		['PAGE','18143',jdecode('nat%C3%BCrliche+optik'),jdecode(''),'/7148/18143.html','true',[],'',''],
		['PAGE','18164',jdecode('manik%C3%BCre'),jdecode(''),'/7148/18164.html','true',[],'',''],
		['PAGE','137301',jdecode('stiletton%C3%A4gel'),jdecode(''),'/7148/137301.html','true',[],'',''],
		['PAGE','58101',jdecode('schmuckringe'),jdecode(''),'/7148/58101.html','true',[],'',''],
		['PAGE','119001',jdecode('umbau+juni+09'),jdecode(''),'/7148/119001.html','true',[],'','']
	],'',''],
	['PAGE','33406',jdecode('g%C3%A4stebuch'),jdecode(''),'/33406/index.html','true',[ 
		['PAGE','33401',jdecode('eintr%C3%A4ge'),jdecode(''),'/33406/33401.html','false',[],'','']
	],'',''],
	['PAGE','7169',jdecode('kontakt+%2B+lageplan'),jdecode(''),'/7169.html','true',[],'',''],
	['PAGE','69801',jdecode('interessante+links'),jdecode(''),'/69801.html','true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Family';
theSitetree.paletteFamily='CBCCCD';
theSitetree.keyvisualId='3838';
theSitetree.keyvisualName='kv_3838.jpg';
theSitetree.fontsetId='10636';
theSitetree.graphicsetId='11024';
theSitetree.contentColor='4F4F4F';
theSitetree.contentBGColor='CBCCCD';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Family',
				paletteFamily: 	'CBCCCD',
				keyvisualId: 	'3838',
				keyvisualName: 	'kv_3838.jpg',
				fontsetId: 		'10636',
				graphicsetId: 	'11024',
				contentColor: 	'4F4F4F',
				contentBGColor: 'CBCCCD',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AEAEAF',
				e_color: 		'AEAEAF',
				f_color: 		'AEAEAF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-33406abw0x0in2nt7']={
webappId:    '1002',
documentId:  '33406',
internalId:  '33406abw0x0in2nt7',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100712-173121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143901',
internalId:  '',
customField: '20100716-140141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7148',
internalId:  '',
customField: '20100711-082918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20100705-125509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7127',
internalId:  '',
customField: '20090210-113647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144001',
internalId:  '',
customField: '20100716-165630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18185',
internalId:  '',
customField: '20100601-174737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46801',
internalId:  '',
customField: '20100716-170642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20100701-003854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84801',
internalId:  '',
customField: '20100630-210515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20100712-173931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7064',
internalId:  '',
customField: '20100117-113533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20080903-080202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70601',
internalId:  '',
customField: '20100426-122700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98201',
internalId:  '',
customField: '20100601-174144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7043',
internalId:  '',
customField: '20080928-094357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77301',
internalId:  '',
customField: '20080315-081847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21722',
internalId:  '',
customField: '20070618-070838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58101',
internalId:  '',
customField: '20080928-115849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82401',
internalId:  '',
customField: '20100603-144201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21743',
internalId:  '',
customField: '20080319-004803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20090402-131031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20100426-121414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141301',
internalId:  '',
customField: '20100603-144020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18143',
internalId:  '',
customField: '20100426-121534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18164',
internalId:  '',
customField: '20080112-155152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7169',
internalId:  '',
customField: '20090821-173653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33406',
internalId:  '',
customField: '20061104-154633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33401',
internalId:  '',
customField: '20061104-154319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137301',
internalId:  '',
customField: '20100711-094812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69801',
internalId:  '',
customField: '20091106-132734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143501',
internalId:  '',
customField: '20100701-011110'
};
webappMappings['7008']=webappMappings['7008-6788']={
webappId:    '7008',
documentId:  '118001',
internalId:  '6788',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118001',
internalId:  '',
customField: '20100422-135536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119001',
internalId:  '',
customField: '20090821-184612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119901',
internalId:  '',
customField: '20100630-211501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147401',
internalId:  '',
customField: '20100716-152315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147422',
internalId:  '',
customField: '20100716-154819'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2NT7';
var companyName   = 'Heil+Nail%27s';
var htmlTitle	  = '';
var metaKeywords  = 'permanent+make+up%2C+nailcosmetik%2C+nailkosmetik%2C+manik%EF%BF%BDre%2C+alessandro%2C+nail+art%2C+zahnschmuck%2C+mehndi+tattoos%2C+henna+tatoos%2C+airbrush%2C+permanent+make+up%2C+k%EF%BF%BDnstliche+fingern%EF%BF%BDgel%2C+geln%EF%BF%BDgel%2C+acryln%EF%BF%BDgel%2C+nagelverzierungen%2C+fingernagelverzierungen%2C+piercing%2C+everlash%2Cwimpernverl%EF%BF%BDngerung%2C+sch%EF%BF%BDne+n%EF%BF%BDgel%2C+fingern%EF%BF%BDgel%2C+nails%2C+gelnails%2C+kunstn%EF%BF%BDgel%2C+Kurse%2C+schulung+naildesign%2C+nagelschule%2C+schule+naildesign%2C+schulung+n%EF%BF%BDgel%2C+kurs+n%EF%BF%BDgel%2C+fingernagelpsoriasis%2C+psoriasis+an+fingern%EF%BF%BDgeln%2C+vorher+%2F+nachher%2Caugenbrauen+zupfen%2Cwimpern+f%EF%BF%BDrben%2Cnagelbettverl%EF%BF%BDngerung%2C+stiletton%C3%A4gel%2C+stiletto%2C+nagelrekonstruktionen%2C+kinderschminken%2C+schminken%2C+babybauch+anmalen%2C+babybauch%2C+schwangerschaft';
var metaContents  = 'permanent+make+up%2C+nailcosmetik%2C+nailkosmetik%2C+manik%EF%BF%BDre%2C+alessandro%2C+nail+art%2C+zahnschmuck%2C+mehndi+tattoos%2C+henna+tatoos%2C+airbrush%2C+permanent+make+up%2C+k%EF%BF%BDnstliche+fingern%EF%BF%BDgel%2C+geln%EF%BF%BDgel%2C+acryln%EF%BF%BDgel%2C+piercing%2C+everlash%2C+wimernverl%EF%BF%BDngerung%2C+nails%2C+gelnails%2C+kunstn%EF%BF%BDgel%2C+Kurse%2C+schulung+naildesign%2C+nagelschule%2C+schule+naildesign%2C+schulung+n%EF%BF%BDgel%2C+kurs+n%EF%BF%BDgel%2C+psoriasis%2C+fingernagelpsoriasis%2C+psoriasis+an+fingern%EF%BF%BDgeln.+vorher+%2Fnachher%2C+Augenbrauen+zupfen%2Cwimpern+f%EF%BF%BDrben%2C+nagelbettverl%EF%BF%BDngerung%2C+stiletton%C3%A4gel%2C+stiletto%2C+nagelrekonstruktionen%2C+babybauch%2C+schwangerschaft%2C+bauch+bemalen%2C+kinderschminken%2C+schminken';
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();
};
