/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Services'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Contact+Me'),jdecode(''),'/473.html','true',[],''],
	['PAGE','515',jdecode('For+Couples'),jdecode(''),'/515.html','true',[],''],
	['PAGE','536',jdecode('Sex+Therapy'),jdecode(''),'/536.html','true',[],''],
	['PAGE','557',jdecode('Sexual+Addiction'),jdecode(''),'/557.html','true',[],''],
	['PAGE','21801',jdecode('Group+therapy'),jdecode(''),'/21801.html','true',[],''],
	['PAGE','13101',jdecode('CHAANGE+Program'),jdecode(''),'/13101.html','true',[],''],
	['PAGE','11001',jdecode('Forms'),jdecode(''),'/11001/index.html','true',[ 
		['PAGE','599',jdecode('Information+Form'),jdecode(''),'/11001/599.html','true',[],''],
		['PAGE','10801',jdecode('Hippa+Consent+Form'),jdecode(''),'/11001/10801.html','true',[],''],
		['PAGE','10822',jdecode('HIPPA+Privacy+Notice'),jdecode(''),'/11001/10822.html','true',[],''],
		['PAGE','12401',jdecode('Policies'),jdecode(''),'/11001/12401.html','true',[],'']
	],''],
	['PAGE','10843',jdecode('Speaking+Schedule'),jdecode(''),'/10843.html','true',[],''],
	['PAGE','494',jdecode('Links'),jdecode(''),'/494.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Common';
theSitetree.paletteFamily='D40202';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='26633';
theSitetree.graphicsetId='13449';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Common',
				paletteFamily: 	'D40202',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'26633',
				graphicsetId: 	'13449',
				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: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100223-180742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20080331-202552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080424-124218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100110-182738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100318-174013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080202-150242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080424-125505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20100110-200959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20100110-195618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20100110-193715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10843',
internalId:  '',
customField: '20100321-134514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10822',
internalId:  '',
customField: '20100110-195707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20100110-190531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20080701-171953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20081111-200346'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
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:  '473',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '515',
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:  '557',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '21801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '13101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '11001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '599',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10822',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '12401',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10843',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '494',
internalId:  '',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN2C6N';
var companyName   = 'Lee+Blackwell%2C+Ph.D.';
var htmlTitle	  = 'Lee+Blackwell%2C+Ph.D.';
var metaKeywords  = 'Individual+psychotherapy%2C+couples+therapy%2C+group+psychotherapy%2C+group+therapy%2C+sex+therapy%2C+sexual+addiction%2C+sexual+compulsion%2C+adults+molested+as+children%2C+men+molested+as+children%2C+incest%2C+anxiety%2C+depression%2C+psychologist%2C+marriage+counselor%2C+marital+therapist%2C+professor%2C+UCLA%2C+faculty%2C+self-defeating+behavior%2C+mens+group+therapy%2C+help%2C+solutions%2C+concerns%2C+bad+marriage%2C+sexual+abuse%2C+stress%2C+trauma%2C+priests%2C+sexual+dysfunction%2C+premature+ejaculation%2C+erectile+dysfunction%2C+ED%2C+orgasm%2C+sexual+desire%2C+desire%2C+pornography%2C+sexual+disorders%2C+male%2C+female%2C+man%2C+woman%2C+men%2C+women%2C+boys%2C+gay%2C+straight%2C+lesbian%2C+bi-sexual%2C+bisexual%2C+homosexual%2C+heterosexual%2C+psychology%2C+shame%2C+child+abuse%2C+safety%2C+psychotherapist%2C+love%2C+love+addiction%2C+sexual+preference%2C+panic%2C+phobia%2C+pain%2C+vaginismus%2C+dyspareunia%2C+hypnosis%2C+Gestalt+Therapy%2C+self%2C+affection%2C+alienation%2C+boy%2C+girl%2C+victim%2C+survivor%2C+male%2C+female%2C+sad%2C+angry%2C+anger%2C+peace%2C+sex+addict%2C+love+addict%2C+love+addiction%2C+libido%2C+masturbation%2C+compulsive+masturbation%2C+kind%2C+safe%2C+good%2C+intimacy%2C+intimate%2C+mate%2C+partner%2C+online+sex%2C+online+sex+addict%2C+online+sex+addiction%2C+online+sexual+addiction%2C+caring%2C+loving%2C+wanting%2C+urges%2C+needs%2C+psychotherapy%2C+marriage%2C+marital%2C+manic%2C+cock%2C+penis%2C+vagina%2C+vulva%2C+pussy%2C+cunt%2C+slut%2C+sexy%2C+whore%2C+prostitute%2C+law%2C+jail%2C+MFT%2C+stimulation%2C+verbal%2C+passive%2C+aggressive%2C+sex+therapy%2C+sex+therapy%2C+sex+therapy%2C+marriage+counseling%2C+marital+therapy%2C+marriage+therapy%2C+sexual+dysfunction%2C+relationship%2C+sex+addiction%2C+therapy%2C+gay%2C+straight%2C+group%2C+individual%2C+love%2C+sex%2C+Huntington+Beach%2C+California%2C+CA+92647%2C+Brentwood%2C+Los+Angeles%2C+90049%2C+business%2C+corporation%2C+family%2C+client%2C+patient%2C+now';
var metaContents  = 'This+is+the+site+for+Dr.+Lee+Blackwell.+In+his+35+years+experience+as+a+psychotherapist+working+with+individuals%2C+couples+and+groups%2C+he+has+developed+a+deep+respect+for+those+seeking+help.++If+you+are+looking+for+help+in+the+areas+of+anxiety%2C+depression%2C+relationship+problems%2C+sexual+problems%2C+sexual+addiction+or+compulsion%2C+self-defeating+behavior%2C+or+would+just+like+to+understand+yourself+better%2C+go+to+the+wesite+at+www.drblackwell.net%2C+or+call+%28714%29848-7280.';
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();
};
