// blur navigation bar on focus
// Jon Isbell
function bluronfocus() {
  if (document.getElementById) {
    root = document.getElementById("navigation").childNodes[1];
    for (i = 0; i < root.childNodes.length; i++) {
      node = root.childNodes[i];
      if (node.nodeName == "LI") {
        node.onfocus = function() {
          this.blur();
        }
      }
    }
  }
}
//addLoadEvent(bluronfocus);

function insertQuicktime(movie, width, height) {
  document.write('<object classid="classid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + width + '" height="' + height + '" >');
  document.write('<param name="src" value="' + movie + '" />');
  document.write('<param name="autoplay" value="true">');
  document.write('<param name="controller" value="true">');
  document.write('<embed src="' + movie + '" autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/download/" width="' + width + '" height="' + height + '"></embed>');
  document.write('</object>');
}

// Attach multiple events to onload
// Simon Willson http://simon.incutio.com/archive/2004/05/26/addLoadEvent
// See also http://www.scottandrew.com/weblog/articles/cbs-events
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
