<!--

pic_widthside=150;   /*change to match the height of all your images */
pic_heightside=400;   /* change to match the width of all your images */
border_sizeside=0;   /* change to the border size you want on the images */
alignmentside=1;      /* 0=left,1=center */

/* define image urls */

if (document.images)
 {
     picside1= new Image(pic_widthside,pic_heightside);
     picside1.src='/images/banners/megamosaic-advert-skyscraper.png';  
      
 }    

/* define banner urls */

urladside1="http://megamosaicmakers.org.uk/";

/* no need to edit past this point (unless you want to add more image and url slots) */

if (alignmentside==1)
 {
  cent_it="<CENTER>";
  cent_it2="</CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
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_Imageside()
{
 if (document.images)
 {
  var choose_one= get_random(1);  
  choose_one--;
/* Change figure above and add variables below */
  var picsside= new Array(9) 
   picsside[0]=picside1.src;
   
   
  var aurlside= new Array(9)
  aurlside[0]=urladside1;
  

  document.write(cent_it+"<A HREF='"+aurlside[choose_one]+"' TARGET='_blank'><IMG SRC='"+picsside[choose_one]+"' width='"+pic_widthside+"' height='"+pic_heightside+"' border='"+border_sizeside+"'></A>"+cent_it2);
 }
}
//-->