/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Sandeep Gangadharan | http://sivamdesign.com/scripts/ */
var text = 0;

var message=new Array();
  message[0] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Government studies reveal that 1 out of every 6 workers has a drug problem.</p>"
	message[1] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Most states offer a reduction in worker's compensation rates for employers who adhere to a Drug-Free Workplace Policy.</p>"
  message[2] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Drug abusers cost employers $10,000 annually per employee.</p>"
	message[3] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Drug abusers are 1/3 less productive than their abstaining co-workers.</p>"
	message[4] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>The benefits of a Drug-Free Workplace program include increased productivity, increased employee morale, and safer work environment.</p>"
	message[5] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Drug users often admit to selling drugs to co-workers.</p>"
	message[6] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Most drug abusers admit to stealing from employers.</p>"
	message[7] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>Drug-Free Workplace programs typically bring reductions in Worker’s Compensation rates, health care rates, turnover, and absenteeism.</p>"
	message[8] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>On average, drug abusers cost companies 300% more in medical costs and benefits.</p>"
	message[9] = "<p class='quote' style='margin-bottom:12px;'><b>DID YOU KNOW?</b></p><p class='quote'>On average, drug abusers are absent up to 16 times more often than their abstaining co-workers.</p>"

function changeText() {
  if (message.length > 0) {
    //document.change.descript.value=message[text];
    document.getElementById("quotes").innerHTML = message[text];
    text++;
  }
  if (text == 10) {text = 0; }  // change # at the left to the maximum # of message lines you want included
    window.setTimeout("changeText()", 7000); 
  } // change the # on the left to adjust the speed of the scroll. The smaller the # the faster the speed

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  changeText();
});

