function setImageDimensions(gotImage) {
  if(gotImage.width > 300) {
    gotImage.width = 300;
      }
}
function changeImageDimensions(gotImage, type) {
    if(gotImage.width > 300 && type == 'out') {
    gotImage.width = 300;
    return;
    }
    if (type == 'over') {
    gotImage.removeAttribute('width');
    if (gotImage.width > 800)
     gotImage.width = 800;
	  }
}
