jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox(); 


  $('li.headlink').hover(
    function() { $('ul', this).css('display', 'block'); },
    function() { $('ul', this).css('display', 'none'); });
  });

  window.onload = function()
  {
    var lis = document.getElementsByTagName('li');
    for(i = 0; i < lis.length; i++)
    {
      var li = lis[i];
      if (li.className == 'headlink')
      {
        
        $("li.headlink").hover(
        function(){
            $(this).getElementsByTagName('ul').item(0).style.display = 'block';
            },
            $(this).getElementsByTagName('ul').item(0).style.display = 'none';
            }
        );
        
        
        
        // li.onmouseover = function() { this.getElementsByTagName('ul').item(0).style.display = 'block'; }
        //        li.onmouseout = function() { this.getElementsByTagName('ul').item(0).style.display = 'none'; }
      }
    }
  }


