/* [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','501',jdecode('Home'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','552',jdecode('About+Us'),jdecode(''), jdecode('%2F552.html'), 'true',[],'',''],
	['PAGE','783',jdecode('Monthly+Special'),jdecode(''), jdecode('%2F783.html'), 'true',[],'',''],
	['PAGE','122734',jdecode('HCG+Weight+Loss+Diet'),jdecode(''), jdecode('%2F122734.html'), 'true',[],'',''],
	['PAGE','153356',jdecode('Services'),jdecode(''), jdecode('%2F153356%2Findex.html'), 'true',[ 
		['PAGE','615',jdecode('Face+%26+Skin+Care'),jdecode(''), jdecode('%2F153356%2F615.html'), 'true',[],'',''],
		['PAGE','678',jdecode('IMAGE+Peels+%26+Microderm'),jdecode(''), jdecode('%2F153356%2F678.html'), 'true',[],'',''],
		['PAGE','720',jdecode('Body-Massage-Waxing'),jdecode(''), jdecode('%2F153356%2F720.html'), 'true',[],'',''],
		['PAGE','741',jdecode('Lashes-Teeth-Beauty'),jdecode(''), jdecode('%2F153356%2F741.html'), 'true',[],'',''],
		['PAGE','152656',jdecode('Nails+by+Diane'),jdecode(''), jdecode('%2F153356%2F152656.html'), 'true',[],'',''],
		['PAGE','122834',jdecode('Hair+by+Jackie'),jdecode(''), jdecode('%2F153356%2F122834.html'), 'true',[],'','']
	],'',''],
	['PAGE','152456',jdecode('Spa+Packages'),jdecode(''), jdecode('%2F152456.html'), 'true',[],'',''],
	['PAGE','91123',jdecode('Spa+Parties'),jdecode(''), jdecode('%2F91123.html'), 'true',[],'',''],
	['PAGE','5901',jdecode('Product+Lines'),jdecode(''), jdecode('%2F5901.html'), 'true',[],'',''],
	['PAGE','82223',jdecode('Upcoming+Events'),jdecode(''), jdecode('%2F82223.html'), 'true',[],'',''],
	['PAGE','9001',jdecode('Spa+Etiquette'),jdecode(''), jdecode('%2F9001.html'), 'true',[],'',''],
	['PAGE','6506',jdecode('Guestbook+%26++Feedback'),jdecode(''), jdecode('%2F6506.html'), 'true',[],'',''],
	['PAGE','79623',jdecode('Join+Our+Mailing+List'),jdecode(''), jdecode('%2F79623.html'), 'true',[],'',''],
	['PAGE','13801',jdecode('Spa+Photo+Album'),jdecode(''), jdecode('%2F13801.html'), 'true',[],'',''],
	['PAGE','23201',jdecode('Visit++Excelsior+Springs'),jdecode(''), jdecode('%2F23201.html'), 'true',[],'',''],
	['PAGE','825',jdecode('Contact+%26+Directions'),jdecode(''), jdecode('%2F825.html'), 'true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Weekend';
theSitetree.paletteFamily='4A53AF';
theSitetree.keyvisualId='4150';
theSitetree.keyvisualName='kv_4150.jpg';
theSitetree.fontsetId='10526';
theSitetree.graphicsetId='11142';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5C65C1';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Weekend',
				paletteFamily: 	'4A53AF',
				keyvisualId: 	'4150',
				keyvisualName: 	'kv_4150.jpg',
				fontsetId: 		'10526',
				graphicsetId: 	'11142',
				contentColor: 	'FFFFFF',
				contentBGColor: '5C65C1',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-6506avec10infl9m']={
webappId:    '1002',
documentId:  '6506',
internalId:  '6506avec10infl9m',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-c2dc73250697b7782337e5ba9295b7f3']={
webappId:    '7060',
documentId:  '13801',
internalId:  'c2dc73250697b7782337e5ba9295b7f3',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-11932321']={
webappId:    '1501',
documentId:  '501',
internalId:  '11932321',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20120103-082323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20111212-022902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20111212-023404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20111212-030242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20111212-034631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153356',
internalId:  '',
customField: '20120103-073118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79623',
internalId:  '',
customField: '20100721-172335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20120103-082139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20110413-130834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20110420-133323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20111101-155632'
};
webappMappings['7008']=webappMappings['7008-8674']={
webappId:    '7008',
documentId:  '79623',
internalId:  '8674',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '825',
internalId:  '',
customField: '20111211-232349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91123',
internalId:  '',
customField: '20100409-105135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6506',
internalId:  '',
customField: '20100721-172421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82223',
internalId:  '',
customField: '20120103-074540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20091213-181930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20111101-154823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152656',
internalId:  '',
customField: '20120103-074050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152456',
internalId:  '',
customField: '20111130-184215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122734',
internalId:  '',
customField: '20120103-075058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122834',
internalId:  '',
customField: '20111212-035658'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFL9M';
var companyName   = 'New+Age+Skincare+Spa+%26+hCG+Weight+Loss+Clinic';
var htmlTitle	  = 'New+Age+Skincare+Spa+%26+HCG+Weight+Loss+Clinic%2C+Excelsior+Springs%2C+MO+Historic+Downtown+Hall+of+Waters+District%2C+102+E.+Broadway%2C+816-637-6500';
var metaKeywords  = 'Spa+Excelsior+Springs%2C+Spa+Kansas+City%2C+hCG+Kansas+City%2C+hCG+Excelsior+Springs%2C+IMAGE+skin+care%2C+Facials%2C+Brazillian%2C+Lash+Perm%2C+Lash+Extensions%2C+Massage%2C+Acne%2C+Sun+damage%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ADay+Spa%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AHCG%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ADr.+Supervised+%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0APharmaceutical+HCG%0D%0A%0D%0A%0D%0A%0D%0AElms+Hotel%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AMassage%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AFacials%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ATeeth+Whitening%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AEye+Lash+Perming%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AMicroderm%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AMicrodermabrasion%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABrazilian+Waxing%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AHair+Removal%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AAnti+Aging%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AWeight+Loss%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ADiet%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AStevia+Drops%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AIMAGE+Skin+Care%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AMineral+Makeup%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABlinc+Mascara%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ANo+Scream+Cream%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AExcelsior+Springs%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AHall+of+Waters%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AElms+Resort+%26+Spa%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABroadway+%26+Penn%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ACrescent+Lake+Bed+and+Breakfast%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AChi%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AHair+Style%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ACarbon+Infrared+Sauna%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABody+Wrap%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABody+Scrub%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AExcelsior+Springs+Chamber+of+Commerce%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ALiberty+Spa%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AKansas+City+Spa%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AAffordable%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AMother+and+Daughter+owned%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AAcne%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AProactive%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AHighest+Rated+Day+Spa%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ASpa+Parties%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ADEP%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ADowntown+Excelsior+Partnership%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AWabash+BBQ%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AWaterfest%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABBQ+and+Fly+Inn%0D%0A%0D%0A%0D%0A%0D%0AWillow+Spring+Mercantile%0D%0A%0D%0A%0D%0A%0D%0ARedmonds%0D%0A%0D%0A%0D%0A%0D%0AGatsby+Days%0D%0A%0D%0A%0D%0A%0D%0AVantille+Farms%0D%0A%0D%0A%0D%0A%0D%0AFencestyle%0D%0A%0D%0A%0D%0A%0D%0A+';
var metaContents  = '5+Star+Day+Spa.+Elite+and+affordable%0D%0A%0D%0ASpa+Excelsior+Springs%0D%0A%0D%0AhCG+Diet%0D%0ASpa+Excelsior+Springs%2C+Spa+Kansas+City%2C+hCG+Kansas+City%2C+hCG+Excelsior+Springs%2C+IMAGE+skin+care%2C+Facials%2C+Brazillian%2C+Lash+Perm%2C+Lash+Extensions%2C+Massage%2C+%0D%0AAcne%2C+sun+damage+';
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();
};

