
/*  You can get this script and many others 
    by visiting JavaScript City at: http://www.javascriptcity.com . */

pic_width=150;   /*change to match the height of all your images */
pic_height=150;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */

/* define image urls */

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="../images/SPACER-BITER.gif";  
     pic2= new Image(pic_width,pic_height); 
     pic2.src="../images/SPACER-BOX.gif"; 
     pic3= new Image(pic_width,pic_height);
     pic3.src="../images/SPACER-KEVIN.gif";  
     pic4= new Image(pic_width,pic_height);
     pic4.src="../images/SPACER-LI.gif";  
     pic5= new Image(pic_width,pic_height);
     pic5.src="../images/SPACER-LO.gif"; 
     pic6= new Image(pic_width,pic_height);
     pic6.src="../images/SPACER-MAKOTO.gif"; 
     pic7= new Image(pic_width,pic_height);
     pic7.src="../images/SPACER-MAX1.gif"; 
     pic8= new Image(pic_width,pic_height);
     pic8.src="../images/SPACER-MAX2.gif";
     pic9= new Image(pic_width,pic_height);
     pic9.src="../images/SPACER-MAX3.gif";
     pic10= new Image(pic_width,pic_height);
     pic10.src="../images/SPACER-MISTI.gif";
     pic11= new Image(pic_width,pic_height);
     pic11.src="../images/SPACER-MONICA.gif";
     pic12= new Image(pic_width,pic_height);
     pic12.src="../images/SPACER-MONICA2.gif";
     pic13= new Image(pic_width,pic_height);
     pic13.src="../images/SPACER-MONICABABY.gif";
     pic14= new Image(pic_width,pic_height);
     pic14.src="../images/SPACER-QTIP.gif";
     pic15= new Image(pic_width,pic_height);
     pic15.src="../images/SPACER-RAE.gif";
     pic16= new Image(pic_width,pic_height);
     pic16.src="../images/SPACER-ROBBYBABY.gif";
     pic17= new Image(pic_width,pic_height);
     pic17.src="../images/SPACER-ROBBYKEVIN.gif";
     pic18= new Image(pic_width,pic_height);
     pic18.src="../images/SPACER-ROBBYKEVIN2.gif";
     pic19= new Image(pic_width,pic_height);
     pic19.src="../images/SPACER-SILAS.gif";
     pic20= new Image(pic_width,pic_height);
     pic20.src="../images/SPACER-STRONG.gif";
     pic21= new Image(pic_width,pic_height);
     pic21.src="../images/SPACER-WASHING.gif";

 }    



/* no need to edit past this point (unless you want to add more image and url slots) */

 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
  var choose_one= get_random(21);  
  choose_one--;

  var pics= new Array(21) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src; 
   pics[5]=pic6.src;
   pics[6]=pic7.src;
   pics[7]=pic8.src;
   pics[8]=pic9.src;
   pics[9]=pic10.src;
   pics[10]=pic11.src;
   pics[11]=pic12.src;
   pics[12]=pic13.src;
   pics[13]=pic14.src;
   pics[14]=pic15.src;
   pics[15]=pic16.src;
   pics[16]=pic17.src;
   pics[17]=pic18.src;
   pics[18]=pic19.src;
   pics[19]=pic20.src;
   pics[20]=pic21.src;
  document.write("<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>");
 }
}
