// Simon Willison's addLoadEvent() function
// from 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() {
      oldonload();
      func();
    }
  }
}

function remove_duplicate_item() {
  var p = document.getElementById('navmenu');
  var pc = p.childNodes;
  if (window.attachEvent) {
    /*alert("innerText = "+pc[2].innerText);*/
    var r = pc[2];
    p.removeChild(r);
  } else {
    /*alert("textContent = "+pc[7].textContent);*/
    var r = pc[7];
    p.removeChild(r);
  }
}

addLoadEvent(function() {
  remove_duplicate_item();
});
