/**
 * BillyReid.com - Dropdown JS.
 * 
 * @author Randy Little
 * @created 11/14/2011
 * @updated 11/14/2011
 * @version 1
 * @copyright Billy Reid, Inc.
 */
jQuery(function(){
    /**
     * Initializing each drop down.
     */
    jQuery(".drop-down").each(function(){
        var _parent = jQuery(this);
        jQuery("a[id="+jQuery(this).attr("id")+"-link]")
            .click(function(e){
                if ( !jQuery(_parent).is(":visible") )
                {
                closeCart();
                jQuery('.drop-down').slideUp(300);
                jQuery(_parent).stop().slideDown(300);
                e.preventDefault();
                }
            })
            .hoverIntent({over: function(){
                if ( !jQuery(_parent).is(":visible") )
                {
                    closeCart();
                    jQuery('.drop-down').slideUp(300);
                    jQuery(_parent).stop().slideDown(300);
                }
                },
                timeout:500,
                out: function(){}
            });
        jQuery(this)
            .mouseleave(function(){
                jQuery(_parent).slideUp(300);
            });
    });
});
