/* [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','13722',jdecode('About+us'),jdecode(''), jdecode('%2F13722%2Findex.html'), 'true',[ 
		['PAGE','13773',jdecode('Attorney+Profile'),jdecode(''), jdecode('%2F13722%2F13773.html'), 'true',[],'',''],
		['PAGE','13794',jdecode('Contact'),jdecode(''), jdecode('%2F13722%2F13794.html'), 'true',[],'',''],
		['PAGE','17101',jdecode('Contact+Form'),jdecode(''), jdecode('%2F13722%2F17101.html'), 'false',[],'','']
	],'',''],
	['PAGE','13815',jdecode('Legal+Practice'),jdecode(''), jdecode('%2F13815.html'), 'true',[],'',''],
	['PAGE','13836',jdecode('Workplace+Investigations'),jdecode(''), jdecode('%2F13836.html'), 'true',[],'',''],
	['PAGE','13857',jdecode('Advice+and+Counseling'),jdecode(''), jdecode('%2F13857.html'), 'true',[],'',''],
	['PAGE','13878',jdecode('Expert+Witness'),jdecode(''), jdecode('%2F13878.html'), 'true',[],'',''],
	['PAGE','13899',jdecode('ADR'),jdecode(''), jdecode('%2F13899.html'), 'true',[],'',''],
	['PAGE','13941',jdecode('Workplace+Training'),jdecode(''), jdecode('%2F13941%2Findex.html'), 'true',[ 
		['PAGE','16801',jdecode('Management+training'),jdecode(''), jdecode('%2F13941%2F16801.html'), 'true',[],'',''],
		['PAGE','16822',jdecode('Staff+training'),jdecode(''), jdecode('%2F13941%2F16822.html'), 'true',[],'',''],
		['PAGE','16843',jdecode('One-on-One+training'),jdecode(''), jdecode('%2F13941%2F16843.html'), 'true',[],'',''],
		['PAGE','16864',jdecode('2011+Training+Schedule'),jdecode(''), jdecode('%2F13941%2F16864.html'), 'false',[],'',''],
		['PAGE','16885',jdecode('2012+Training+Schedule'),jdecode(''), jdecode('%2F13941%2F16885.html'), 'true',[],'',''],
		['PAGE','16906',jdecode('TRF'),jdecode(''), jdecode('%2F13941%2F16906.html'), 'false',[],'',''],
		['PAGE','19901',jdecode('TRF+On+Site'),jdecode(''), jdecode('%2F13941%2F19901.html'), 'false',[],'',''],
		['PAGE','16927',jdecode('Training+FAQs'),jdecode(''), jdecode('%2F13941%2F16927.html'), 'true',[],'',''],
		['PAGE','16948',jdecode('Training+Feedback'),jdecode(''), jdecode('%2F13941%2F16948.html'), 'true',[],'',''],
		['PAGE','17301',jdecode('Harassment+Prevention+for+Supervisors%2FManagers'),jdecode(''), jdecode('%2F13941%2F17301.html'), 'false',[],'',''],
		['PAGE','17322',jdecode('Avoiding+Wage+and+Hour+Pitfalls'),jdecode(''), jdecode('%2F13941%2F17322.html'), 'false',[],'',''],
		['PAGE','17343',jdecode('Employee+Recruitment+and+Selection'),jdecode(''), jdecode('%2F13941%2F17343.html'), 'false',[],'',''],
		['PAGE','17364',jdecode('Drafting+an+Employee+Handbook'),jdecode(''), jdecode('%2F13941%2F17364.html'), 'false',[],'',''],
		['PAGE','17385',jdecode('Legal%2FLegislative+Update'),jdecode(''), jdecode('%2F13941%2F17385.html'), 'false',[],'',''],
		['PAGE','17406',jdecode('Train+the+Trainer%3A++Harassment+Prevention'),jdecode(''), jdecode('%2F13941%2F17406.html'), 'false',[],'',''],
		['PAGE','17427',jdecode('Legal+Aspects+of+Workplace+Investigations'),jdecode(''), jdecode('%2F13941%2F17427.html'), 'false',[],'',''],
		['PAGE','17448',jdecode('Administering+Leaves+of+Absence+Laws'),jdecode(''), jdecode('%2F13941%2F17448.html'), 'false',[],'','']
	],'',''],
	['PAGE','19701',jdecode('Newsletter'),jdecode(''), jdecode('%2F19701.html'), 'false',[],'',''],
	['PAGE','13962',jdecode('Related+Links'),jdecode(''), jdecode('%2F13962.html'), 'true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='61373F';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='397';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='61373F';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'aplus',
  product: 'WSCSYSSSSLYTCPLI'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'61373F',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'397',
				contentColor: 	'FFFFFF',
				contentBGColor: '61373F',
				a_color: 		'61373F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13722',
internalId:  '',
customField: '20120103-172422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13773',
internalId:  '',
customField: '20111117-170604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13794',
internalId:  '',
customField: '20110617-145427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13815',
internalId:  '',
customField: '20110630-130710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13836',
internalId:  '',
customField: '20110630-130900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13857',
internalId:  '',
customField: '20110630-130946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13878',
internalId:  '',
customField: '20110630-131024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13899',
internalId:  '',
customField: '20110630-131204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13941',
internalId:  '',
customField: '20111214-121309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13962',
internalId:  '',
customField: '20111115-143412'
};
webappMappings['7008']=webappMappings['7008-994']={
webappId:    '7008',
documentId:  '16906',
internalId:  '994',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-995']={
webappId:    '7008',
documentId:  '17101',
internalId:  '995',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20110617-190818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16948',
internalId:  '',
customField: '20111214-121158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20110617-145025'
};
webappMappings['7008']=webappMappings['7008-996']={
webappId:    '7008',
documentId:  '19701',
internalId:  '996',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20110617-155644'
};
webappMappings['7008']=webappMappings['7008-997']={
webappId:    '7008',
documentId:  '19901',
internalId:  '997',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16864',
internalId:  '',
customField: '20110831-132917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16906',
internalId:  '',
customField: '20120118-123541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20110617-165709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16927',
internalId:  '',
customField: '20111201-173146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20110617-181700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17322',
internalId:  '',
customField: '20110617-181744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17343',
internalId:  '',
customField: '20110617-181800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17364',
internalId:  '',
customField: '20110617-181821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17385',
internalId:  '',
customField: '20110617-181834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17406',
internalId:  '',
customField: '20110617-181859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17427',
internalId:  '',
customField: '20110617-181917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17448',
internalId:  '',
customField: '20110617-182205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16822',
internalId:  '',
customField: '20110617-173511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16843',
internalId:  '',
customField: '20110630-131315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16885',
internalId:  '',
customField: '20111207-154105'
};
var webAppHostname = 'cm4all.aplus.net:80';
var canonHostname = 'cm4all01.carrierzone.com';
var accountId     = 'APL330INZNIG';
var companyName   = 'The+Ison+Law+Group';
var htmlTitle	  = 'The+Ison+Law+Group';
var metaKeywords  = 'Workplace+Investigations%0D%0AWorkplace+Training%0D%0AHarassment+Training%0D%0AEmployment+Law+Attorney%0D%0AExpert+Witness%0D%0ASacramento+Workplace+Investigation%0D%0A';
var metaContents  = 'The+Ison+Law+Group%2C+Employment+Law+Attorneys';
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();
};

