 // JavaScript Document
function image(_name, _width, _height) {
  this.name = _name;
  this.width = _width;
  this.height = _height;
}

arrPics = new Array();

arrPics[0] = new image("images/randoms/1.jpg");
arrPics[1] = new image("images/randoms/2.jpg");
arrPics[2] = new image("images/randoms/3.jpg");
arrPics[3] = new image("images/randoms/4.jpg");
arrPics[4] = new image("images/randoms/5.jpg");
arrPics[5] = new image("images/randoms/6.jpg");
arrPics[6] = new image("images/randoms/7.jpg");
arrPics[7] = new image("images/randoms/8.jpg");
arrPics[8] = new image("images/randoms/9.jpg");
arrPics[9] = new image("images/randoms/10.jpg");
arrPics[10] = new image("images/randoms/11.jpg");
arrPics[11] = new image("images/randoms/12.jpg");


function randomImageTag(imgs) {
  var idx = Math.floor(Math.random() * imgs.length);

  var tag = "<img src=\"" + imgs[idx].name + "\">";

  return tag;
}
