/* [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','61201',jdecode('Locke+Solutions'),jdecode(''),'/61201/index.html','true',[ 
		['PAGE','87601',jdecode('Mary+Lou+Locke'),jdecode(''),'/61201/87601.html','false',[],'']
	],''],
	['PAGE','452',jdecode('Services+Provided'),jdecode(''),'/452.html','true',[],''],
	['PAGE','401',jdecode('What+is+a+VA%3F'),jdecode(''),'/401.html','true',[],''],
	['PAGE','473',jdecode('Benefits'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','21301',jdecode('Go+Green%21'),jdecode(''),'/473/21301.html','true',[],'']
	],''],
	['PAGE','93201',jdecode('Code+of+Ethics'),jdecode(''),'/93201.html','true',[],''],
	['PAGE','536',jdecode('Pricing+%26+Payment'),jdecode(''),'/536.html','true',[],''],
	['PAGE','88501',jdecode('Testimonials+%26+Guestbook'),jdecode(''),'/88501.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Vita02';
theSitetree.paletteFamily='A9AAAA';
theSitetree.keyvisualId='11350';
theSitetree.keyvisualName='kv_11350.jpg';
theSitetree.fontsetId='32120';
theSitetree.graphicsetId='13935';
theSitetree.contentColor='606264';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Vita02',
				paletteFamily: 	'A9AAAA',
				keyvisualId: 	'11350',
				keyvisualName: 	'kv_11350.jpg',
				fontsetId: 		'32120',
				graphicsetId: 	'13935',
				contentColor: 	'606264',
				contentBGColor: 'F6FBFE',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '61201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61201',
internalId:  '',
customField: '20080326-203025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080319-211757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88501',
internalId:  '',
customField: '20080319-212944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87601',
internalId:  '',
customField: '20080316-113416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080316-145335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080316-145306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20080508-002237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080316-145349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93201',
internalId:  '',
customField: '20080316-145158'
};
webappMappings['1002']=webappMappings['1002-88501aendu0in25ht']={
webappId:    '1002',
documentId:  '88501',
internalId:  '88501aendu0in25ht',
customField: 'icq=false'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '88501',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '536',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '93201',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '21301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '473',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '401',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '452',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '87601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '61201',
internalId:  '',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN25HT';
var companyName   = 'Locke+Solutions';
var htmlTitle	  = 'Locke+Solutions';
var metaKeywords  = 'virtual+assistant+environmental.+virtual+assistant+phoenix%2C+virtual+assistant+queen+creek%2C+va+arizona%2C+virtual+assistant+arizona%2C+va+queen+creek%2C+virtual+assistant+pinal+county%2C+va+pinal+county.+ocke+Solutions%2C+virtual+assistance%2C+arizona+assistants%2C+queen+creek+assistant%2C+office+assistant%2C+executive+assistant%2C+local+assistants%2C+office+help%2C+event+planner%2C+mailing+solutions%2C+mailing+solutions%2C+construction%2C+promotion+products%2C+energy+conservation%2C+Clerical%2C+Data+Entry%2C+Event+Planning%2C+Project+Coordination%2C+internet+Research%2C+Marketing+Support%2C+Personal+Assistant%2C+Proof+Reading%2C+office+task%2C+business+task%2C+greg+turner%2C+turner+marketing%2C+integrated+building+controls%2C+ASHRAE%2C+golf+outings%2C+dedicated+partner+liaison%2C+detailed+resume+maryloulockesolutions.com+office+cell%2C+read+detailed+resume+maryloulockesolutions.com+office%2C+resume+maryloulockesolutions.com%2C+energy+conservation%2C+private+independently+owned+virtual+assistant%2C+benefit+resource+challenged+startup+companies%2C+construction+assistant%2C+estimating+assistant%2C+estimator+assistant%2C+builders+assistant%2C+construction+support%2C+estimators+support%2C+contractors+assistant%2C+contractors+support%2C+phoenix+area+assistant%2C+arizona+area+assistant%2C+assistant+to+help+support';
var metaContents  = 'Locke+Solutions+is+a+private%2C+independently+owned+Virtual+Assistant+business.++The+company+was+started+when+Mary+Lou+realized+that+her+years+of+experience+could+be+used+to+benefit+resource+challenged+start-up+companies.++These+companies+could+not+otherwise+afford+or+justify+the+expense+of+hiring+a+part+or+full+time+in-house+assistant.++It+was+also+a+great+time+to+think+about+the+rising+cost+of+living+and+ways+that+she+could+contribute+to+Energy+Conservation.';
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();
};
