//<![CDATA[

  // --------------------------------------------------------------------------

  document.writeln('<script type="text/javascript" src="'+page.baseHref+'/js/swfobject.js"></script>');

  // --------------------------------------------------------------------------

  function printPage() {
    if (window.print) {
      window.print();
    } else {
      alert(page.noPrintMessage);
    }
  }

  // --------------------------------------------------------------------------

  function ZoomediaMenu() {
    this.ptr = null;
    this.timer = null;
    this.delay = 1000;

    this.init = function(id) {
      if (!document.getElementById) {
        return;
      }

      var div = document.getElementById(id);

      if (div) {
        this.build(div);
      }
    };

    this.setTimeOut = function(id) {
      this.timer = window.setTimeout("ZoomediaMenu.mouseOut('"+id+"');", this.delay);
    };

    this.mouseOver = function(id) {
      var element = document.getElementById(id);

      if (!element) {
        return;
      }

      if (this.ptr && this.timer) {
        window.clearTimeout(this.timer);
        this.timer = null;
        this.mouseOut(this.ptr);
      }

      element.className += ' over';

      //anchor tag
      element.childNodes[0].className += ' hover';
      element.style.zIndex = 1000;

      this.ptr = id;
    };

    this.mouseOut = function(id) {
      var element = document.getElementById(id);

      if (!element) {
        return;
      }

      //li element
      element.className = element.className.replace(' over', '');
      element.style.zIndex = 0;

      //anchor tag
      element.childNodes[0].className = element.childNodes[0].className.replace(' hover', '');
    };

    this.build = function(ele) {
      var ul;

      for(var i=0; i < ele.childNodes.length; ++i) {
        if (ele.childNodes[i].nodeName.toLowerCase() == 'ul') {
          ul = ele.childNodes[i];
          break;
        }
      }

      if (!ul) {
        return;
      }

      for(i=0; i < ul.childNodes.length; ++i) {
        if (ul.childNodes[i].nodeName.toLowerCase() != 'li') {
          continue;
        }

        ul.childNodes[i].onmouseover = function() {
          ZoomediaMenu.mouseOver(this.getAttribute('id'));
        };

        ul.childNodes[i].onmouseout = function() {
          ZoomediaMenu.setTimeOut(this.getAttribute('id'));
        };
      }
    };

  }//ZoomediaMenu

  var ZoomediaMenu = new ZoomediaMenu();

//]]>