/* [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','100501',jdecode('Home'),jdecode(''), jdecode('%2F100501.html'), 'true',[],'',''],
	['PAGE','100636',jdecode('Hours'),jdecode(''), jdecode('%2F100636.html'), 'true',[],'',''],
	['PAGE','106701',jdecode('Request+Appointment'),jdecode(''), jdecode('%2F106701.html'), 'true',[],'',''],
	['PAGE','111901',jdecode('Buy+a+GIFT+Certificate'),jdecode(''), jdecode('%2F111901.html'), 'true',[],'',''],
	['PAGE','222101',jdecode('AVEDA+Holiday'),jdecode(''), jdecode('%2F222101.html'), 'false',[],'',''],
	['PAGE','106722',jdecode('What%26%23x27%3Bs+New'),jdecode(''), jdecode('%2F106722.html'), 'true',[],'',''],
	['PAGE','177701',jdecode('Events'),jdecode(''), jdecode('%2F177701.html'), 'true',[],'',''],
	['PAGE','159101',jdecode('Environment'),jdecode(''), jdecode('%2F159101.html'), 'false',[],'',''],
	['PAGE','100552',jdecode('Buffalo+Team'),jdecode(''), jdecode('%2F100552.html'), 'true',[],'',''],
	['PAGE','162922',jdecode('Ambush+Party'),jdecode(''), jdecode('%2F162922.html'), 'false',[],'',''],
	['PAGE','190301',jdecode('Earth+Month+Baskets+Bufalo'),jdecode(''), jdecode('%2F190301.html'), 'false',[],'',''],
	['PAGE','106743',jdecode('Monticello+Team'),jdecode(''), jdecode('%2F106743.html'), 'true',[],'',''],
	['PAGE','190322',jdecode('Earth+Month+Baskets+Monticello'),jdecode(''), jdecode('%2F190322.html'), 'false',[],'',''],
	['PAGE','129401',jdecode('Monthly+Specials'),jdecode(''), jdecode('%2F129401.html'), 'true',[],'',''],
	['PAGE','100573',jdecode('Menu+Hair+Services'),jdecode(''), jdecode('%2F100573.html'), 'true',[],'',''],
	['PAGE','106764',jdecode('Menu+Massages'),jdecode(''), jdecode('%2F106764.html'), 'true',[],'',''],
	['PAGE','106785',jdecode('Menu+Facials'),jdecode(''), jdecode('%2F106785.html'), 'true',[],'',''],
	['PAGE','106806',jdecode('Menu+Spa+Packages'),jdecode(''), jdecode('%2F106806.html'), 'true',[],'',''],
	['PAGE','100594',jdecode('Jobs'),jdecode(''), jdecode('%2F100594.html'), 'true',[],'',''],
	['PAGE','106827',jdecode('Buffalo+Location'),jdecode(''), jdecode('%2F106827.html'), 'true',[],'',''],
	['PAGE','100657',jdecode('Monticello+location'),jdecode(''), jdecode('%2F100657.html'), 'true',[],'',''],
	['PAGE','106848',jdecode('e-mail'),jdecode(''), jdecode('%2F106848.html'), 'true',[],'',''],
	['PAGE','187601',jdecode('Donation+Requests'),jdecode(''), jdecode('%2F187601.html'), 'true',[],'',''],
	['PAGE','108301',jdecode('Sign+our+guestbook'),jdecode(''), jdecode('%2F108301.html'), 'false',[],'',''],
	['PAGE','108322',jdecode('Pictures'),jdecode(''), jdecode('%2F108322.html'), 'false',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='222222';
theSitetree.keyvisualId='11374';
theSitetree.keyvisualName='kv_11374.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13802';
theSitetree.contentColor='1B1B1B';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Display',
				paletteFamily: 	'222222',
				keyvisualId: 	'11374',
				keyvisualName: 	'kv_11374.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13802',
				contentColor: 	'1B1B1B',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108322',
internalId:  '',
customField: '20091015-070628'
};
webappMappings['7060']=webappMappings['7060-c891dca2e3990502866f39acfa7efef9']={
webappId:    '7060',
documentId:  '108322',
internalId:  'c891dca2e3990502866f39acfa7efef9',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106827',
internalId:  '',
customField: '20091106-083141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106848',
internalId:  '',
customField: '20110708-083117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106743',
internalId:  '',
customField: '20120131-162947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106764',
internalId:  '',
customField: '20120131-163530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106785',
internalId:  '',
customField: '20120131-163551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106806',
internalId:  '',
customField: '20110720-143106'
};
webappMappings['1002']=webappMappings['1002-108301aendu0in2wkg']={
webappId:    '1002',
documentId:  '108301',
internalId:  '108301aendu0in2wkg',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '100501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106722',
internalId:  '',
customField: '20120131-163925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106701',
internalId:  '',
customField: '20120203-074042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100636',
internalId:  '',
customField: '20111009-033444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100657',
internalId:  '',
customField: '20110708-083150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100594',
internalId:  '',
customField: '20110708-083421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129401',
internalId:  '',
customField: '20120131-163437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100573',
internalId:  '',
customField: '20110504-081300'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '106827',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100552',
internalId:  '',
customField: '20120131-162532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100501',
internalId:  '',
customField: '20120203-002712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108301',
internalId:  '',
customField: '20091110-081104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111901',
internalId:  '',
customField: '20120131-154031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187601',
internalId:  '',
customField: '20110120-090256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162922',
internalId:  '',
customField: '20110914-121154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159101',
internalId:  '',
customField: '20100818-162150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190301',
internalId:  '',
customField: '20110422-104427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177701',
internalId:  '',
customField: '20120131-170839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190322',
internalId:  '',
customField: '20110422-104906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222101',
internalId:  '',
customField: '20111104-003100'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2WKG';
var companyName   = 'Exhileration+Salon+%26+Spa';
var htmlTitle	  = 'Exhileration+Salon+and+Spa';
var metaKeywords  = 'salon%2C+spa%2C+hair%2C+nails%2C+buffalo%2C+massage%2C+facial%2C+pedicure%2C+manicure%2C+spa+package%2C+AVEDA%2C+Aveda';
var metaContents  = 'Exhileration+Salon+and+Spa%2C+an+AVEDA+Concept+salon%2C+located+in+Buffalo+MN++Exhileration+Salon+and+Spa%2C+an+AVEDA+LIFESTYLE+salon%2C+located+in+Monticello%2C+MN';
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();
};

