/* class has been written into document.write at bottom of page   */

pic_width=106;   /*change to match the height of all your images */
pic_height=105;   /* change to match the width of all your images */

/* define image urls */
if (document.images)
 {
     pic1= new Image(106,105);
     pic1.src="/images/thePoint_1.jpg";  
     pic2= new Image(106,105); 
     pic2.src="/images/thePoint_2.jpg"; 
     pic3= new Image(106,105);
     pic3.src="/images/thePoint_3.jpg";  
	  pic4= new Image(106,105);
     pic4.src="/images/thePoint_4.jpg";  
	  pic5= new Image(106,105);
     pic5.src="/images/thePoint_5.jpg";  
	  pic6= new Image(106,105);
     pic6.src="/images/thePoint_6.jpg";  
 }    
 
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(6);  
  choose_one--;

  var pics= new Array(6) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic3.src;
   pics[4]=pic3.src;
   pics[5]=pic3.src;

document.write("<IMG SRC='"+pics[choose_one]+"' align=right width='"+pic_width+"' height='"+pic_height+"' class=titleimg>");
 }
}
