﻿var obj = null;
function checkHover() {
  if (obj) {
    obj.find('ul').hide();
  } //if
} //checkHover

$(document).ready(function() {
  $('#nav>ul>li').hover(function() {
    if (obj) {
      obj.find('ul').hide();
      obj = null;
    } //if
    $(this).find('ul').show();
    }, function() {
      obj = $(this);
      setTimeout(
      "checkHover()",
      400);
  });
  var options = {
	  newsList: "#news>ul",
		startDelay: 10
	}
	$().newsTicker(options);
});
