
/******************************************************************************
* scroll.js                                                                   *
*                                                                             *
* Copyright 1999 by Mike Hall.                                                *
* Visit http://www.dynamicdrive.com                                           *
* Last update: July 21st, '02 by Dynamic Drive for NS6 functionality.         *
*                                                                             *
******************************************************************************/

//SET SCROLLER APPEARANCE AND MESSAGES
var myScroller1 = new Scroller(0, 0, 600, 18, 0, 0); //(xpos, ypos, width, height, border, padding)
myScroller1.setColors("#518212", "#FFFFFF", "#FFFFFF"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Verdana,Arial,Helvetica", 1);

myScroller1.addItem("<b>Problem: <a href='/organic-produce-is-expensive'>Organic produce is expensive!</a> &nbsp;Solution? <a href='/organic-produce-is-expensive'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/bleached-coffee-filters-may-expose-you-to-dioxin'>Bleached coffee filters may expose you to dioxin.</a> &nbsp;Solution? <a href='/bleached-coffee-filters-may-expose-you-to-dioxin'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/paint-contains-volatile-organic-compounds'>Paint contains volatile organic compounds</a> &nbsp;Solution? <a href='/paint-contains-volatile-organic-compounds'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/milk-may-contain-hormones-and-antibiotics'>Milk may contain hormones and antibiotics.</a> &nbsp;Solution? <a href='/milk-may-contain-hormones-and-antibiotics'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/nonstick-pans-release-toxic-gases'>Nonstick pans release toxic gases.</a> &nbsp;Solution? <a href='/nonstick-pans-release-toxic-gases'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/some-fish-are-caught-unsustainably'>Some fish are caught unsustainably.</a> &nbsp;Solution? <a href='/some-fish-are-caught-unsustainably'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/kids-are-exposed-to-pesticides-in-food'>Kids are exposed to pesticides in food.</a> &nbsp;Solution? <a href='/kids-are-exposed-to-pesticides-in-food'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/pesticides-have-been-found-in-wine'>Pesticides have been found in wine.</a> &nbsp;Solution? <a href='/pesticides-have-been-found-in-wine'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/carpet-cleaners-can-threaten-your-health'>Carpet cleaners can threaten your health.</a> &nbsp;Solution? <a href='/carpet-cleaners-can-threaten-your-health'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/baby-bottles-may-release-a-toxic-chemical'>Baby bottles may release a toxic chemical.</a> &nbsp;Solution? <a href='/baby-bottles-may-release-a-toxic-chemical'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/metal-cans-leach-chemicals-into-food'>Metal cans leach chemicals into food.</a> &nbsp;Solution? <a href='/metal-cans-leach-chemicals-into-food'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/mattresses-contain-toxic-chemicals'>Mattresses contain toxic chemicals.</a> &nbsp;Solution? <a href='/mattresses-contain-toxic-chemicals'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/chlorine-paper-bleaching-hurts-the-environment'>Chlorine paper bleaching hurts the environment.</a> &nbsp;Solution? <a href='/chlorine-paper-bleaching-hurts-the-environment'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/plastic-food-containers-leach-chemicals'>Plastic food containers leach chemicals.</a> &nbsp;Solution? <a href='/plastic-food-containers-leach-chemicals'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/ant-killers-are-toxic-and-dont-work-well'>Ant killers are toxic and don't work well.</a> &nbsp;Solution? <a href='/ant-killers-are-toxic-and-dont-work-well'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/polycarbonate-bottles-leach-chemicals'>Polycarbonate bottles leach chemicals.</a> &nbsp;Solution? <a href='/polycarbonate-bottles-leach-chemicals'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/fish-may-be-high-in-mercury'>Fish may be high in mercury.</a> &nbsp;Solution? <a href='/fish-may-be-high-in-mercury'>Click Here</a></b>");
myScroller1.addItem("<b>Problem: <a href='/deet-can-be-dangerous'>DEET can be dangerous.</a> &nbsp;Solution? <a href='/deet-can-be-dangerous'>Click Here</a></b>");

//SET SCROLLER PAUSE
myScroller1.setPause(2500); //set pause beteen msgs, in milliseconds

function runmikescroll() {

  var layer;
  var mikex, mikey;

  // Locate placeholder layer so we can use it to position the scrollers.

  layer = getLayer("placeholder");
  mikex = getPageLeft(layer);
  mikey = getPageTop(layer);

  // Create the first scroller and position it.

  myScroller1.create();
  myScroller1.hide();
  myScroller1.moveTo(mikex, mikey);
  myScroller1.setzIndex(100);
  myScroller1.show();
}

window.onload=runmikescroll;
