// 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,150, 1, 5); //(xpos, ypos, width, height, border, padding)
myScroller1.setColors("#000000", "#FFFFFF", "#00000"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Arial,Helvetica", 2);
myScroller1.addItem("<p><img src='/images/arrow.gif' width='5' height='5'>&nbsp;Globus Group's Head Office<br><p>Globus Groups&#8217; Head Office (Sydney) is located at Bankstown Airport.<br><br>.» <a href='/globus-groups-new-head-office.html' target='_parent'>READ MORE</a> ");
myScroller1.addItem("<p><img src='/images/arrow.gif' width='5' height='5'>&nbsp;New Bag Machine at Globus<br>&raquo; <a href='/new-bag-machine.html' target='_parent'>READ MORE</a><p><img src='/images/arrow.gif' width='5' height='5'>&nbsp;Globus Sponsorship of<br>The Packaging Covenant<br>Best Action Plan Award<br>&raquo; <a href='/packaging-evolution-awards.html' target='_parent'>&raquo; READ MORE</a>");
myScroller1.addItem("<p><img src='/images/arrow.gif' width='5' height='5'>&nbsp;Spice Sheets- impart a<br>flavour on your product<br>&raquo; <a href='/spice-sheets-article.html' target='_parent'>READ MORE</a><p><img src='/images/arrow.gif' width='5' height='5'>&nbsp;Globus' new printing <br>press commissioned-<br>higher print quality and<br>quicker turn around times<br>&raquo; <a href='/new-printing-press.html' target='_parent'>&raquo; READ MORE</a>");
//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
