function swapBG(item,newBack) { item.style.background="url('"+newBack+"') no-repeat"; }
function loadPage(page) { window.location.href=page; }
function loadSite(page) { window.open(page); }
function imgPreload()
{
  var args = imgPreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++) { document.imageArray[i] = new Image; document.imageArray[i].src = args[i]; }
}
function swapImage(myImage) { document.getElementById("gallery").src = myImage; }
var x,y;
function getWindowWidth()
{
  if (self.innerHeight) // all except Explorer
  {
    x = self.innerWidth;
    y = self.innerHeight;
  }
  else if (document.documentElement && document.documentElement.clientHeight)
    // Explorer 6 Strict Mode
  {
    x = document.documentElement.clientWidth;
    y = document.documentElement.clientHeight;
  }
  else if (document.body) // other Explorers
  {
    x = document.body.clientWidth;
    y = document.body.clientHeight;
  }
}
