/* [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','2401',jdecode('Home'),jdecode(''), jdecode('%2F2401.html'), 'false',[],'',''],
	['PAGE','22501',jdecode('Home'),jdecode(''), jdecode('%2F22501.html'), 'true',[],'',''],
	['PAGE','11701',jdecode('Attorney+Profiles'),jdecode(''), jdecode('%2F11701%2Findex.html'), 'true',[ 
		['PAGE','14801',jdecode('Steven+Sheriff+Abern'),jdecode(''), jdecode('%2F11701%2F14801.html'), 'true',[],'',''],
		['PAGE','38101',jdecode('Judith+B.+Altura'),jdecode(''), jdecode('%2F11701%2F38101.html'), 'true',[],'',''],
		['PAGE','16064',jdecode('Gina+D.+Boer'),jdecode(''), jdecode('%2F11701%2F16064.html'), 'true',[],'',''],
		['PAGE','12001',jdecode('John+E.+Haapala'),jdecode(''), jdecode('%2F11701%2F12001.html'), 'true',[],'',''],
		['PAGE','15501',jdecode('Aaron+F.+MacLeitch'),jdecode(''), jdecode('%2F11701%2F15501.html'), 'true',[],'',''],
		['PAGE','15901',jdecode('Andrea+A.+Najor'),jdecode(''), jdecode('%2F11701%2F15901.html'), 'true',[],'',''],
		['PAGE','16085',jdecode('David+Semel'),jdecode(''), jdecode('%2F11701%2F16085.html'), 'true',[],'',''],
		['PAGE','15701',jdecode('Jody+Struck'),jdecode(''), jdecode('%2F11701%2F15701.html'), 'true',[],'',''],
		['PAGE','16001',jdecode('Benjamin+A.+Thompson'),jdecode(''), jdecode('%2F11701%2F16001.html'), 'true',[],'',''],
		['PAGE','12301',jdecode('Clyde+A.+Thompson'),jdecode(''), jdecode('%2F11701%2F12301.html'), 'true',[],'',''],
		['PAGE','15301',jdecode('Rebecca+S.+Widen'),jdecode(''), jdecode('%2F11701%2F15301.html'), 'true',[],'',''],
		['PAGE','16022',jdecode('John+C.+Won'),jdecode(''), jdecode('%2F11701%2F16022.html'), 'false',[],'',''],
		['PAGE','16043',jdecode('Stephanie+A.+Yee'),jdecode(''), jdecode('%2F11701%2F16043.html'), 'true',[],'','']
	],'',''],
	['PAGE','19401',jdecode('Practice+Areas'),jdecode(''), jdecode('%2F19401%2Findex.html'), 'true',[ 
		['PAGE','19443',jdecode('Public+Entity+'),jdecode(''), jdecode('%2F19401%2F19443.html'), 'true',[],'',''],
		['PAGE','19422',jdecode('Insurance+Defense'),jdecode(''), jdecode('%2F19401%2F19422.html'), 'true',[],'',''],
		['PAGE','19464',jdecode('Appeals+and+Writs'),jdecode(''), jdecode('%2F19401%2F19464.html'), 'true',[],'',''],
		['PAGE','20601',jdecode('Representative+Appellate+Cases'),jdecode(''), jdecode('%2F19401%2F20601.html'), 'false',[],'',''],
		['PAGE','19485',jdecode('Medical+Malpractice'),jdecode(''), jdecode('%2F19401%2F19485.html'), 'true',[],'',''],
		['PAGE','19506',jdecode('Elder+Care'),jdecode(''), jdecode('%2F19401%2F19506.html'), 'false',[],'',''],
		['PAGE','19527',jdecode('ADR'),jdecode(''), jdecode('%2F19401%2F19527.html'), 'false',[],'','']
	],'',''],
	['PAGE','21601',jdecode('Mediation+Services'),jdecode(''), jdecode('%2F21601.html'), 'true',[],'',''],
	['PAGE','22201',jdecode('Contact+Us'),jdecode(''), jdecode('%2F22201.html'), 'true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11165';
theSitetree.keyvisualName='kv_11165.jpg';
theSitetree.fontsetId='32062';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='000000';
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: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11165',
				keyvisualName: 	'kv_11165.jpg',
				fontsetId: 		'32062',
				graphicsetId: 	'13879',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20111021-131336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20111116-190407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20111118-195618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20111130-133014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20111130-132536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20111118-195437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20111130-133311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20111111-163105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20111130-135241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20111116-142101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16022',
internalId:  '',
customField: '20111015-120548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16043',
internalId:  '',
customField: '20111116-142712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16064',
internalId:  '',
customField: '20111130-132800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16085',
internalId:  '',
customField: '20111130-135435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20111116-190955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19422',
internalId:  '',
customField: '20111115-135017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19443',
internalId:  '',
customField: '20111116-145219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19464',
internalId:  '',
customField: '20111116-145616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20111114-124436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19485',
internalId:  '',
customField: '20111115-141214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19506',
internalId:  '',
customField: '20111007-120104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19527',
internalId:  '',
customField: '20111007-122056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20111108-143404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20111130-132117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20111130-131531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38101',
internalId:  '',
customField: '20111116-135233'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22501',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I790B5';
var companyName   = 'Haapala%2C+Thompson+%26+Abern%2C+LLP';
var htmlTitle	  = 'Haapala%2C+Thompson+%26+Abern%2C+Civil+Litigation+Law+Firm%2C+Oakland';
var metaKeywords  = 'Haapala%2C+Thompson+%26+Abern++John+Haapala++Steve+Abern++Clyde+Thompson++Aaron+MacLeitch++1939+Harrison+Street++Rebecca+Widen+insurance+defense+civil+litigation';
var metaContents  = 'Haapala%2C+Thompson+%26+Abern%2C+LLP++Civil+Litigation+Law+Firm++Oakland+California++Insurance+Defense++John+Haapala';
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();
};

