/*
 * The Groove Yard Menu jQuery plugin implementation
 */

function thegroovemenu () {
    // jqueryslidemenu controlla la discesa dei sottomenu
    jQuery("#menu a").removeAttr('title');
    jQuery("#menu ul").css({
	display: "none"
    }); // Opera Fix

    // smooth drop downs
    jQuery("#menu li").each(function () {
	var $sublist = jQuery(this).find('ul:first');

	jQuery(this).hover(
	    function () {
		$sublist.stop().css({
		    overflow: "hidden",
		    height: "auto",
		    display: "none"
		}).slideDown(400, function () {
		    jQuery(this).css({
			overflow: "visible",
			height: "auto"
		    });
		});
	    },
	    function () {
		$sublist.stop().slideUp(400, function () {
		    jQuery(this).css({
			overflow: "hidden",
			display: "none"
		    });
		});
	    }
	);
    });
}
