Photo = Class.create();

Photo.prototype = {

  initialize: function(photoElt, index, project, ui) {
    this.project = project;
    this.index = index;
    this.ui = ui;
    if (photoElt.getAttribute("src"))
      this.src = photoElt.getAttribute("src");
  },

  height: 480,
  width: 720,
  thumbnail: null,
  index: -1,
  src: "",

  getImage: function() {
    if (!this.img) {
      this.img = this.ui.newImage(this.src, this.src, this.height, null, true);
    }
    return this.img;
  }
}
