function $(e, D)
{
  D = D || document;
  return typeof e == 'string' ? D.getElementById(e) : e;
}
function $tags(T, D)
{
  D = D || document;
  return D.getElementsByTagName(T);
}
function $tag(T, i, D) { return $tags(T, D)[i || 0]; }

window.onload = function()
{
 var i, li, all = $tags('li', $('menu'));
 for ( i = 0; i < all.length; i++ )
 {
  li = all[i];
  li.onmouseover = function() { var ul = $tag('ul', 0, this); if ( ul ) { ul.className = ''; } };
  li.onmouseout = function() { var ul = $tag('ul', 0, this); if ( ul ) { ul.className = 'cacher'; } };
 }
};
