var init = 0;
var width = 0;
var height = 0;
var smallwidth = 0;
var smallheight = 0;

function ShrinkIfLowRes(locationID) {
  if (init == 0) {
     width = document.getElementById(locationID).width;
     height = document.getElementById(locationID).height;
     smallwidth = (width / 3) * 2;   
     smallheight = (height / 3) * 2;
     init = 1;
  } 
  if (document.body.clientWidth >= 800) {
     document.getElementById(locationID).style.width = width;
     document.getElementById(locationID).style.height = height;
  } else {
     document.getElementById(locationID).style.width = smallwidth;
     document.getElementById(locationID).style.height = smallheight;
  }
} 