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(imagefilename, caption, url)
    {
     this.imagefilename = imagefilename;
    this.caption = caption;
    this.url = url;
    }

// nr of elements must be one greater than actual nr of images
var aryImageItems = new Array(5)

// 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("campaign-wifi", "Free Wifi. Just one of the conveniences that make flying with us a pleasure.", "campaign-wifi.html");
aryImageItems[2] = new ImageDescriptor("campaign-economy", "A billion dollars in annual economic impact. It's good business for our city when you Fly Birmingham.", "campaign-economy.html");
aryImageItems[3] = new ImageDescriptor("campaign-chicago", "The Windy City. Just one of our 100 daily departures.", "campaign-chicago.html");
aryImageItems[4] = new ImageDescriptor("campaign-new-york", "The Big Apple. Just one of our 100 daily departures.", "campaign-new-york.html");
aryImageItems[5] = new ImageDescriptor("campaign-new-orleans", "The Big Easy. Just one of our 100 daily departures.", "campaign-new-orleans.html");

// a little test function...
function test()
    {
    alert(aryImageItems[3].index);
    alert(aryImageItems[3].caption);
    alert(aryImageItems[3].url);
    }