function changephoto(imagepath, width) {
   var image = document.getElementById('galleryimage');
   if (image) {
      image.src = imagepath;
   }
   if (image) {
      if (width > 560) {
         image.className = "constrain";
      } else {
         image.className = "";
      }
   }
}


