$(document).ready(function(){
    configtshirt ={
        sensitivity: 3,
        interval: 100,
        over: tshirtDown,
        timeout: 300,
        out: tshirtUp
    }
    configshopper ={
        sensitivity: 3,
        interval: 100,
        over: shopperDown,
        timeout: 300,
        out: shopperUp
    }
    var tshirt = 0;
    var shopper = 0;

    function tshirtDown(){
        $("#tshirt_offerte").fadeIn(400);
    }
    
    function tshirtUp(){
        if(tshirt == 0){
            $("#tshirt_offerte").fadeOut(200);
        }
    }

    function shopperDown(){
        $("#shopper_offerte").fadeIn(400);
    }
    
    function shopperUp(){
        if(shopper == 0){
            $("#shopper_offerte").fadeOut(200);
        }
    }
    
    
    $(".tshirt_btn").mouseover(function(){
        tshirt = 1;
    });

    $(".tshirt_btn").mouseout(function(){
        tshirt = 0;
    });
    
    $("#tshirt_offerte").mouseover(function(){
        tshirt = 1;
    });
    
    $("#tshirt_offerte").mouseout(function(){
        tshirt = 0;
    });   

    $(".shopper_btn").mouseover(function(){
        shopper = 1;
    });

    $(".shopper_btn").mouseout(function(){
        shopper = 0;
    });
    
    $("#shopper_offerte").mouseover(function(){
        shopper = 1;
    });
    
    $("#shopper_offerte").mouseout(function(){
        shopper = 0;
    });   
    
    
    $(".tshirt_btn").hoverIntent(configtshirt);
    $("#tshirt_offerte").hoverIntent(configtshirt);

    $(".shopper_btn").hoverIntent(configshopper);
    $("#shopper_offerte").hoverIntent(configshopper);

});

