function random_img(){
  var myimages=new Array()

  myimages[1]="http://2photo.ru/logo2010zima.png"
  myimages[0]="http://2photo.ru/logo2010zima.png"


  var ry=Math.floor(Math.random()*myimages.length)

     document.write('<a href=http://2photo.ru><img src="'+myimages[ry]+'" alt=Фото></a>')
}

  random_img()