/* Author:

 */

$(document).ready(function(){

    //Footer drop menu actions
    $('.dk').dropkick({
        change: function (value, label) {
            //url = "http://" + value;
           // window.location = url;
            $('#product_select').val(value);
        }
    });



    //$(".megamenu").megaMenu('hover_slide');

  /*  var inprog = 0;
    $('.drop_trigger').hover(function(){
            inprog = 0;
            $(this).children('.drop').addClass('drop_hover');
            if (inprog == 0){
                inprog = 1;
                $(this).children('.fullwidth').slideDown("slow");
            }
        }, function(){
            $(this).children('.drop').removeClass('drop_hover');
            if (inprog == 1) {
                $(this).children('.fullwidth').slideUp("fast", function() {inprog = 0;});
            }

        }
    );*/


    var config = {
         over: makeTall, // function = onMouseOver callback (REQUIRED)
         timeout: 500, // number = milliseconds delay before onMouseOut
         out: makeShort // function = onMouseOut callback (REQUIRED)
    };

    $(".drop_trigger").hoverIntent( config )




});

function makeTall(){  $(this).children('.fullwidth').slideDown("slow");}
function makeShort(){ $(this).children('.fullwidth').slideUp("fast");}





