// $Id: jquery.dropdown.js 125 2010-04-23 12:16:37Z neilm $
// http://css-tricks.com/examples/SimplejQueryDropdowns/

// best practise to add .stop() function to jQuery hover
// http://tutorialzine.com/2010/02/the-jquery-hover-method/

$(function()
{
	$("#osHeaderNavigationMenu li").hoverIntent(function()
	{
		$(this).stop().addClass("hover");
		$("ul:first",this).css("visibility","visible");
	},function()
	{
		$(this).stop().removeClass("hover");
		$("ul:first",this).css("visibility","hidden");
	});
	$("#osHeaderNavigationMenu li#osHNM2").hoverIntent(function()
	{
		$(".osMegaMenu").css("left","0");
	},function()
	{
		$(".osMegaMenu").css("left","-999em");
	});
	$("#osHeaderNavigationMenu li ul li:has(ul)").find("a:first").append(" &raquo; ");
});
