// 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="<a href = 'contactus.html'><img src='258x78/258x78_1.gif' alt='Welcome to Nationwide Online. We are based in London and have National and International clients. Click here to contact us.' /></a>";
    pic2= new Image(pic_width,pic_height);
    pic2.img="<a href = 'contactus.html'><img src='258x78/258x78_1.gif' alt='Welcome to Nationwide Online. We are based in London and have National and International clients. Click here to contact us.' /></a>";
    pic3= new Image(pic_width,pic_height);
    pic3.img="<a href = 'contactus.html'><img src='258x78/258x78_1.gif' alt='Welcome to Nationwide Online. We are based in London and have National and International clients. Click here to contact us.' /></a>";
 }

/* 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(3);
 choose_one--;

 var pics= new Array(3)
  pics[0]=pic1.img;
  pics[1]=pic2.img;
  pics[2]=pic3.img;

  showpic(pics[choose_one]);
 }
}

