
function submenu()
{
	var subnav = $("#mainmenu .subnav");
	
	$.each(subnav, function(key, el)
	{
	  $(this).bind({
	    mouseenter: function()
	    {
	    	$(this).addClass('hover');
	    },
	    mouseleave: function()
	    {
	    	$(this).removeClass('hover');
	    }
	  });
	});
}

$(document).ready(function ()
{	
  submenu();
});
