/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','18001',jdecode('%C3%BCber+Manuela+Niederer'),jdecode(''), jdecode('%2F18001%2Findex.html'), 'true',[ 
		['PAGE','258701',jdecode('Manuela+Niederer'),jdecode(''), jdecode('%2F18001%2F258701.html'), 'true',[],'','']
	],'',''],
	['PAGE','5543',jdecode('Ausbildung'),jdecode(''), jdecode('%2F5543.html'), 'true',[],'',''],
	['PAGE','302401',jdecode('Special%26%23x27%3Bs+%28auch+Fotos%29'),jdecode(''), jdecode('%2F302401.html'), 'true',[],'',''],
	['PAGE','536',jdecode('Fotoshooting'),jdecode(''), jdecode('%2F536.html'), 'true',[],'',''],
	['PAGE','96201',jdecode('Fotos'),jdecode(''), jdecode('%2F96201%2Findex.html'), 'true',[ 
		['PAGE','334201',jdecode('Vorher-Nachher+09'),jdecode(''), jdecode('%2F96201%2F334201.html'), 'true',[],'',''],
		['PAGE','231601',jdecode('Vorher+-+Nachher+08%2B09'),jdecode(''), jdecode('%2F96201%2F231601.html'), 'true',[],'',''],
		['PAGE','294401',jdecode('Kennenlern-Angebot+08'),jdecode(''), jdecode('%2F96201%2F294401.html'), 'true',[],'',''],
		['PAGE','5501',jdecode('Vorher+-+Nacher+07'),jdecode(''), jdecode('%2F96201%2F5501.html'), 'true',[],'',''],
		['PAGE','40101',jdecode('Vorher+-+Nachher+05-06'),jdecode(''), jdecode('%2F96201%2F40101.html'), 'true',[],'','']
	],'',''],
	['PAGE','98901',jdecode('Great+Lengths%C2%AE'),jdecode(''), jdecode('%2F98901%2Findex.html'), 'true',[ 
		['PAGE','311422',jdecode('Fotos+von+meiner+Arbeit'),jdecode(''), jdecode('%2F98901%2F311422.html'), 'true',[],'',''],
		['PAGE','117101',jdecode('Haarverdichtung'),jdecode(''), jdecode('%2F98901%2F117101.html'), 'true',[],'',''],
		['PAGE','117122',jdecode('Haarverl%C3%A4ngerung'),jdecode(''), jdecode('%2F98901%2F117122.html'), 'true',[],'',''],
		['PAGE','119801',jdecode('Effektstr%C3%A4hnen'),jdecode(''), jdecode('%2F98901%2F119801.html'), 'true',[],'',''],
		['PAGE','117143',jdecode('tomorrow%26%23x27%3Bs+look'),jdecode(''), jdecode('%2F98901%2F117143.html'), 'true',[],'','']
	],'',''],
	['PAGE','620',jdecode('Farb+%26+Stilberatung'),jdecode(''), jdecode('%2F620%2Findex.html'), 'true',[ 
		['PAGE','5522',jdecode('Die+4+Jahrestypen'),jdecode(''), jdecode('%2F620%2F5522.html'), 'true',[],'','']
	],'',''],
	['PAGE','22001',jdecode('Schminkkurse'),jdecode(''), jdecode('%2F22001.html'), 'true',[],'',''],
	['PAGE','725',jdecode('Business-+Beauty'),jdecode(''), jdecode('%2F725.html'), 'true',[],'',''],
	['PAGE','28401',jdecode('Shopping-Begleitung'),jdecode(''), jdecode('%2F28401.html'), 'true',[],'',''],
	['PAGE','13001',jdecode('Anti-Aging'),jdecode(''), jdecode('%2F13001%2Findex.html'), 'true',[ 
		['PAGE','234701',jdecode('Galvanic+Spa+II'),jdecode(''), jdecode('%2F13001%2F234701.html'), 'true',[],'','']
	],'',''],
	['PAGE','31622',jdecode('Preise'),jdecode(''), jdecode('%2F31622.html'), 'true',[],'',''],
	['PAGE','294422',jdecode('unsere+R%C3%A4ume'),jdecode(''), jdecode('%2F294422.html'), 'true',[],'',''],
	['PAGE','269501',jdecode('Accessoires'),jdecode(''), jdecode('%2F269501.html'), 'true',[],'',''],
	['PAGE','159301',jdecode('Referenzen'),jdecode(''), jdecode('%2F159301.html'), 'true',[],'',''],
	['PAGE','168501',jdecode('Kunden+werben+Kunden'),jdecode(''), jdecode('%2F168501.html'), 'true',[],'',''],
	['PAGE','340701',jdecode('Kooperation+mit+Magic'),jdecode(''), jdecode('%2F340701.html'), 'true',[],'',''],
	['PAGE','19106',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F19106.html'), 'true',[],'',''],
	['PAGE','19101',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F19101.html'), 'false',[],'',''],
	['PAGE','746',jdecode('Kontakt'),jdecode(''), jdecode('%2F746.html'), 'true',[],'',''],
	['PAGE','18401',jdecode('Link%26%23x27%3Bs'),jdecode(''), jdecode('%2F18401.html'), 'true',[],'',''],
	['PAGE','162401',jdecode('Anfahrt'),jdecode(''), jdecode('%2F162401.html'), 'true',[],'',''],
	['PAGE','162501',jdecode('Ihr+Weg+zu+mir'),jdecode(''), jdecode('%2F162501.html'), 'true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='D43A3A';
theSitetree.keyvisualId='2442';
theSitetree.keyvisualName='beauty.jpg';
theSitetree.fontsetId='406';
theSitetree.graphicsetId='460';
theSitetree.contentColor='2F325F';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Collage',
				paletteFamily: 	'D43A3A',
				keyvisualId: 	'2442',
				keyvisualName: 	'beauty.jpg',
				fontsetId: 		'406',
				graphicsetId: 	'460',
				contentColor: 	'2F325F',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'D43A3A',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-480']={
webappId:    '7008',
documentId:  '746',
internalId:  '480',
customField: 'language:de;country:CH;'
};
webappMappings['1002']=webappMappings['1002-19106abw0x0in2vsp']={
webappId:    '1002',
documentId:  '19106',
internalId:  '19106abw0x0in2vsp',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '162401',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '162501',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20111129-182034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '294422',
internalId:  '',
customField: '20090623-013422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '269501',
internalId:  '',
customField: '20090601-132102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20090601-132601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159301',
internalId:  '',
customField: '20081027-221906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '302401',
internalId:  '',
customField: '20090623-102031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98901',
internalId:  '',
customField: '20090601-132954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '311422',
internalId:  '',
customField: '20090325-141600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117101',
internalId:  '',
customField: '20081113-215332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117122',
internalId:  '',
customField: '20081113-212937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119801',
internalId:  '',
customField: '20081113-212559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117143',
internalId:  '',
customField: '20081113-212755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20101220-222117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96201',
internalId:  '',
customField: '20090522-115309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231601',
internalId:  '',
customField: '20090325-124707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '294401',
internalId:  '',
customField: '20081222-091536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20080818-093823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20080311-083337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20090601-133250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20080310-172329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20090601-133339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20090601-133422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20090601-133458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234701',
internalId:  '',
customField: '20081113-083644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5543',
internalId:  '',
customField: '20090601-133551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31622',
internalId:  '',
customField: '20101220-221554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168501',
internalId:  '',
customField: '20090601-133719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20090522-115700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258701',
internalId:  '',
customField: '20100106-132528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19106',
internalId:  '',
customField: '20080311-084102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20080311-084145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20090601-133904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100319-150932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162401',
internalId:  '',
customField: '20090601-134003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162501',
internalId:  '',
customField: '20090522-120621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '334201',
internalId:  '',
customField: '20091202-191733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '340701',
internalId:  '',
customField: '20090623-001741'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2VSP';
var companyName   = 'Magic+of+Colours+-+Beauty+and+Style';
var htmlTitle	  = 'Magic+of+Colours+-+Beauty+and+Style';
var metaKeywords  = 'a+href%3Dhttp%3A%2F%2Fwww.magicofcolours.ch%2C+magicofcolours.ch%2C+Magic+of+Colours%3B+Beauty%3B+Business+Beauty%3B+Kosmetik%3B+Kosmetikinstitut%3B+Beauty+Salon%3B+Hochzeitsstyling%3B+Hochzeit%3B+Hochzeitsfrisuren%3B+Haarverdichtung%3B+Farb-+und+Stilanalyse%3B+Farbberatung%3B+Stilberatung%3B+Haarverl%3Fngerung%3B+Bios+Life%3B+Bios+Life+slm%3B+Bios+Life+Slim%2C+Unicity%2C+Manuela+Niederer%2C+Daniel+Breitenmoser%2C+Beauty+Aargau%3B+Hirschthal%2C+Business%2C+Great+Lengths%2C+Nu+Skin%2C+Fotoshooting%2C+Beauty-Day%2C+Anti-Aging%2C+Network%2C+Schminken%2C+Make-up+Stylist%2Fin+Ausbildung%2C+Vorher-+und+Nachher+Bilder%2C+Galvanic+Spa+II%2C+Nu+Skin%2C+Lifestyle%2C+Wellness%2C+Sch%3Fnheit%2C+www.aus-zeit.info';
var metaContents  = 'Schminkkurse%2C+Farb-+und+Stilberatung%2C+Haarverdichtung%2C++Haarverl%3Fngerung%2C+Ausblildung+Make-up-Stylist%2Fin%2C+Business-+Beauty%2C+Beauty-Tag%2C+Fotoshooting%2C+Styling%2C+Make-up%2C+Shopping-Begleitung%2C+Coiffeur%2C+Hairstyling%2C+Hochzeitsfrisur%2C+Hochzeits+Make-up%2C+Anti-Aging%2C+Sch%3Fnheit%2C+Portraitaufnahmen%2C+Schminktipps%2C+Bios+Life%2C+Bios+Life+slm%2C+Great+Lengths%2C+Ausbildung';
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();
};

