// Preload the images for faster switching
// Expects an array of images, with path, to preload.

function preLoadImages ( images ) {
  for ( i = 0 ; i < images.length ; i++ ) {
    var image = new Image();
    image.src = images[i]
  }
}

var currentImage;

function flipImage ( image ) {
  document.houseimage.src = image;
  currentImage = image;
}

function zoomView ( url ) {
  location = url + currentImage;
}

