/* [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','10001',jdecode('Home'),jdecode(''),'/10001.html','true',[],''],
	['PAGE','25001',jdecode('Picture+Tour'),jdecode(''),'/25001.html','true',[],''],
	['PAGE','10022',jdecode('Meet+the+Staff'),jdecode(''),'/10022/index.html','true',[ 
		['PAGE','10043',jdecode('Brenda+D.+Scott%2C+M.D.'),jdecode(''),'/10022/10043.html','true',[],''],
		['PAGE','24301',jdecode('Amanda+Simpson'),jdecode(''),'/10022/24301.html','true',[],''],
		['PAGE','10169',jdecode('Sandra+Fairchild'),jdecode(''),'/10022/10169.html','true',[],'']
	],''],
	['PAGE','10190',jdecode('Cosmetic+Procedures'),jdecode(''),'/10190/index.html','true',[ 
		['PAGE','10211',jdecode('BotoxCosmetic%C2%AE'),jdecode(''),'/10190/10211.html','true',[],''],
		['PAGE','10232',jdecode('Dermal+Fillers'),jdecode(''),'/10190/10232.html','true',[],''],
		['PAGE','10253',jdecode('Cosmetic+Laser'),jdecode(''),'/10190/10253.html','true',[],''],
		['PAGE','10274',jdecode('LED+%28Light+Emitting+Diode%29'),jdecode(''),'/10190/10274.html','true',[],''],
		['PAGE','33001',jdecode('Light+Therapy'),jdecode(''),'/10190/33001.html','true',[],'']
	],''],
	['PAGE','10484',jdecode('Weight+Loss+Program'),jdecode(''),'/10484.html','true',[],''],
	['PAGE','10295',jdecode('Spa+%26+Hair+Salon'),jdecode(''),'/10295/index.html','true',[ 
		['PAGE','10316',jdecode('Facials'),jdecode(''),'/10295/10316.html','true',[],''],
		['PAGE','47601',jdecode('Hair+Services'),jdecode(''),'/10295/47601.html','true',[],''],
		['PAGE','10358',jdecode('Make-up+Application'),jdecode(''),'/10295/10358.html','true',[],''],
		['PAGE','10421',jdecode('Massage'),jdecode(''),'/10295/10421.html','true',[],''],
		['PAGE','10442',jdecode('Nail+Services'),jdecode(''),'/10295/10442.html','true',[],''],
		['PAGE','10337',jdecode('Waxing'),jdecode(''),'/10295/10337.html','true',[],'']
	],''],
	['PAGE','10505',jdecode('Boutique'),jdecode(''),'/10505/index.html','true',[ 
		['PAGE','10526',jdecode('Insp%C4%ABr+Skin+Care'),jdecode(''),'/10505/10526.html','true',[],''],
		['PAGE','10547',jdecode('Pure+Indulgence+Bath+%26+Body'),jdecode(''),'/10505/10547.html','true',[],''],
		['PAGE','10568',jdecode('Insp%C4%ABr+Mineral+Cosmetics'),jdecode(''),'/10505/10568.html','true',[],'']
	],''],
	['PAGE','40201',jdecode('About+Dr.+Scott'),jdecode(''),'/40201/index.html','true',[ 
		['PAGE','49501',jdecode('Medical+Spa+Nourishes+Mind%2C+Body+Spirit'),jdecode(''),'/40201/49501.html','false',[],'']
	],''],
	['PAGE','65601',jdecode('Articles'),jdecode(''),'/65601/index.html','true',[ 
		['PAGE','40222',jdecode('The+Laser+%22Mini%22+Face+Lift'),jdecode(''),'/65601/40222.html','false',[],''],
		['PAGE','40901',jdecode('New+Technology+for+Acne'),jdecode(''),'/65601/40901.html','false',[],''],
		['PAGE','40243',jdecode('Weight+Loss+High+Protein'),jdecode(''),'/65601/40243.html','false',[],''],
		['PAGE','41401',jdecode('Botox+for+Excessive+Perspiration'),jdecode(''),'/65601/41401.html','false',[],''],
		['PAGE','40264',jdecode('Ask+Dr.+Scott+Column'),jdecode(''),'/65601/40264.html','false',[],''],
		['PAGE','40285',jdecode('A.M.+NW+TV+Appearance'),jdecode(''),'/65601/40285.html','false',[],'']
	],''],
	['PAGE','62801',jdecode('Sign+up+for+Newsletter'),jdecode(''),'/62801.html','true',[],''],
	['PAGE','48301',jdecode('Current+Specials'),jdecode(''),'/48301.html','true',[],''],
	['PAGE','39901',jdecode('Contact+Us'),jdecode(''),'/39901.html','true',[],''],
	['PAGE','19322',jdecode('Directions'),jdecode(''),'/19322.html','true',[],''],
	['PAGE','14401',jdecode('Spa+Policies'),jdecode(''),'/14401.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10022',
internalId:  '',
customField: '20090914-172311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62801',
internalId:  '',
customField: '20090914-190526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20090913-195712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40243',
internalId:  '',
customField: '20090313-220048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40264',
internalId:  '',
customField: '20090313-212542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20090606-034155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10547',
internalId:  '',
customField: '20081019-011352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20090313-215949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10043',
internalId:  '',
customField: '20090914-172527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49501',
internalId:  '',
customField: '20090427-030618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40285',
internalId:  '',
customField: '20090313-192957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20090313-211503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10169',
internalId:  '',
customField: '20090606-003935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10190',
internalId:  '',
customField: '20090913-200404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10211',
internalId:  '',
customField: '20090913-201222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10232',
internalId:  '',
customField: '20090913-201414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10253',
internalId:  '',
customField: '20090913-211220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10274',
internalId:  '',
customField: '20090404-001139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10484',
internalId:  '',
customField: '20090914-163222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10295',
internalId:  '',
customField: '20090427-202050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10316',
internalId:  '',
customField: '20090914-174109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10337',
internalId:  '',
customField: '20081019-185429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10358',
internalId:  '',
customField: '20090308-162031'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '19322',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10421',
internalId:  '',
customField: '20081019-190806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10442',
internalId:  '',
customField: '20081019-191554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20090308-172405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48301',
internalId:  '',
customField: '20090914-180137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10505',
internalId:  '',
customField: '20090913-195834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10526',
internalId:  '',
customField: '20081019-011352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10568',
internalId:  '',
customField: '20090605-225359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20090914-180238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40201',
internalId:  '',
customField: '20090912-190407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40222',
internalId:  '',
customField: '20090914-163411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19322',
internalId:  '',
customField: '20090914-163941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20090914-165820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20090313-220235'
};
webappMappings['7008']=webappMappings['7008-2427']={
webappId:    '7008',
documentId:  '39901',
internalId:  '2427',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47601',
internalId:  '',
customField: '20090914-175606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65601',
internalId:  '',
customField: '20090912-184950'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INEHTP';
var companyName   = 'Insp%C4%ABr+Medispa+%E2%80%A2+you%2C+only+better';
var htmlTitle	  = 'InspirMedispa.com';
var metaKeywords  = 'botox+Troutdale+restylane+laser+juvederm+LED+Gresham+Hood+River+Portland+Dr+Brenda+Scott+best+weight+loss+medication+hair+extensions+waxing+massage+manicure+pedicure+medispa+spa+facials';
var metaContents  = 'botox+Troutdale+restylane+laser+juvederm+LED+Gresham+Hood+River+Portland+Dr+Brenda+Scott+best+weight+loss+medication+hair+extensions+waxing+massage+manicure+pedicure+medispa+spa+facials';
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();
};
