// JavaScript Document
/*
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(0, 0, 280,170, 1, 5); //(xpos, ypos, width, height, border, padding)
myScroller1.setColors("#000000", "#FFFFFF", "#00000"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Arial,Helvetica", 2);
myScroller1.addItem("<img src='/images/case-studies.gif' width='100' height='11' vspace='5'><div align='justify'  class='content'>THE NEW TSCA AUTOMATIC SEALING AND<br> CLIPPING MACHINE<br><ul><li>The TSCA offers cutting edge clipping<br> and sealing operation in one machine. </li></ul><a href='/tsca-automatic-sealing-and-clipping-machine.html' target='_parent'>READ MORE</a></div>");
myScroller1.addItem("<p align='justify'>G-Tec Thermal Processing Machine</p><p>&raquo; <a href='/g-tec-thermal-processing.html' target='_parent'>READ MORE</a></p>	<p>  <p align='justify'>Form Shrink packaging (Multivac TM)<br> tailored to your product needs<br><a href='/the-exciting-possibilities-of-form-shrink.html' target='_parent'>&raquo;READ MORE</a></p>");

//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
