/* [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','1501',jdecode('Home'),jdecode(''), jdecode('%2F1501.html'), 'true',[],'',''],
	['ITEM','92001',jdecode('Book+Online%2F+Buy+Gift+Certificates'),jdecode(''), jdecode('http%3A%2F%2Fwww.secure-booker.com%2Fthaime%2FBookOnlineStart.aspx'), 'true',[],'',''],
	['PAGE','17601',jdecode('Massages+%26+Combos'),jdecode(''), jdecode('%2F17601.html'), 'true',[],'',''],
	['PAGE','97501',jdecode('Add-Ons'),jdecode(''), jdecode('%2F97501.html'), 'true',[],'',''],
	['PAGE','97001',jdecode('Thai+Massage'),jdecode(''), jdecode('%2F97001.html'), 'true',[],'',''],
	['PAGE','17727',jdecode('The+Extremities-Face%2C+Hands%2C+and+Feet'),jdecode(''), jdecode('%2F17727.html'), 'true',[],'',''],
	['PAGE','17643',jdecode('Packages+%26+Body+Treaments'),jdecode(''), jdecode('%2F17643.html'), 'true',[],'',''],
	['PAGE','123801',jdecode('Products'),jdecode(''), jdecode('%2F123801.html'), 'true',[],'',''],
	['PAGE','100901',jdecode('Join+our+newletter'),jdecode(''), jdecode('%2F100901.html'), 'true',[],'',''],
	['PAGE','124201',jdecode('Therapist+Bios'),jdecode(''), jdecode('%2F124201.html'), 'false',[],'',''],
	['PAGE','122701',jdecode('Pictures'),jdecode(''), jdecode('%2F122701.html'), 'true',[],'',''],
	['PAGE','38401',jdecode('Places+to+Stay'),jdecode(''), jdecode('%2F38401.html'), 'true',[],'',''],
	['ITEM','98401',jdecode('Map+and+Directions'),jdecode(''), jdecode('http%3A%2F%2Fmaps.google.com%2Fmaps%3Fq%3Dmassage%2Bhot%2Bsprings%2Bar%26hl%3Den%26gl%3Dus%26view%3Dmap%26mcsrc%3Ddetailed_reviews%26num%3D10%26ie%3DUTF8%26start%3D0%26f%3Dd%26daddr%3D5001%2BCentral%2BAvenue%2C%2BHot%2BSprings%2C%2BAR%2B71913%26geocode%3DCTNe3lHzAo9MFXnFDAIdPilz-iESNY8YgjxjFg%26ved%3D0CAgQ_wY%26sa%3DX%26ei%3DZGwITIWSEpHkNOqN5cAO'), 'true',[],'',''],
	['PAGE','32701',jdecode('Contact+Us'),jdecode(''), jdecode('%2F32701.html'), 'true',[],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='FF9F21';
theSitetree.keyvisualId='2242';
theSitetree.keyvisualName='love3.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='418';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FF9F21';
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: 			'Enjoy',
				paletteFamily: 	'FF9F21',
				keyvisualId: 	'2242',
				keyvisualName: 	'love3.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'418',
				contentColor: 	'FFFFFF',
				contentBGColor: 'FF9F21',
				a_color: 		'FF9F21',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1501',
internalId:  '',
customField: '20111205-211620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20111205-214234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17643',
internalId:  '',
customField: '20111205-194040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17727',
internalId:  '',
customField: '20111205-195130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97001',
internalId:  '',
customField: '20111205-212025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97501',
internalId:  '',
customField: '20111205-193846'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '17601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '32701',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '38401',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100901',
internalId:  '',
customField: '20111205-194245'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '17727',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124201',
internalId:  '',
customField: '20111205-215312'
};
webappMappings['1002']=webappMappings['1002-100901avfl30inh4x0']={
webappId:    '1002',
documentId:  '100901',
internalId:  '100901avfl30inh4x0',
customField: 'icq=false'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '1501',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '97501',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '97001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123801',
internalId:  '',
customField: '20111205-212607'
};
webappMappings['7008']=webappMappings['7008-8433']={
webappId:    '7008',
documentId:  '32701',
internalId:  '8433',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20100603-210818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20110614-191351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122701',
internalId:  '',
customField: '20111205-211446'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '17643',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '17601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '17601',
internalId:  '1501',
customField: '1501'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '100901',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1501',
internalId:  '',
customField: 'language:en;country:US;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH4X0';
var companyName   = '501-520-4772+Open+Daily%21++Online+giftcards%21';
var htmlTitle	  = 'Hot+Springs+Massage%2C+Arkansas+Thai-Me+a+Day+Spa+and+Massage+Spa%21';
var metaKeywords  = 'massage+hot+springs%2C+hot+springs+Massage%2C+massage+hot+springs%2C+hot+springs+Massage%2C+hot+springs+spa%2C+hot+springs+spas%2C+spa+hot+springs%2C+spas+hot+springs%2C+hot+springs+spa%2C+hot+springs+spas%2C+spa+hot+springs%2C+spas+hot+springs%2C+day+spa+hot+springs%2C+hot+springs+day+spa%2C+day+spa+hot+springs%2C+hot+springs+day+spa%2C+hot+springs+massages%2C+massages+hot+springs%2C+hot+springs+massages%2C+massages+hot+springs%2C+hot+springs+arkansas+day+spa+massage+thai+massage%2Chot+springs+hot+stone+massage%2C+hot+springs+couples+massage%2C+hot+springs+deep+tissue+massage%2C+hot+springs+sports+massage%2C+hot+springs+Swedish+Massage%2C+hot+springs+reflexology+for+the+hands+and+feet%2C+hot+springs+headache+and+sinus+treatments%2C+hot+springs+facial+massage%2C+hot+springs+couples+packages%2C+hot+springs+body+wraps%2C+hot+springs+body+scrubs+thai+massage%2C+hot+stone+massage%2C+couples+massage%2C+deep+tissue+massage%2C+sports+massage%2C+Swedish+Massage%2C+reflexology+for+the+hands+and+feet%2C+headache+and+sinus+treatments%2C+facial+massage%2C+couples+packages%2C+body+wraps%2C+body+scrubs.';
var metaContents  = 'Massage+Hot+Springs.+Hot+Springs+Massage%2C+Thai-Me+in+Hot+Springs%2C+Arkansas+is+a+Hot+Springs+day+spa+featuring+an+array+of+different+hot+Springs+massage+services.+All+of+our+massage+packages+are+customized+to+the+client.++Our+Hot+Springs+Massage+Therapist+are+skilled+and+trained+with+excellence+to+give+a+wonderful+service+ever+time%21++If+you+love+massages%2C+then+you+will+love+our+hot+springs+spa+massage+menu.++We+offer+thai+massage%2C+hot+stone+massage%2C+hot+springs+couples+massage%2C+hot+springs+deep+tissue+massage%2C+hot+springs+sports+massage%2C+hot+springs+Swedish+Massage%2C+hot+springs+reflexology+for+the+hands+and+feet%2C+hot+springs+headache+and+sinus+treatments%2Chot+springs+facial+massage%2Chot+springs+couples+packages%2C+hot+springs+body+wraps%2C+body+scrubs.++Massage+is+the+main+focus+of+our+day+spa+in+Hot+Springs.++We+believe+when+a+person+feels+good+from+the+inside+out%2C+they+will+live+a+more+optimistic+and+prosperious+live%21++So+getting+a+regular+massage+can+improve+the+quality+of+live+for+everyone+involved%21';
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();
};

