function random_img_home(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="wayfarer.jpg"
  myimages[2]="bolle.jpg"
  myimages[3]="cebe.jpg"
  myimages[4]="lacoste.jpg"
  myimages[5]="rudy.jpg"
  myimages[6]="serengeti.jpg"
  myimages[7]="sunglass_savings.jpg"
  myimages[8]="wayfarer.jpg"


  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="http://www.selectspecs.com/Sunglasses/Designer/Wayfarer/c89/"
  imagelinks[2]="http://www.selectspecs.com/Sunglasses/Designer/Bolle/d57/"
  imagelinks[3]="http://www.selectspecs.com/Sunglasses/Designer/Cebe/d179/"
  imagelinks[4]="http://www.selectspecs.com/Glasses/Prescription/Lacoste/d184/"
  imagelinks[5]="http://www.selectspecs.com/Sunglasses/Designer/Rudy-Project/d127/"
  imagelinks[6]="http://www.selectspecs.com/Sunglasses/Designer/Serengeti/d137/"
  imagelinks[7]="http://www.selectspecs.com/sunglasses/designer/"
  imagelinks[8]="http://www.selectspecs.com/Sunglasses/Designer/Wayfarer/c89/"
 
  //specify corresponding Alt tags below
  var alttags=new Array()
  alttags[1]="Incredible Prices for Ray-Ban Wayfarer'"
  alttags[2]="Bolle Designer Glasses & Sunglasses available from Selectspecs"
  alttags[3]="Cebe Designer Glasses & Sunglasses available from Selectspecs"
  alttags[4]="Lacoste Designer Glasses & Sunglasses available from Selectspecs"
  alttags[5]="Rudy Project Designer Glasses & Sunglasses available from Selectspecs"
  alttags[6]="Serengeti Designer Glasses & Sunglasses available from Selectspecs"
  alttags[7]="Massive Savings on ALL Designer Sunglasses!"
  alttags[8]="Incredible Prices for Ray-Ban Wayfarer'"


  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="_resource/_image/advert/'+myimages[ry]+'" border=0 alt="'+alttags[ry]+'" /></a>')
}

function random_img_spare(){
  var myimages=new Array()
  //specify random images below. You can have as many as you wish
  myimages[1]="wayfarer.jpg"
  myimages[2]="aviator.jpg"
  myimages[3]="sports.jpg"


  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="#"
  imagelinks[2]="#"
  imagelinks[3]="#"


  var ry=Math.floor(Math.random()*myimages.length)

  if (ry==0)
     ry=1
     document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="_resource/_image/advert/'+myimages[ry]+'" border=0></a>')
}