/*
Mike's DHTML scroller (By Mike Hall)
Last updated July 21st, 02' by Dynamic Drive for NS6 functionality
For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com
*/

//SET SCROLLER APPEARANCE AND MESSAGES
var myScroller1 = new Scroller(2500, 0, 800, 55, 1, 5); //(xpos, ypos, width, height, border, padding, align)
myScroller1.setColors("#000000", "transparent", "transparent"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Verdana,Arial,Helvetica", 2);
myScroller1.addItem("<center><strong>Have you seen Dusty speak recently? If so, <a href='contact.htm'>Share Your Testimonial</a> with us today!</strong></center>");
myScroller1.addItem("<center><strong>\"If you are ready for your students to achieve their highest potential, bring in Dusty!\"<br><i>Jonathan Sprinkles, College Speaker of the Year</i></strong></center>");
myScroller1.addItem("<center><strong>\"Wow, I felt like I have a secret weapon for achieving my goals now...She spoke from her heart.\"<br><i>Bob Green, CBN University, Virginia Beach, VA</i></strong></center>");
myScroller1.addItem("<center><strong>\"You were such a blessing to so many students while you were here.\"<br><i>Dr. Charles Spong, Southeastern College, Lakeland, FL</i></strong></center>");
myScroller1.addItem("<center><strong><a href='http://www.dustyspeaks.com/testimonials.htm'>Click Here to Read More Testimonials</a></strong></center>");
myScroller1.addItem("<center><strong>This scroller is brought to you by <a href='http://www.brainjar.com'>Brain Jar</a>, Mike\'s great coding site!</strong></center>");

//SET SCROLLER PAUSE
myScroller1.setPause(4500); //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
