/* Encapsulation */ (function() {


var nsocDirectory = "/nsoc/";



// init
//

function init() {
  if (!document.domain) return; // Don't cache when working off a local machine

  var imageCache = new ImageCache();

  // Determine the path for the website root
  var path = document.URL.substring(0, document.URL.indexOf(nsocDirectory)) + nsocDirectory;
  path = path.substring(path.indexOf(document.domain) + document.domain.length, path.length);

  imageCache.add(
    path + "image/map/owlSites.png",
    path + "forestManagement/image/map/forestManagement.gif",
    path + "owlLocations/image/map/owlLocations.gif",
    path + "jurisdictions/image/map/allJurisdictions.gif",
    path + "jurisdictions/image/map/federal.gif",
    path + "jurisdictions/image/map/chu.gif",
    path + "jurisdictions/image/map/nwfp.gif",
    path + "jurisdictions/image/map/hcp.gif",
    path + "jurisdictions/image/map/sosea.gif",
    path + "jurisdictions/image/map/tribal.gif"
  );

  imageCache.fetch();
}





// onload assignment

if (window.onload) {
  var oldInit = window.onload;
  window.onload = function() {
    oldInit();
    init();
  }
}
else {
  window.onload = init;
}





})(); /* Encapsulation */
