// To update this file you must set the maxTips variable below to the total number of tips.
// Then, update the data in the arrays in the functions getaTip, getaTipTitle and getaTipIcon.
// The arrays run from 0 to (maxTips - 1).
// The array tip in the function gataTip holds the actual tip.
// The array tiptitle in the function gataTipTitle holds the tip title.
// The array tipicon in the function gataTipIcon holds the icon associated with the tip. The
// icon is used in the html page alltips.htm
// You can include html in the strings for the arrays to format the information (for instance, adding
// links to the tips).
//
var maxTips=32;

// Uncomment the line below for ramdom tip to appear every time the page loads
//var whichTip=get_random(maxTips);

// Uncomment the next two lines below for tip to appear based on the day of the month.
var dt = new Date();
var whichTip = dt.getDate();

function get_random(maxNum)
{
	if (Math.random && Math.round)
  	{
    		var ranNum= Math.round(Math.random()*(maxNum-1));
    	    	return ranNum;
  	}
  	else
  	{
		return 0;
	}
}

function getaTip()
{
	var tip=new Array(maxTips);
	tip[0]="";
	tip[1]="Sometimes it is just as effective to clean up coal spillage using <a class='linktype1' href='safetyideas/safetyidea10.htm'>water pressure</a>, reducing exposure to hazardous lifting motions.";
	tip[2]="A lightweight, counterbalanced fiberglass <a class='linktype1' href='safetyideas/safetyidea8.htm'>scaling bar</a> can reduce loads on the lower back.";
	tip[3]="Use a simple <a class='linktype1' href='safetyideas/safetyidea4.htm'>pulley system</a> to unload rail used for roof support or track construction.";
	tip[4]="Have materials delivered when you need them, minimizing excess stored materials and the need to maneuver and work around them.";
	tip[5]="Many mines are now using lightweight <a class='linktype1' href='safetyideas/safetyidea3.htm'>cable ramps</a> to protect cables from damage from mobile mining equipment.";
	tip[6]="Use a modified automotive <a class='linktype1' href='safetyideas/safetyidea7.htm'>floor jack mounted on a flat car</a> to lifts rails for installation as roof support.";
	tip[7]="Install <a class='linktype1' href='safetyideas/safetyidea2.htm'>jacks</a> at strategic points in the section to reduce the need to manually pull heavy cables clear of the entry.";
	tip[8]="Attach <a class='linktype1' href='safetyideas/safetyidea11.htm'>handles</a> to frequently moved objects. People have a larger safety margin when the load has good handles.";
	tip[9]="Use a <a class='linktype1' href='safetyideas/safetyidea12.htm'> roof bolt bender</a> to reduce strain on the hands, arms, and back, and the risk of slipping due to awkward postures.";
	tip[10]="Weld flexible <a class='linktype1' href='safetyideas/safetyidea14.htm'>wire antennas</a> onto the bolter's temporary roof support system to serve as a guide for positioning bolts.";
	tip[11]="A <a class='linktype1' href='safetyideas/safetyidea6.htm'>pump and spray gun</a> can apply a premixed mortar solution and eliminate the bending and reaching normally involved with sealing stoppings. It can also save time!";
	tip[12]="Provide a <a class='linktype1' href='safetyideas/safetyidea13.htm'>canopy</a> with good visibility to protect the operator from roof and rib falls during continuous miner operation.";
	tip[13]="In 2007, 14,871 mining operations reported employment statistics to MSHA, a decrease of 14 from 2006.";
	tip[14]="In 2007, almost half (48%) of mining operations were sand and gravel mines, followed by stone (31%), coal (14%), nonmetal (5%), and metal (2%).";
	tip[15]="In 2007, mine operators reported 271,414 employees to the Mine Safety and Health Administration, while independent contractors reported 106,709 employees.";
	tip[16]="In 2007, a total of 19% of the mine operator employee hours reported to MSHA were for underground work locations, while 81% of the employee hours were for surface work locations.";
	tip[17]="Of the 271,414 mine operator employees reported to MSHA in 2007, 31% worked in the coal sector, 30% in stone, 17% in sand and gravel, 13% in metal, and 8% in the nonmetal sector.";
	tip[18]="Of the 106,709 independent contractor employees reported to MSHA in 2007, 36% were coal contractor employees and 64% were noncoal contractor employees.";
	tip[19]="In 2007, there were 67 occupational mining fatalities, compared to 73 in 2006, and 57 in 2005.";
	tip[20]="According to the Bureau of Labor Statistics, in 2007 (preliminary) the overall mining (includes oil and gas extraction) fatality rate was 24.8 per 100,000 employed workers, compared to a fatality rate of 4.0 for all private industry.";
	tip[21]="In 2007, the fatality rate for mine operator employees was 19.7 per 100,000 full-time equivalent workers, while the rate for contractor employees was 31.3. (Excludes office employees)";
	tip[22]="In 2007, the fatality rate at underground mining locations was 47.2 per 100,000 full-time equivalent workers, compared to the lower rate at surface locations of 16.1. (Excludes office employees)";
	tip[23]="In 2007, there were 7,742 nonfatal lost-time injuries reported to MSHA, occurring at a rate of 2.5 injuries per 100 full-time equivalent workers and resulted in a total of 426,219 total days lost from work. (Excludes office employees)";
	tip[24]="In 2007, the underground nonfatal lost-time injury rate was greater than the surface rate (4.6 vs. 2.0 per 100 full-time equivalent workers). (Excludes office employees)";
	tip[25]="In 2007, the nonfatal lost-time injury rate for mine operator employees was higher than the rate for contractor employees (2.7 vs. 1.7 per 100 full-time equivalent workers). (Excludes office employees)";
	tip[26]="In 2007, the highest percentage of nonfatal lost-time injuries was due to handling materials (32%), followed by slips or falls (24%). (Excludes office employees)";
	tip[27]="The back continued to be the most frequently reported part of the body injured during 2007.  It accounted for 1,371 cases of nonfatal lost-time injuries, 77,027 total days lost from work, and 18.1% of all days lost. (Excludes office employees)";
	tip[28]="In 2007, there were 355 cases of occupational illness reported to the Mine Safety and Health Administration. (Excludes office employees)";
	tip[29]="Joint, tendon, or muscle inflammation or irritation accounted for 33% (or 116 cases) of the occupational illnesses reported to the Mine Safety and Health Administration in 2007. (Excludes office employees)";
	tip[30]="There were 88 cases of hearing loss or impairment reported to the Mine Safety and Health Administration in 2007, or 24.8% of all occupational illnesses reported. (Excludes office employees)";
	tip[31]="Mining operations reported 47 cases of 'black lung' disease to the Mine Safety and Health Administration in 2007. (Excludes office employees)";
	
	return tip[whichTip];
}

function getaTipTitle()
{
	var tiptitle=new Array(maxTips);
	tiptitle[0]="";
	tiptitle[1]="Safety Tip";
	tiptitle[2]="Safety Tip";
	tiptitle[3]="Safety Tip";
	tiptitle[4]="Reducing WMSDs";
	tiptitle[5]="Safety Tip";
	tiptitle[6]="Safety Tip";
	tiptitle[7]="Safety Tip";
	tiptitle[8]="Safety Tip";
	tiptitle[9]="Safety Tip";
	tiptitle[10]="Reduce Roof Fall Injuries";
	tiptitle[11]="Safety Tip";
	tiptitle[12]="Reduce Roof Fall Injuries";
	tiptitle[13]="Mining Statistic";
	tiptitle[14]="Mining Statistic";
	tiptitle[15]="Mining Statistic";
	tiptitle[16]="Mining Statistic";
	tiptitle[17]="Mining Statistic";
	tiptitle[18]="Mining Statistic";
	tiptitle[19]="Mining Statistic";
	tiptitle[20]="Mining Statistic";
	tiptitle[21]="Mining Statistic";
	tiptitle[22]="Mining Statistic";
	tiptitle[23]="Mining Statistic";
	tiptitle[24]="Mining Statistic";
	tiptitle[25]="Mining Statistic";
	tiptitle[26]="Mining Statistic";
	tiptitle[27]="Mining Statistic";
	tiptitle[28]="Mining Statistic";
	tiptitle[29]="Mining Statistic";
	tiptitle[30]="Mining Statistic";
	tiptitle[31]="Mining Statistic";
	return tiptitle[whichTip];
}

function getaTipIcon()
{
	var tipicon=new Array(maxTips);
	tipicon[0]="";
	tipicon[1]="";
	tipicon[2]="";
	tipicon[3]="";
	tipicon[4]="";
	tipicon[5]="";
	tipicon[6]="";
	tipicon[7]="";
	tipicon[8]="";
	tipicon[9]="";
	tipicon[10]="";
	tipicon[11]="";
	tipicon[12]="";
	tipicon[13]="";
	tipicon[14]="";
	tipicon[15]="";
	tipicon[16]="";
	tipicon[17]="";
	tipicon[18]="";
	tipicon[19]="";
	tipicon[20]="";
	tipicon[21]="";
	tipicon[22]="";
	tipicon[23]="";
	tipicon[24]="";
	tipicon[25]="";
	tipicon[26]="";
	tipicon[27]="";
	tipicon[28]="";
	tipicon[29]="";
	tipicon[30]="";
	tipicon[31]="";
	return "<img alt='' border='0' src='images/" + tipicon[whichTip] + "'>";
}
