/****** IMAGE CYCLER v1.0 by Angus Turnbull http://www.twinhelix.com ******/

function imgCycle() { with (this)
{

 currImg = (++currImg % data.length);

 parLyr.document.images[myName + 'Img'].src = data[currImg].src;

 setTimeout(myName + '.cycle()', delay);
}}

function ImageCycle(myName, delay, parLyr)
{
 this.myName = myName;
 this.delay = delay;
 this.parLyr = (document.layers && parLyr ? parLyr : window);
 this.currImg = 0;

 this.data = new Array();
 for (var i = 3; i < arguments.length; i++)
 {

  this.data[i - 3] = new Image();
  this.data[i - 3].src = arguments[i];
 }
 
 this.cycle = imgCycle;
}
var picRotate = new ImageCycle('picRotate', '3000', null,
 'images/homepagesample2.jpg', 'images/homepagesample3.jpg', 'images/homepagesample1.jpg');
window.onload = new Function('picRotate.cycle()');