/***************************************************



* Portal admin section banner rotation script



* To be used in conjunction with banner_rotator.js

* This script creates an array of banners to be picked at

  random for the top of the Portal admin sections

  

* University of Surrey

* Matt Farrow | 22 March 2007



**************************************************/



// First set the path for the banners

  bannerPath = 'http://portal.surrey.ac.uk/assets/images/';



// Now create the banners



  // An array to hold the banners



  var banners = new Array()

  

  // Add the banner items to the array

  // The first argument holds the filename, the second holds the Alt text

  banners.push(new banner('library1.jpg', 'University of Surrey Library'));

  banners.push(new banner('library2.jpg', 'University of Surrey Library'));

  banners.push(new banner('library3.jpg', 'University of Surrey Library'));

  banners.push(new banner('library4.jpg', 'University of Surrey Library'));



  // Choose a banner at random using the randomNumber function found in banner_rotator.js



  var theBanner = banners[randomNumber(banners.length)];





