/* [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 theSitetree=[ 
	['PAGE','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','615',jdecode('Hair'),jdecode(''),'/615.html','true',[],''],
	['PAGE','636',jdecode('Nails'),jdecode(''),'/636.html','true',[],''],
	['PAGE','657',jdecode('Skin+-+Facials'),jdecode(''),'/657.html','true',[],''],
	['PAGE','594',jdecode('Waxing'),jdecode(''),'/594.html','true',[],''],
	['PAGE','26601',jdecode('Makeup'),jdecode(''),'/26601.html','true',[],''],
	['PAGE','678',jdecode('Massage'),jdecode(''),'/678.html','true',[],''],
	['PAGE','49301',jdecode('Tanning'),jdecode(''),'/49301.html','true',[],''],
	['PAGE','573',jdecode('Appointments'),jdecode(''),'/573.html','true',[],''],
	['PAGE','63901',jdecode('Hair+Extensions+%26+Special+Treatments'),jdecode(''),'/63901.html','false',[],''],
	['PAGE','41701',jdecode('Brides'),jdecode(''),'/41701.html','true',[],''],
	['PAGE','699',jdecode('Monthly+Specials'),jdecode(''),'/699.html','true',[],''],
	['PAGE','70601',jdecode('OMI+Awards'),jdecode(''),'/70601.html','true',[],''],
	['PAGE','71901',jdecode('Beauty+Tips+%26+Advice'),jdecode(''),'/71901.html','true',[],''],
	['PAGE','41743',jdecode('Our+team'),jdecode(''),'/41743/index.html','true',[ 
		['PAGE','41764',jdecode('Aethesticians'),jdecode(''),'/41743/41764.html','true',[],''],
		['PAGE','42201',jdecode('Stylists'),jdecode(''),'/41743/42201.html','true',[],''],
		['PAGE','42222',jdecode('Nails'),jdecode(''),'/41743/42222.html','true',[],''],
		['PAGE','42243',jdecode('Massage+Therapists'),jdecode(''),'/41743/42243.html','true',[],''],
		['PAGE','720',jdecode('Careers'),jdecode(''),'/41743/720.html','true',[],''],
		['PAGE','48701',jdecode('Charitable+Contributions'),jdecode(''),'/41743/48701.html','true',[],''],
		['PAGE','24601',jdecode('Driving+Directions'),jdecode(''),'/41743/24601.html','true',[],''],
		['PAGE','25401',jdecode('Map'),jdecode(''),'/41743/25401.html','true',[],'']
	],''],
	['PAGE','8901',jdecode('Products'),jdecode(''),'/8901/index.html','true',[ 
		['PAGE','49501',jdecode('Gift+Cards'),jdecode(''),'/8901/49501.html','false',[],'']
	],''],
	['PAGE','34301',jdecode('Photo+Album'),jdecode(''),'/34301.html','true',[],''],
	['PAGE','41722',jdecode('About+us'),jdecode(''),'/41722.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Polo';
theSitetree.paletteFamily='157E03';
theSitetree.keyvisualId='7497';
theSitetree.keyvisualName='kv_7497.jpg';
theSitetree.fontsetId='16552';
theSitetree.graphicsetId='12189';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Polo',
				paletteFamily: 	'157E03',
				keyvisualId: 	'7497',
				keyvisualName: 	'kv_7497.jpg',
				fontsetId: 		'16552',
				graphicsetId: 	'12189',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-103']={
webappId:    '7008',
documentId:  '573',
internalId:  '103',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-10956308']={
webappId:    '1501',
documentId:  '501',
internalId:  '10956308',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '24601',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '25401',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-37493e68f6500fb42d2e4009e2884d59']={
webappId:    '7060',
documentId:  '34301',
internalId:  '37493e68f6500fb42d2e4009e2884d59',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20100220-100704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100220-111026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20100514-111840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20100320-133044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20091025-114637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20100514-111740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20091025-113333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20091025-120026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20100818-210634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100331-123654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20080907-135345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20100331-122146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20091025-120752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24601',
internalId:  '',
customField: '20080719-005019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20080719-111607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41722',
internalId:  '',
customField: '20090905-084911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41743',
internalId:  '',
customField: '20100605-132827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41764',
internalId:  '',
customField: '20100605-125813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42201',
internalId:  '',
customField: '20100605-124814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42222',
internalId:  '',
customField: '20100605-125122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41701',
internalId:  '',
customField: '20081122-204707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42243',
internalId:  '',
customField: '20100220-100607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49501',
internalId:  '',
customField: '20081205-203558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20100331-122421'
};
webappMappings['4001']=webappMappings['4001-12503258']={
webappId:    '4001',
documentId:  '49501',
internalId:  '12503258',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70601',
internalId:  '',
customField: '20100606-094000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63901',
internalId:  '',
customField: '20090721-093951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71901',
internalId:  '',
customField: '20100402-134350'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10INV6TN';
var companyName   = 'OMI+Salon+%26+Spa++781-893-8888';
var htmlTitle	  = 'OMI+Salon+and+Spa';
var metaKeywords  = 'Massage+Beauty+nails+waltham+massachusetts+MA+wax+skin+waxing+hair+salon+cuts+Bridal+package+facial+collagen+Chemical+peels+sonic+peels+Glycolic+Manicure+Classic+Pedicure+acrylic+natural+tips+bikini+Brazilian+lip+eye+brow+swedish+hot+stone+prenatal+sport+deep+tissue+permanent+realxer+straightener+gentlemans+makeup+bridal+parties++wedding+partial+foils+double+process+relax+permanent+shampoo+appointment+straightening+relaxation+wash+spa+hand+therapy+gentleman+gentlemen+teen+makeover+makeup+group+packages+spa+mommy+aromatherapy+facial+wax+nail+boston+belmont+watertown+newton+weston+lexington+burlington+relax+rejuvenate+renew+beauty+revitalize+gift+card+gift+certificate+loreal+professional+dermalogica+formesi+OPI+sunless+tanning+tan+bronzing+LOreal+loreal+Professional%2C+brandeis+bentley+college+regis+facial+colegean+refills+massage+reflexology+airbrush+seasalt+pumpkin+scrub+prom+wedding%2C+gala+event+Hovan+Unite+flat+irons+aquage+%231+customer+service+award+goldwell+sebastian+wella+reiki';
var metaContents  = 'beauty+Hair+nails+massage+skin+facial+wax+manicure+pedicure+bridal+spa+salon+waltham+belmont+lexington+arlington+watertown+newton+wellesely+stylist+esthetician+aesthetcian+therapist+bridal+bride+wedding+nail+wax+back+brazilian+bikini+swedish+relax+foil+color+perm+appointment+wash+shampoo+cut+straightening+spa+hand+therapy+gentleman+gentlemen+teen+makeover+makeup+group+packages+gift+card+gift+certificates+loreal+professional+dermalogica+formesi+OPI+loreal+professional+gels+sunless+tanning+tan+reflexology+massage+swedish+sports+chair+shiatsu+airbrush+sea+salt+pumpkin+scrub+Prom+Wedding+gala+event+unite+aquage+%231+customer+service+award+goldwell+sebastian+wella';
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();
};
