/* [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','5101',jdecode('Home'),jdecode(''),'/5101.html','true',[],''],
	['PAGE','5152',jdecode('Our+Services'),jdecode(''),'/5152.html','true',[],''],
	['PAGE','39301',jdecode('Massage+Glossary'),jdecode(''),'/39301.html','true',[],''],
	['PAGE','46301',jdecode('Massage+Benefits'),jdecode(''),'/46301.html','true',[],''],
	['PAGE','66701',jdecode('Massage+Packages'),jdecode(''),'/66701.html','true',[],''],
	['PAGE','12101',jdecode('About+Us'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','5194',jdecode('Contact+Us'),jdecode(''),'/5194.html','true',[],''],
	['PAGE','35501',jdecode('Search'),jdecode(''),'/35501.html','true',[],''],
	['PAGE','66722',jdecode('Other+Web+Sites'),jdecode(''),'/66722.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Intense';
theSitetree.paletteFamily='947CFC';
theSitetree.keyvisualId='3498';
theSitetree.keyvisualName='kv_3498.jpg';
theSitetree.fontsetId='10439';
theSitetree.graphicsetId='10801';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D7CEFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Intense',
				paletteFamily: 	'947CFC',
				keyvisualId: 	'3498',
				keyvisualName: 	'kv_3498.jpg',
				fontsetId: 		'10439',
				graphicsetId: 	'10801',
				contentColor: 	'000000',
				contentBGColor: 'D7CEFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AD401A',
				e_color: 		'727171',
				f_color: 		'3F3F3F',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-10028']={
webappId:    '7008',
documentId:  '5194',
internalId:  '10028',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20090113-192317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20081129-114119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20081207-175003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5194',
internalId:  '',
customField: '20090113-213227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20090715-204121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66701',
internalId:  '',
customField: '20090117-145105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20090113-194134'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '35501',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20081029-213249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66722',
internalId:  '',
customField: '20090426-095144'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INE7JA';
var companyName   = 'Healing+Springs+Massage';
var htmlTitle	  = 'Mobile+Massage+Services+in+the+privacy+of+your+home%2C+office%2C+hotel+suite%2C+etc.+7+days+a+week.+Licensed+Therapists.';
var metaKeywords  = 'Mobile+Massage%2C+Ocala%2C+FL%2C+In+your+home+massage%2C+Deep+Tissue+Massage%2C+Massage+ocala%2C+Raindrop+Therapy%2C+Equine+Massage%2C+Neuromuscular%2C+Massage+therapy%2C+Massage+therapy+Ocala%2C+FL%2C+Gainesville+FL%2C+Marion+County%2C+Mobile+Massage%2C+House+Calls%2C+On-site+Massage+Therapy%2C+Deep+tissue%2C+Relaxation%2C+Swedish%2C+Hot+Stone%2C+Warm+Stone%2C+Reiki%2C+Equine+Massage%2C+Equine%2C+Pain+Relief%2C+Stress+Relief%2C+Myofascial+Release%2C+Trigger+Point%2C+Sports+Massage%2C+Sports%2C+Relief%2C+Fibromyalgia%2C+Headache%2C+Stress%2C+Sore+muscles%2C+Joint+pain%2C+Chiropracters+in+Ocala%2C+FL%2C+Therapeutic+Massage%2C+Deep+tissue+Massage%2C+Licensed+Massage+therapists.+Pain+relief%2C+Stress+relief%2C+removal+of+toxins%2C+increases+circulation%2C+decreases+anxiety';
var metaContents  = 'Healing+Springs+Massage.+Our+Licensed+Massage+Therapists+travel+to+your+Home%2C+your+Office+or+Hotel+Suite%2C+etc.+We+provide+you+or+your+group+with+on-site%2C+professional+massage+therapy.The+only+thing+you+have+to+do+is+call+and+schedule+and+appointment+with+one+of+our+Female+or+Male+therapists.+For+a+complete+list+of+the+services+we+offer%2C+click+on%3A+Our+Services.+Our+therapists+are+available+7+days+a+week.+Pain+ans+stress+relief.+Equine+Massage.';
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();
};
