// This function alters the size of the page in response to a request in the navigation
// A cookie maintains this selection during the session
function GoMagnify(Direction) {
  // Direction will be either Normal, Up, or InitialEntry
  var CookieValue = document.cookie;
  CookieValue = CookieValue.substr(CookieValue.indexOf("Zoom") + 5,4);
  if (CookieValue.substr(3,1) != "%") { CookieValue = ""; }
  switch (Direction) {
    case "InitialEntry": // Just entered the page
      document.body.style.zoom = CookieValue;
      break;
    case "Normal": // Changing to normal viewing
      document.body.style.zoom = "100%";
      document.cookie = "Zoom=100%; path=/"
      break;
    case "Up": // Requested zoom function
      var CurrentZoom = CookieValue;
      switch (CurrentZoom) {
        case "100%":
          document.body.style.zoom = "125%";
          document.cookie = "Zoom=125%; path=/"
          break;
        case "125%":
          document.body.style.zoom = "150%";
          document.cookie = "Zoom=150%; path=/"
          break;
        case "150%":
          break;
        default:
          document.body.style.zoom = "125%";
          document.cookie = "Zoom=125%; path=/"
      }
  }
  return false;
}

