var picR_width=303;   /*change to match the height of all your images */
var picR_height=213;   /* change to match the width of all your images */
var border_size=0;   /* change to the border size you want on the images */

/* define image urls */

if (document.images)
 {
	 picR1= new Image(picR_width,picR_height);
     picR1.src="../data/1r.jpg";  
     picR2= new Image(picR_width,picR_height); 
     picR2.src="../data/2r.jpg"; 
	 picR3= new Image(picR_width,picR_height);
     picR3.src="../data/3r.jpg";  
 }    


/* define alt and title tag contents */

var altR1="Focus Environment";
var altR2="Focus Environment";
var altR3="Focus Environment";



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_ImageR()
{
 if (document.images)
 {
  var choose_one= get_random(3);  
  choose_one--;

   
  var picR= new Array(3) 
   picR[0]=picR1.src;
   picR[1]=picR2.src;
   picR[2]=picR3.src; 

  
  var altR = new Array(3)
  altR[0]=altR1;
  altR[1]=altR2;
  altR[2]=altR3;



  document.write("<IMG SRC='"+picR[choose_one]+"' alt='"+altR[choose_one]+"' title='"+altR[choose_one]+"' width='"+picR_width+"' height='"+picR_height+"' border='"+border_size+"'>");
 }
 
}


