function onMenuButtonClick(node) {
  if(node==null) return true;
  if(node.getElementsByTagName==null) return true;
  var aTags=node.getElementsByTagName('a');
  if(aTags.length!=1) return true;
  var a=aTags[0]
    , attrs=a.attributes
    , url=null
  ;
  if(attrs==null) return true;
  for(var i=0; i<attrs.length; i++) if(attrs[i].nodeName=='href') {
    url=attrs[i].nodeValue;
    break;
  }
  if(url==null) return true;
  window.location.href=url;
  return false;
}
