function __nav_aev(obj, type, fn) { if (obj.addEventListener) { obj.addEventListener(type, fn, false); } else if (obj.attachEvent) { obj["e" + type + fn] = fn; obj[type + fn] = function() { obj["e" + type + fn] (window.event); }; obj.attachEvent("on" + type, obj[type + fn]); }};

function __nav_trim(x){return x.replace(/^\s+|\s+$/g,'');}
function __nav_hc(obj, clName) { var clN = ' ' + obj.className + ' '; return (clN.match(' ' + clName + ' ') != null); }
function __nav_ac(obj, clName) { if (__nav_hc(obj, clName)) return; obj.className = __nav_trim(obj.className + ' ' + clName); }
function __nav_rc(obj, clName) { if (!__nav_hc(obj, clName)) return; var clN = ' ' + obj.className + ' '; eval("obj.className = __nav_trim(clN.replace(/ " + clName + " /g,' '));"); }

function __nav_init() {
  __nav_aev(window, 'load', function() {
    var oli = document.getElementById('navH').getElementsByTagName('li');
    var l = oli.length;
    for (var i = 0; i < l; i++) {
      __nav_aev(oli[i], 'mouseover', function(e) {
        var el; if (window.event && window.event.srcElement) { el = window.event.srcElement; }; if (e && e.target) { el = e.target; }; while (el && !el.tagName.match(/^li$/i)) el = el.parentNode; if (!el) return; 
        __nav_ac(el, 'hover');
      });
      __nav_aev(oli[i], 'mouseout', function(e) {
        var el; if (window.event && window.event.srcElement) { el = window.event.srcElement; }; if (e && e.target) { el = e.target; }; while (el && !el.tagName.match(/^li$/i)) el = el.parentNode; if (!el) return; 
        __nav_rc(el, 'hover');
      });
    }
  });
};




