<!-- hide from non-JS capable browsers

//
// Here are some library routines helpful for managing images,
// to use in the Javascript class.
// Copyright 2007 by Akkana Peck:
// You are free to share, re-use, or modify this code under the
// terms of the GNU Public License.
//

// Figuring out window width and height is different on different browsers.
// These routines should cover most of the popular browsers
// (firefox/mozilla, IE, safari, konqueror, opera):

function windowWidth() {
  if (window.innerWidth != null)
    return window.innerWidth;
  if (document.documentElement.clientWidth)
    return document.documentElement.clientWidth;
  return 800;
}

function windowHeight() {
  if (window.innerHeight != null)
    return window.innerHeight;
  if (document.documentElement.clientHeight)
    return document.documentElement.clientHeight;
  return 600;
}

// end hiding -->

