/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','25001',jdecode('See+Our+Facility'),jdecode(''),'/25001.html','true',[],''],
	['PAGE','30201',jdecode('Botox+%26+Juvederm'),jdecode(''),'/30201.html','true',[],''],
	['PAGE','55901',jdecode('Natural+Weight+Loss'),jdecode(''),'/55901.html','true',[],''],
	['PAGE','452',jdecode('Laser+Hair+Removal'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','28266',jdecode('Price+List'),jdecode(''),'/452/28266.html','true',[],'']
	],''],
	['PAGE','15901',jdecode('IPL+PhotoFacial'),jdecode(''),'/15901/index.html','true',[ 
		['PAGE','28321',jdecode('Price+List'),jdecode(''),'/15901/28321.html','true',[],'']
	],''],
	['PAGE','40701',jdecode('Fractional+Laser'),jdecode(''),'/40701/index.html','true',[ 
		['PAGE','40722',jdecode('Price+List'),jdecode(''),'/40701/40722.html','true',[],'']
	],''],
	['PAGE','43101',jdecode('Ultimate+Skin+Make-Over'),jdecode(''),'/43101.html','true',[],''],
	['PAGE','473',jdecode('Skin+Care+Services'),jdecode(''),'/473.html','true',[],''],
	['PAGE','41101',jdecode('Waxing+Services'),jdecode(''),'/41101.html','true',[],''],
	['PAGE','28330',jdecode('Massage+Therapy'),jdecode(''),'/28330.html','true',[],''],
	['PAGE','515',jdecode('Sanitas+Skin+Nutrition'),jdecode(''),'/515.html','true',[],''],
	['PAGE','36301',jdecode('Instant+Gift+Certificate'),jdecode(''),'/36301.html','false',[],''],
	['PAGE','34101',jdecode('Instant+Gift+Certificates'),jdecode(''),'/34101.html','true',[],''],
	['PAGE','536',jdecode('Discount+Offers'),jdecode(''),'/536.html','true',[],''],
	['PAGE','557',jdecode('Contact+Us'),jdecode(''),'/557/index.html','true',[ 
		['PAGE','29234',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/557/29234.html','false',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='AC2E53';
theSitetree.keyvisualId='7138';
theSitetree.keyvisualName='kv_7138.jpg';
theSitetree.fontsetId='16394';
theSitetree.graphicsetId='12128';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var theTemplate={
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7138',
				keyvisualName: 	'kv_7138.jpg',
				fontsetId: 		'16394',
				graphicsetId: 	'12128',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20091021-160805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20090312-204252'
};
webappMappings['7060']=webappMappings['7060-e58372e983708b04af3adb1b4516d03f']={
webappId:    '7060',
documentId:  '25001',
internalId:  'e58372e983708b04af3adb1b4516d03f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40701',
internalId:  '',
customField: '20100217-132312'
};
webappMappings['1001']=webappMappings['1001-ahw050inxxzk11d416b1f5b']={
webappId:    '1001',
documentId:  '557',
internalId:  'ahw050inxxzk11d416b1f5b',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxxzk11d416b1f5b']={
webappId:    '1001',
documentId:  '29234',
internalId:  'ahw050inxxzk11d416b1f5b',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090909-133815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20100113-152922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100102-153740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28266',
internalId:  '',
customField: '20100102-153828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20100102-155322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28321',
internalId:  '',
customField: '20100207-162945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100217-132845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28330',
internalId:  '',
customField: '20100217-141134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100113-154020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40722',
internalId:  '',
customField: '20100303-144257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100113-154058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090320-200120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29234',
internalId:  '',
customField: '20081027-230658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20090909-193354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20100303-144208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20090605-214346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55901',
internalId:  '',
customField: '20100102-153653'
};
webappMappings['7008']=webappMappings['7008-6600']={
webappId:    '7008',
documentId:  '557',
internalId:  '6600',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXZK';
var companyName   = 'Skin+Care-Laser-Botox-Massage';
var htmlTitle	  = 'www.SavannaMedSpa.com';
var metaKeywords  = 'laser%2C+hair%2C+removal%2C+aesthetics%2C+beauty%2C+photofacial%2C+skin%2C+rejuvenation%2C+facial%2C+IPL+%2C+fractional%2C+massage%2C+age%2C+spot%2C+spa%2C+salon%2C+medspa%2C+sun+damage%2C+capillaries%2C+younger%2C+tucson%2C+affordable%2C+healthy%2C+natural%2C+sanitas%2C+colorescience%2C+makeup%2C+mineral%2C++treatment%2C+chemical+peel%2C+microdermabrasion%2C+savanna%2C+waxing%2C+specialist%2C+lumenis%2C+non-invasive%2C+non-ablative%2C+non-surgical%2C+botox%2C+juvederm%2C+injectables%2C+obagi%2C+sunblock%2C+hot%2C+rock%2C+swedish%2C+aromatherapy%2C+stress%2C+relief%2C+deep%2C+tissue%2C+med%2C+acne%2C+peel%2C+wrinkle%2C+gift%2C+card%2C+medspa%2C+therapy%2C+tucson%2C+arizona%2C+HCG%2C+hcg%2C+hCG%2C+natural+weight+loss%2C+weight+loss%2C+dysport%2C+perlane%2C+restylane%2C+savannah';
var metaContents  = 'Savanna+MedSpa+offers+a+variety+of+aesthetics%2C+Laser+Hair+Removal%2C+IPL+PhotoFacial%2C+Fractional+Skin+Rejuvenation%2C+massage%2C+waxing%2C+natural+weight+loss%2C+and+skin+care+treatments%2C+including+Botox%2C+Dysport%2C+Juvederm%2C+Perlane%2C+and+Restylane.+We+are+proud+to+offer+Sanitas+Skin+Care+product+line%21+We+also+offer+Colorescience+Mineral+Makeup+and+a+variety+of+gift+ideas+including+Gift+Cards.+';
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();
};
