// JavaScript Document
<!-- Begin
function showpic(img) {
       document.write(img);
}

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


if (document.images)
 {
    pic1= new Image(pic_width,pic_height);
    pic1.img="<img src='../258x78/258x78_2.gif' alt='St. John. We are the UK's leading First Aid, transport and Care charity. Its mission is to provide First Aid and medical support services for young people.' />";
    pic2= new Image(pic_width,pic_height);
    pic2.img="<img src='../258x78/258x78_3.gif' alt='NHHG. We are one of the UK's largest providers of affordable housing. We manage 19,000 homes housing and nearly 50,000 people across London.' />";
	pic3= new Image(pic_width,pic_height);
    pic3.img="<img src='../258x78/258x78_4.gif' alt='Office Of Fair Trading. We are responsible for making markets work well for consumers by protecting consumer interests and ensuring that businesses are fair and competitive.' />";
	pic4= new Image(pic_width,pic_height);
    pic4.img="<img src='../258x78/258x78_5.gif' alt='Whole Foods Market. We are the world's leading retailer of natural and organic foods, uniquely are highly selective about what we sell, dedicated to stringent Quality Standards.' />";
	
 }

/* 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 getImage()
{
 if (document.images)
 {
 var choose_one= get_random(4);
 choose_one--;

 var pics= new Array(4)
  pics[0]=pic1.img;
  pics[1]=pic2.img;
  pics[2]=pic3.img;
  pics[3]=pic4.img;

  showpic(pics[choose_one]);
 }
}


