/* hovering is part of the header */
$(document).ready(function() {

    function addHover(){
    $(this).addClass("hovering");
    }

    function removeHover(){
    $(this).removeClass("hovering");
    }

    var delayConfig = {
        interval: 200,
        sensitivity: 3,
        over: addHover,
        timeout: 200,
        out: removeHover
    };

    $("li.hoverable").hoverIntent(delayConfig)

    var instantConfig = {
        interval: 0,
        sensitivity: 3,
        over: addHover,
        timeout: 200,
        out: removeHover
    };
    $("li.hoverable.section-home").hoverIntent(instantConfig)
    $("li.hoverable.collection-management").hoverIntent(instantConfig)

    $(".popup-searchbar").bgiframe();
});
