// JavaScript Document

var images = new Array ();

/*%%%%%%%%%%%%*/

function getObjectByID(id) {
  // Cross-browser function to return the object with the specific id
  if (document.all) { // IE
    return document.all[id];
  } else { // Netscape
    return document.getElementById(id);
  }
}

/*%%%%%%%%%%%%*/

function setImage(index) {
  getObjectByID('project-image').src = images[index].src;
}

/*%%%%%%%%%%%%*/

function setDefImage() {
  getObjectByID('project-image').src = "/media/gws/upload/images/projects/projects.jpg"	
}
/*%%%%%%%%%%%%*/

function addImage(imgPath) {
  var len = images.length;
  images[len] = new Image(236, 228);
  images[len].src = imgPath;
}

