/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','82619',jdecode('Online+Booking'),jdecode(''), jdecode('%2F82619.html'), 'true',[],'',''],
	['PAGE','43101',jdecode('New%21+Monthly+Features'),jdecode(''), jdecode('%2F43101.html'), 'true',[],'',''],
	['PAGE','92441',jdecode('Holiday+Specials'),jdecode(''), jdecode('%2F92441.html'), 'false',[],'',''],
	['PAGE','30201',jdecode('Botox+%26+Dermal+Fillers'),jdecode(''), jdecode('%2F30201.html'), 'true',[],'',''],
	['PAGE','55901',jdecode('Natural+Weight+Loss'),jdecode(''), jdecode('%2F55901.html'), 'false',[],'',''],
	['PAGE','452',jdecode('Laser+Hair+Removal'),jdecode(''), jdecode('%2F452%2Findex.html'), 'true',[ 
		['PAGE','28266',jdecode('Price+List'),jdecode(''), jdecode('%2F452%2F28266.html'), 'true',[],'','']
	],'',''],
	['PAGE','15901',jdecode('IPL+PhotoFacial'),jdecode(''), jdecode('%2F15901%2Findex.html'), 'true',[ 
		['PAGE','28321',jdecode('Price+List'),jdecode(''), jdecode('%2F15901%2F28321.html'), 'true',[],'','']
	],'',''],
	['PAGE','40701',jdecode('Fractional+Laser'),jdecode(''), jdecode('%2F40701%2Findex.html'), 'true',[ 
		['PAGE','40722',jdecode('Price+List'),jdecode(''), jdecode('%2F40701%2F40722.html'), 'true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Skin+Care+Services'),jdecode(''), jdecode('%2F473.html'), 'true',[],'',''],
	['PAGE','41101',jdecode('Waxing+Services'),jdecode(''), jdecode('%2F41101.html'), 'true',[],'',''],
	['PAGE','28330',jdecode('Massage+Therapy'),jdecode(''), jdecode('%2F28330.html'), 'true',[],'',''],
	['PAGE','515',jdecode('Sanitas+Skin+Nutrition'),jdecode(''), jdecode('%2F515.html'), 'true',[],'',''],
	['PAGE','36301',jdecode('Instant+Gift+Certificate'),jdecode(''), jdecode('%2F36301.html'), 'false',[],'',''],
	['PAGE','34101',jdecode('Instant+Gift+Certificates'),jdecode(''), jdecode('%2F34101.html'), 'true',[],'',''],
	['PAGE','25001',jdecode('See+Our+Facility'),jdecode(''), jdecode('%2F25001.html'), 'true',[],'',''],
	['PAGE','536',jdecode('Discount+Offers'),jdecode(''), jdecode('%2F536.html'), 'true',[],'',''],
	['PAGE','557',jdecode('Contact+Us'),jdecode(''), jdecode('%2F557%2Findex.html'), 'true',[ 
		['PAGE','29234',jdecode('Contact+%28follow+up+page%29'),jdecode(''), jdecode('%2F557%2F29234.html'), 'false',[],'','']
	],'','']];
var siteelementCount=22;
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 localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7138',
				keyvisualName: 	'kv_7138.jpg',
				fontsetId: 		'16394',
				graphicsetId: 	'12128',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20110720-185844'
};
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: '20111001-184447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92441',
internalId:  '',
customField: '20101203-173534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82619',
internalId:  '',
customField: '20110720-185509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120103-144439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20110512-205743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110824-180224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28266',
internalId:  '',
customField: '20101105-182010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20110824-180326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28321',
internalId:  '',
customField: '20110720-185713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20120201-143006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28330',
internalId:  '',
customField: '20120201-142312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100113-154020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40722',
internalId:  '',
customField: '20111001-184509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100113-154058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20120103-145319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29234',
internalId:  '',
customField: '20081027-230658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20120103-150432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20120103-144501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43101',
internalId:  '',
customField: '20120202-190423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55901',
internalId:  '',
customField: '20100310-161910'
};
webappMappings['7008']=webappMappings['7008-8003']={
webappId:    '7008',
documentId:  '557',
internalId:  '8003',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-6600']={
webappId:    '7008',
documentId:  '557',
internalId:  '6600',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
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+massage+therapy%2C+massage+treatments%2C+full+body+massage%2C+photofacial%2C+skin%2C+rejuvenation%2C+facial%2C+IPL+%2C+fractional%2C+massage%2C+freckles%2C+anti-aging%2C+stress+relieving%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+Jane+Iredale%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+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%2C+best';
var metaContents  = 'Savanna+MedSpa+offers+a+variety+of+aesthetics+like+Tucson%27s+Best+Facial%2C+Derma-Peels%2C++Laser+Hair+Removal%2C+IPL+PhotoFacial%2C+Skin+Retexturizing+treatments%2C+massage%2C+waxing%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%2C+Jane+Iredale+Mineral+MakeUp%2C+Colorescience%2C+and+more%21+We+also+offer+a+variety+of+gift+ideas+including+Gift+Cards%2C+online+gift+certificates%2C+custom+gift+bags.+';
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();
};

