rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
        return Math.ceil(rnd()*number);
};

function rand2(number) {
        return Math.ceil(rnd()*number);
};


// --------------------------------------------- new code  ------------------------------------

function ImageDescriptor(div, imagefilename, title, text)
    {
	this.div = div;
    this.imagefilename = imagefilename;
    this.title = title;
    this.text = text;
    }

// nr of elements must be one greater than actual nr of images
var aryImageItems = new Array(4)

// aryImageItems[0] is unused
// physical names of image files are of form "imagenameX", where "X" is 1-5 (or whatever the upper limit is)
aryImageItems[1] = new ImageDescriptor("rotator-01", "hp-rotator-proactive", "Pro<br/>active", "To Gaines Wolter Kinney, being proactive means a hands-on approach that constantly applies pressure to our adversaries. Trials are calls to action, and Gaines Wolter Kinney can respond effectively because of its proactive stance.");
aryImageItems[2] = new ImageDescriptor("rotator-02", "hp-rotator-prepared", "Pre<br/>pared", "Preparation wins. Our clients benefit from our processes of aggressive discovery, keen interpretation, and a deep commitment to client success both in and out of the classroom.");
aryImageItems[3] = new ImageDescriptor("rotator-03", "hp-rotator-productive", "Pro<br/>ductive", "Gaines Wolter Kinney is results driven, and our record proves it. Our trial experience is unparalleled in Alabama, and we are well known for our steady yet aggressive approach to litigation.");

// a little test function...
function test()
    {
    alert(aryImageItems[3].index);
    alert(aryImageItems[3].caption);
    alert(aryImageItems[3].url);
    }