﻿function showMM(el) {
    $(el).find('#quickMenu').slideDown('fast');
}

function hideMM(el) {
    $(el).find('#quickMenu').slideUp('fast');
}

var config = {
    sensitivity: 3, // If the mouse travels fewer than this number of pixels between polling intervals, then the "over" function will be called
    interval: 150, // number = milliseconds between reading/comparing mouse coordinates
    timeout: 250, // number = milliseconds delay before onMouseOut    
    over: function () { showMM(this) },
    out: function () { hideMM(this) }
};
// check for list of links and if it exists, create quickMenu, else removed the button.
if ($('#qmContent ul').length > 0) {

    var sQMenuContent = $('#qmContent').remove().html();

    $('#quickMenu .qmContent').append(sQMenuContent);

    $('#quickMenu').parent().each(function () {
        $(this).hoverIntent(config);
    });
} 
else 
{
    $('#quickMenuBtn').remove();
}
