/* [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','701',jdecode('Home'),jdecode(''), jdecode('%2F701.html'), 'true',[ 
		['ITEM','62201',jdecode('Meet+Dr.+Squyres+on+Video'),jdecode(''), jdecode('http%3A%2F%2Fgallery.me.com%2Fdrjsquyres%23100038'), 'true',[],'','_blank'],
		['ITEM','65701',jdecode('Dr.+Squyres+on+Facebook'),jdecode(''), jdecode('http%3A%2F%2Fwww.facebook.com%2Fpages%2FJill-Mestel-Squyres-PhD%2F122183181129832%3Fsk%3Dwall'), 'true',[],'','_blank'],
		['ITEM','65801',jdecode('Dr.+Squyres%26%23x27%3B+Blog'),jdecode(''), jdecode('http%3A%2F%2Fdrjillsquyres.blogspot.com'), 'true',[],'','_blank']
	],'',''],
	['PAGE','752',jdecode('About+Dr.+Squyres'),jdecode(''), jdecode('%2F752.html'), 'true',[],'',''],
	['PAGE','773',jdecode('Services'),jdecode(''), jdecode('%2F773%2Findex.html'), 'true',[ 
		['PAGE','56901',jdecode('Marriage+and+Family'),jdecode(''), jdecode('%2F773%2F56901.html'), 'true',[],'',''],
		['PAGE','56922',jdecode('Emotional+Problems'),jdecode(''), jdecode('%2F773%2F56922.html'), 'true',[],'',''],
		['PAGE','57901',jdecode('Teens'),jdecode(''), jdecode('%2F773%2F57901.html'), 'true',[],'',''],
		['PAGE','56943',jdecode('Health%2C+Illness+and+Disability'),jdecode(''), jdecode('%2F773%2F56943.html'), 'true',[],'',''],
		['PAGE','56964',jdecode('Executives%2FProfessionals'),jdecode(''), jdecode('%2F773%2F56964.html'), 'true',[],'',''],
		['PAGE','56985',jdecode('Personal+Growth%2FLife+Coaching'),jdecode(''), jdecode('%2F773%2F56985.html'), 'true',[],'',''],
		['PAGE','57006',jdecode('Gifted+Individuals'),jdecode(''), jdecode('%2F773%2F57006.html'), 'true',[],'','']
	],'',''],
	['PAGE','794',jdecode('News'),jdecode(''), jdecode('%2F794.html'), 'true',[],'',''],
	['PAGE','12901',jdecode('Fees+%26+scheduling'),jdecode(''), jdecode('%2F12901.html'), 'true',[],'',''],
	['PAGE','63401',jdecode('New+Client+Forms'),jdecode(''), jdecode('%2F63401.html'), 'true',[],'',''],
	['PAGE','9501',jdecode('Insurance'),jdecode(''), jdecode('%2F9501.html'), 'true',[],'',''],
	['PAGE','5501',jdecode('How+to+contact+us'),jdecode(''), jdecode('%2F5501.html'), 'true',[],'',''],
	['PAGE','5522',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F5522.html'), 'true',[],'',''],
	['PAGE','11801',jdecode('Reading+List'),jdecode(''), jdecode('%2F11801.html'), 'true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Mote';
theSitetree.paletteFamily='0450C2';
theSitetree.keyvisualId='11108';
theSitetree.keyvisualName='kv_11108.jpg';
theSitetree.fontsetId='31999';
theSitetree.graphicsetId='13828';
theSitetree.contentColor='3264B0';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mote',
				paletteFamily: 	'0450C2',
				keyvisualId: 	'11108',
				keyvisualName: 	'kv_11108.jpg',
				fontsetId: 		'31999',
				graphicsetId: 	'13828',
				contentColor: 	'3264B0',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20111004-173444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20110228-194307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20111207-163732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20110225-194236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20111207-161923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20101102-134434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20110324-211409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20110324-212025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20110324-213237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20110225-204219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56901',
internalId:  '',
customField: '20110228-194712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56922',
internalId:  '',
customField: '20110225-134733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56943',
internalId:  '',
customField: '20110225-152015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56964',
internalId:  '',
customField: '20110225-194044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56985',
internalId:  '',
customField: '20110226-182828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57006',
internalId:  '',
customField: '20110226-233346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57901',
internalId:  '',
customField: '20110228-194604'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEBA0';
var companyName   = 'JILL+MESTEL+SQUYRES+PhD';
var htmlTitle	  = 'Jill+Squyres%2C+PhD';
var metaKeywords  = 'psychology%0Apsychologist%0Atherapist%0ASan+Antonio%0Apsychotherapist%0ASquyres%0AJill+Mestel%0A';
var metaContents  = '';
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();
};

