/***************************************************

* 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('senate2.jpg', 'View of University of Surrey campus'));
  banners.push(new banner('banner1.jpg', 'Alan Turing'));
  banners.push(new banner('banner.jpg', 'Duke of Kent Building, University of Surrey'));
 

  // Choose a banner at random using the randomNumber function found in banner_rotator.js

  var theBanner = banners[randomNumber(banners.length)];


