// fix for the IE/IE6 flickering background image problem in sub-nav
// see: http://www.mister-pixel.com/index.php?Content__state=is_that_simple

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


// addLoadEvent is an event handler, allowing you to register functions to run when page finishes loading
// from Simon Willison's code: http://simon.incutio.com/archive/2004/05/26/addLoadEvent

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}



