function anchoMayorQue(idCarousel,jsonConfigCarousel,puntoRuptura){
    if($(window).width() > puntoRuptura){
        startCarousel(idCarousel,jsonConfigCarousel)
    } else if(!$(idCarousel).hasClass("off")) {
        stopCarousel(idCarousel);
    }
}

function anchoMenorQue(idCarousel,jsonConfigCarousel,puntoRuptura){
    if($(window).width() < puntoRuptura){
        startCarousel(idCarousel,jsonConfigCarousel)
    } else if(!$(idCarousel).hasClass("off")) {
        stopCarousel(idCarousel);
    }
}

function startCarousel(idCarousel,jsonConfigCarousel) {
    $(idCarousel).owlCarousel(jsonConfigCarousel);
    $(idCarousel).removeClass("off");
}

function stopCarousel(idCarousel) {
    var owl = $(idCarousel);
    owl.css("display","block");
    owl.trigger('destroy.owl.carousel');
    owl.addClass('off');
}
