function imagebanner(imagelocation, url, bannerdate, selected) 
 {
   this.imagelocation = imagelocation;
   this.url = url;
   this.bannerdate = bannerdate;
   this.selected = selected;
 }
function checknumbers(bannernum)
 {
  if (bannernum == 1) return(60);
  if (bannernum == 2) return(58);
  if (bannernum == 3) return(56);
  if (bannernum == 4) return(54);
  if (bannernum == 5) return(52);
  if (bannernum == 6) return(50);
  if (bannernum == 7) return(48);
  if (bannernum == 8) return(46);
  if (bannernum == 9) return(44);
  if (bannernum == 10) return(42);
  if (bannernum == 11) return(40);
  if (bannernum == 12) return(38);
  if (bannernum == 13) return(36);
  if (bannernum == 14) return(34);
  if (bannernum == 15) return(32);
  if (bannernum == 16) return(30);
  if (bannernum == 17) return(28);
  if (bannernum == 18) return(26);
  if (bannernum == 19) return(24);
  if (bannernum == 20) return(22);
  if (bannernum == 21) return(20);
  if (bannernum == 22) return(18);
  if (bannernum == 23) return(16);
  if (bannernum == 24) return(14);
  if (bannernum == 25) return(12);
  if (bannernum == 26) return(10);
  if (bannernum == 27) return(8);
  if (bannernum == 28) return(6);
  if (bannernum == 29) return(4);
  if (bannernum == 30) return(2);
 }
// INIT THE BANNER FUNCTIONS
  var bannernumbers = 30;
  var currentbannerselected = 0;
  var baselocation = "http://www.upsilonxi.com/";
  var banner1 = new imagebanner(baselocation + 'rotation/pict1.JPG',baselocation + '/','1/10/95',false);
  var banner2 = new imagebanner(baselocation + 'rotation/pict2.JPG',baselocation + '/','1/10/95',false);
  var banner3 = new imagebanner(baselocation + 'rotation/pict3.JPG',baselocation + '/','1/10/95',false);
  var banner4 = new imagebanner(baselocation + 'rotation/pict4.JPG',baselocation + '/','1/10/95',false);
  var banner5 = new imagebanner(baselocation + 'rotation/pict5.JPG',baselocation + '/','1/10/95',false);
  var banner6 = new imagebanner(baselocation + 'rotation/pict6.JPG',baselocation + '/','1/10/95',false);
  var banner7 = new imagebanner(baselocation + 'rotation/pict7.JPG',baselocation + '/','1/10/95',false);
  var banner8 = new imagebanner(baselocation + 'rotation/pict8.JPG',baselocation + '/','1/10/95',false);
  var banner9 = new imagebanner(baselocation + 'rotation/pict9.JPG',baselocation + '/','1/10/95',false);
  var banner10 = new imagebanner(baselocation + 'rotation/pict10.JPG',baselocation + '/','1/10/95',false);
  var banner11 = new imagebanner(baselocation + 'rotation/pict11.JPG',baselocation + '/','1/10/95',false);
  var banner12 = new imagebanner(baselocation + 'rotation/pict12.JPG',baselocation + '/','1/10/95',false);
  var banner13 = new imagebanner(baselocation + 'rotation/pict13.JPG',baselocation + '/','1/10/95',false);
  var banner14 = new imagebanner(baselocation + 'rotation/pict14.JPG',baselocation + '/','1/10/95',false);
  var banner15 = new imagebanner(baselocation + 'rotation/pict15.JPG',baselocation + '/','1/10/95',false);
  var banner16 = new imagebanner(baselocation + 'rotation/pict16.JPG',baselocation + '/','1/10/95',false);
  var banner17 = new imagebanner(baselocation + 'rotation/pict17.JPG',baselocation + '/','1/10/95',false);
  var banner18 = new imagebanner(baselocation + 'rotation/pict18.JPG',baselocation + '/','1/10/95',false);
  var banner19 = new imagebanner(baselocation + 'rotation/pict19.JPG',baselocation + '/','1/10/95',false);
  var banner20 = new imagebanner(baselocation + 'rotation/pict20.JPG',baselocation + '/','1/10/95',false);
  var banner21 = new imagebanner(baselocation + 'rotation/pict21.JPG',baselocation + '/','1/10/95',false);
  var banner22 = new imagebanner(baselocation + 'rotation/pict22.JPG',baselocation + '/','1/10/95',false);
  var banner23 = new imagebanner(baselocation + 'rotation/pict23.JPG',baselocation + '/','1/10/95',false);
  var banner24 = new imagebanner(baselocation + 'rotation/pict24.JPG',baselocation + '/','1/10/95',false);
  var banner25 = new imagebanner(baselocation + 'rotation/pict25.JPG',baselocation + '/','1/10/95',false);
  var banner26 = new imagebanner(baselocation + 'rotation/pict26.JPG',baselocation + '/','1/10/95',false);
  var banner27 = new imagebanner(baselocation + 'rotation/pict27.JPG',baselocation + '/','1/10/95',false);
  var banner28 = new imagebanner(baselocation + 'rotation/pict28.JPG',baselocation + '/','1/10/95',false);
  var banner29 = new imagebanner(baselocation + 'rotation/pict29.JPG',baselocation + '/','1/10/95',false);
  var banner30 = new imagebanner(baselocation + 'rotation/pict30.JPG',baselocation + '/','1/10/95',false);

  var randomseed = checknumbers(bannernumbers);
function GoRandom()
 {
  var numberofbanners = bannernumbers;
  var randomtime = new Date();
  var timediv = randomtime.getSeconds();
  var tempbannerchoice = Math.round(timediv / randomseed);
  if (tempbannerchoice == 0) tempbannerchoice = 1;
  return(tempbannerchoice);
 }