function newWin(file,window,options) {
    msgWindow=open(file,window,options);
    if (msgWindow.opener == null) msgWindow.opener = self;
}

$(document).ready(function() {
  $('#main-menu td').each(function() {
    if($(this).has('table.sub-menu')) {
      $(this).hover(function() {
        $(this).find('table.sub-menu').stop(true, true);
        $(this).find('table.sub-menu').slideDown('slow');
      }, function() {
        $(this).find('table.sub-menu').slideUp('fast');
      });
    }
  });

  $('#bannerRotator ul li div.hint').click(function() {
    $(this).slideUp(500, function() {
      $('#bannerRotator ul li div.hint').css('display', 'none');
      $('#bannerRotator ul li').click(function() {
        $(this).find('div.hint').slideDown(500, function() {
          $('#bannerRotator ul li div.hint').css('display', 'block');
          $('#bannerRotator ul li').unbind('click');
        });
      });
    });
  });

  bannerRotator('#bannerRotator', 500, 10000);
});

