/* [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','9801',jdecode('Home'),jdecode(''), jdecode('%2F9801.html'), 'true',[],'',''],
	['PAGE','21501',jdecode('About+Us'),jdecode(''), jdecode('%2F21501.html'), 'true',[],'',''],
	['PAGE','22501',jdecode('KaraLee+History'),jdecode(''), jdecode('%2F22501.html'), 'true',[],'',''],
	['PAGE','5194',jdecode('Services'),jdecode(''), jdecode('%2F5194.html'), 'true',[],'',''],
	['PAGE','23101',jdecode('Why+KaraLee%3F'),jdecode(''), jdecode('%2F23101.html'), 'true',[],'',''],
	['PAGE','8522',jdecode('Our+Staff'),jdecode(''), jdecode('%2F8522%2Findex.html'), 'true',[ 
		['PAGE','11101',jdecode('Tariq+Abbasi%2C+MD'),jdecode(''), jdecode('%2F8522%2F11101.html'), 'false',[],'',''],
		['PAGE','11122',jdecode('Madhumalti+Bhavsar%2C+MD'),jdecode(''), jdecode('%2F8522%2F11122.html'), 'false',[],'',''],
		['PAGE','11143',jdecode('Bruce+Binstok%2C+LMSW'),jdecode(''), jdecode('%2F8522%2F11143.html'), 'false',[],'',''],
		['PAGE','11164',jdecode('Susan+Danielson%2C+Psy.+D.'),jdecode(''), jdecode('%2F8522%2F11164.html'), 'false',[],'',''],
		['PAGE','11185',jdecode('Ranya+Elmoursi%2C+MA+LLP'),jdecode(''), jdecode('%2F8522%2F11185.html'), 'false',[],'',''],
		['PAGE','11206',jdecode('John+Heger%2C+Psy.+Sp.'),jdecode(''), jdecode('%2F8522%2F11206.html'), 'false',[],'',''],
		['PAGE','11227',jdecode('Chris+Hennings%2C+MA+TLLP'),jdecode(''), jdecode('%2F8522%2F11227.html'), 'false',[],'',''],
		['PAGE','11248',jdecode('Jeff+Houston%2C+LMSW'),jdecode(''), jdecode('%2F8522%2F11248.html'), 'false',[],'',''],
		['PAGE','11269',jdecode('Jennifer+Lauria%2C+Psy.+Sp.'),jdecode(''), jdecode('%2F8522%2F11269.html'), 'false',[],'',''],
		['PAGE','11290',jdecode('Diane+Lothrop%2C+MS+LLP'),jdecode(''), jdecode('%2F8522%2F11290.html'), 'false',[],'',''],
		['PAGE','11311',jdecode('Wayne+MacIntosh%2C+MA+LLP'),jdecode(''), jdecode('%2F8522%2F11311.html'), 'false',[],'',''],
		['PAGE','11332',jdecode('Karen+Maier%2C+Ph.D.+LP'),jdecode(''), jdecode('%2F8522%2F11332.html'), 'false',[],'',''],
		['PAGE','11353',jdecode('Christina+McAuliffe%2C+MS+LLP'),jdecode(''), jdecode('%2F8522%2F11353.html'), 'false',[],'',''],
		['PAGE','11374',jdecode('Charles+Meredith%2C+Ph.D.+LP'),jdecode(''), jdecode('%2F8522%2F11374.html'), 'false',[],'',''],
		['PAGE','11395',jdecode('Andrea+Nowak%2C+MD'),jdecode(''), jdecode('%2F8522%2F11395.html'), 'false',[],'',''],
		['PAGE','11416',jdecode('Madelyn+Palmieri%2C+MA+LLP'),jdecode(''), jdecode('%2F8522%2F11416.html'), 'false',[],'',''],
		['PAGE','11437',jdecode('Judy+Pearlman%2C+LMSW'),jdecode(''), jdecode('%2F8522%2F11437.html'), 'false',[],'',''],
		['PAGE','11458',jdecode('Judy+Richards%2C+MA+LLP'),jdecode(''), jdecode('%2F8522%2F11458.html'), 'false',[],'',''],
		['PAGE','11479',jdecode('Donald+Silver%2C+MD'),jdecode(''), jdecode('%2F8522%2F11479.html'), 'false',[],'',''],
		['PAGE','11500',jdecode('William+Starnes%2C+Ph.D+LP'),jdecode(''), jdecode('%2F8522%2F11500.html'), 'false',[],'','']
	],'',''],
	['PAGE','9422',jdecode('Location'),jdecode(''), jdecode('%2F9422.html'), 'true',[],'',''],
	['PAGE','9443',jdecode('Intake+Forms+%26+FAQ%26%23x27%3Bs'),jdecode(''), jdecode('%2F9443.html'), 'true',[],'',''],
	['PAGE','9464',jdecode('Joint+Commission'),jdecode(''), jdecode('%2F9464.html'), 'true',[],'',''],
	['PAGE','9485',jdecode('Insurances+Accepted'),jdecode(''), jdecode('%2F9485.html'), 'true',[],'',''],
	['PAGE','9506',jdecode('Billing+Information'),jdecode(''), jdecode('%2F9506.html'), 'true',[],'',''],
	['PAGE','9527',jdecode('HIPAA'),jdecode(''), jdecode('%2F9527.html'), 'true',[],'',''],
	['PAGE','9569',jdecode('Driver%26%23x27%3Bs+License+Restoration'),jdecode(''), jdecode('%2F9569.html'), 'true',[],'',''],
	['PAGE','9590',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F9590.html'), 'true',[],'',''],
	['PAGE','17601',jdecode('Resources'),jdecode(''), jdecode('%2F17601.html'), 'true',[],'',''],
	['PAGE','24301',jdecode('Contact+Us'),jdecode(''), jdecode('%2F24301.html'), 'true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Tendril';
theSitetree.paletteFamily='E4EBF5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33095';
theSitetree.graphicsetId='14057';
theSitetree.contentColor='255092';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-cbeyon',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tendril',
				paletteFamily: 	'E4EBF5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33095',
				graphicsetId: 	'14057',
				contentColor: 	'255092',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20120117-175052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20120112-102116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8522',
internalId:  '',
customField: '20120112-114244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5194',
internalId:  '',
customField: '20120112-100802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20120119-174217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20120118-134952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20120112-095324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11122',
internalId:  '',
customField: '20120112-102228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11395',
internalId:  '',
customField: '20120112-102322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11479',
internalId:  '',
customField: '20120112-102401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11164',
internalId:  '',
customField: '20120112-102447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11332',
internalId:  '',
customField: '20120112-102618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11374',
internalId:  '',
customField: '20120112-102714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11500',
internalId:  '',
customField: '20120112-102758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11143',
internalId:  '',
customField: '20120112-102833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11227',
internalId:  '',
customField: '20120112-102916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11206',
internalId:  '',
customField: '20120112-103034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11311',
internalId:  '',
customField: '20120112-103125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11269',
internalId:  '',
customField: '20120112-103205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11290',
internalId:  '',
customField: '20120112-103244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11416',
internalId:  '',
customField: '20120112-105842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11437',
internalId:  '',
customField: '20120112-105905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11458',
internalId:  '',
customField: '20120112-103449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11248',
internalId:  '',
customField: '20120112-103525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11185',
internalId:  '',
customField: '20120112-105743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11353',
internalId:  '',
customField: '20120112-103755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9464',
internalId:  '',
customField: '20120119-174810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9485',
internalId:  '',
customField: '20120118-133913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9506',
internalId:  '',
customField: '20120114-095852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9527',
internalId:  '',
customField: '20120112-110120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9569',
internalId:  '',
customField: '20120112-110151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9422',
internalId:  '',
customField: '20120114-095108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9443',
internalId:  '',
customField: '20120114-095343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20120117-125959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9590',
internalId:  '',
customField: '20120112-111525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20120123-174438'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I79QOG';
var companyName   = 'KaraLee+%26+Associates%2C+P.C.';
var htmlTitle	  = 'KaraLee+%26+Associates%2C+P.C.%2C+outpatient+mental+health%2C+psychologist%2C+psychiatrist%2C+therapy';
var metaKeywords  = '';
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();
};

