/* [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','29501',jdecode('Home'),jdecode(''),'/29501.html','true',[],'',''],
	['PAGE','30101',jdecode('Our+Services+'),jdecode(''),'/30101/index.html','true',[ 
		['PAGE','30343',jdecode('General+Industry'),jdecode(''),'/30101/30343.html','true',[],'',''],
		['PAGE','30322',jdecode('Construction'),jdecode(''),'/30101/30322.html','true',[],'',''],
		['PAGE','30406',jdecode('Healthcare+Facilities'),jdecode(''),'/30101/30406.html','true',[],'',''],
		['PAGE','30364',jdecode('Municipalities'),jdecode(''),'/30101/30364.html','true',[],'',''],
		['PAGE','36301',jdecode('Cemeteries'),jdecode(''),'/30101/36301.html','true',[],'',''],
		['PAGE','30301',jdecode('Insurance+'),jdecode(''),'/30101/30301.html','true',[],'',''],
		['PAGE','30385',jdecode('Hotel+%26+Restaurant'),jdecode(''),'/30101/30385.html','true',[],'',''],
		['PAGE','30427',jdecode('Funeral+Homes'),jdecode(''),'/30101/30427.html','true',[],'',''],
		['PAGE','58012',jdecode('Code+Rule+59+%26+60'),jdecode(''),'/30101/58012.html','true',[],'',''],
		['PAGE','58033',jdecode('Code+Rule+60'),jdecode(''),'/30101/58033.html','false',[],'',''],
		['PAGE','57712',jdecode('Code+Rule+59+'),jdecode(''),'/30101/57712.html','false',[],'','']
	],'',''],
	['PAGE','30122',jdecode('Training+Programs'),jdecode(''),'/30122/index.html','true',[ 
		['PAGE','57112',jdecode('OSHA+Courses'),jdecode(''),'/30122/57112.html','true',[],'',''],
		['PAGE','50354',jdecode('OSHA+10hr+for+Construction'),jdecode(''),'/30122/50354.html','true',[],'',''],
		['PAGE','50375',jdecode('OSHA+30hr+for+Construction'),jdecode(''),'/30122/50375.html','true',[],'',''],
		['PAGE','50312',jdecode('OSHA+10hr+for+General+Industry'),jdecode(''),'/30122/50312.html','true',[],'',''],
		['PAGE','50333',jdecode('OSHA+30hr+for+General+Industry'),jdecode(''),'/30122/50333.html','true',[],'',''],
		['PAGE','57512',jdecode('OSHA+8+Hr+Hazardous+Waste+Operations+'),jdecode(''),'/30122/57512.html','true',[],'',''],
		['PAGE','57533',jdecode('OSHA+40Hr+Hazardous+Waste+Technician+'),jdecode(''),'/30122/57533.html','true',[],'',''],
		['PAGE','36001',jdecode('General+Industry+'),jdecode(''),'/30122/36001.html','true',[],'',''],
		['PAGE','36022',jdecode('Construction'),jdecode(''),'/30122/36022.html','true',[],'',''],
		['PAGE','36043',jdecode('Healthcare'),jdecode(''),'/30122/36043.html','true',[],'',''],
		['PAGE','36322',jdecode('Cemeteries'),jdecode(''),'/30122/36322.html','true',[],'',''],
		['PAGE','36343',jdecode('Funeral+Homes'),jdecode(''),'/30122/36343.html','true',[],'',''],
		['PAGE','43001',jdecode('Hazard+Communication'),jdecode(''),'/30122/43001.html','false',[],'',''],
		['PAGE','45412',jdecode('Lockout+Tagout'),jdecode(''),'/30122/45412.html','false',[],'',''],
		['PAGE','45433',jdecode('Fork+Lift'),jdecode(''),'/30122/45433.html','false',[],'',''],
		['PAGE','45454',jdecode('Personal+Protective+Equipment'),jdecode(''),'/30122/45454.html','false',[],'',''],
		['PAGE','50396',jdecode('Fall+Protection'),jdecode(''),'/30122/50396.html','false',[],'','']
	],'',''],
	['PAGE','61412',jdecode('Seminars'),jdecode(''),'/61412.html','true',[],'',''],
	['PAGE','30143',jdecode('News+'),jdecode(''),'/30143.html','true',[],'',''],
	['PAGE','29901',jdecode('About+us'),jdecode(''),'/29901/index.html','true',[ 
		['PAGE','58712',jdecode('Our+Staff'),jdecode(''),'/29901/58712.html','true',[],'',''],
		['PAGE','58912',jdecode('Robert+Miata'),jdecode(''),'/29901/58912.html','false',[],'',''],
		['PAGE','58933',jdecode('Alice+Corcoran+'),jdecode(''),'/29901/58933.html','false',[],'',''],
		['PAGE','58954',jdecode('Edgar+Lopez'),jdecode(''),'/29901/58954.html','false',[],'',''],
		['PAGE','58975',jdecode('Linda+Monaco'),jdecode(''),'/29901/58975.html','false',[],'',''],
		['PAGE','58996',jdecode('Steve+Kopp'),jdecode(''),'/29901/58996.html','false',[],'',''],
		['PAGE','59017',jdecode('Lew+Burgess'),jdecode(''),'/29901/59017.html','false',[],'',''],
		['PAGE','59038',jdecode('John+Dickenson'),jdecode(''),'/29901/59038.html','false',[],'',''],
		['PAGE','59059',jdecode('John+Delury'),jdecode(''),'/29901/59059.html','false',[],'','']
	],'',''],
	['PAGE','39601',jdecode('Contact+Us'),jdecode(''),'/39601.html','true',[],'',''],
	['PAGE','30185',jdecode('Links'),jdecode(''),'/30185.html','true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='85AB88';
theSitetree.keyvisualId='11164';
theSitetree.keyvisualName='kv_11164.jpg';
theSitetree.fontsetId='32062';
theSitetree.graphicsetId='13880';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Office',
				paletteFamily: 	'85AB88',
				keyvisualId: 	'11164',
				keyvisualName: 	'kv_11164.jpg',
				fontsetId: 		'32062',
				graphicsetId: 	'13880',
				contentColor: 	'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20100902-134935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20091216-112008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20091216-091617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20091216-114027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20091216-112032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30122',
internalId:  '',
customField: '20091216-112326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30343',
internalId:  '',
customField: '20091216-111857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30322',
internalId:  '',
customField: '20091216-111800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30406',
internalId:  '',
customField: '20091216-111926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30364',
internalId:  '',
customField: '20091216-111946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30427',
internalId:  '',
customField: '20091216-112115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30385',
internalId:  '',
customField: '20091216-112050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30143',
internalId:  '',
customField: '20091216-091510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57112',
internalId:  '',
customField: '20091228-101438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30185',
internalId:  '',
customField: '20090810-111405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20091216-111515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36022',
internalId:  '',
customField: '20090804-125026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36043',
internalId:  '',
customField: '20090810-104616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36322',
internalId:  '',
customField: '20090731-093843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36343',
internalId:  '',
customField: '20090806-115145'
};
webappMappings['7008']=webappMappings['7008-9916']={
webappId:    '7008',
documentId:  '39601',
internalId:  '9916',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20090810-104709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43001',
internalId:  '',
customField: '20090804-112000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45412',
internalId:  '',
customField: '20090804-114327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45433',
internalId:  '',
customField: '20090804-115119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45454',
internalId:  '',
customField: '20090804-115510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50312',
internalId:  '',
customField: '20090810-104752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50333',
internalId:  '',
customField: '20090810-104759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50354',
internalId:  '',
customField: '20091228-102843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50375',
internalId:  '',
customField: '20091228-102827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50396',
internalId:  '',
customField: '20090804-141400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57512',
internalId:  '',
customField: '20091228-103211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57712',
internalId:  '',
customField: '20091216-091925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58012',
internalId:  '',
customField: '20091216-112311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58033',
internalId:  '',
customField: '20091216-093852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57533',
internalId:  '',
customField: '20091214-114422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58712',
internalId:  '',
customField: '20091214-130026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58912',
internalId:  '',
customField: '20091214-130352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58933',
internalId:  '',
customField: '20091214-130408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58954',
internalId:  '',
customField: '20091214-132236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58975',
internalId:  '',
customField: '20091214-130625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58996',
internalId:  '',
customField: '20091214-125459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59017',
internalId:  '',
customField: '20091214-125459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59038',
internalId:  '',
customField: '20091214-125459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59059',
internalId:  '',
customField: '20091214-125459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61412',
internalId:  '',
customField: '20100902-125510'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHU4F';
var companyName   = 'Consolidated+Risk+Management+Inc.';
var htmlTitle	  = 'Consolidated+Risk+Management+Inc.';
var metaKeywords  = 'Safety%2C+Safety+and+Health%2C+Safety++Health%2C+Risk+Management%2C+Loss+Prevention%2C+Safety+Consultants%2C++';
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();
};
