/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '$'
(1,2): run-time error CSS1019: Unexpected token, found '('
(1,11): run-time error CSS1031: Expected selector, found ')'
(1,11): run-time error CSS1025: Expected comma or open brace, found ')'
(82,2): run-time error CSS1019: Unexpected token, found ')'
 */
$(document).ready(function () {

    //$('.btnAccept').click(function () {
    //    $('#PopupCookie').hide();
    //    //$.cookie('PopUp', '1');
    //});

    //if ($.cookie('PopUp')) {
    //    $('#PopupCookie').hide();
    //} else {
    //    $('#PopupCookie').show();
    //}

    $(".Product").each(function (e) {
        var posx = $(this).attr("data-posx");
        var posy = $(this).attr("data-posy");
        $(this).css({ "left": posx + "%", "top": posy + "%" });
    });

    function resize() {
        var width = $('.slider .item img').width()
        $('.slider .inner .textslider').css({
            width: width,
        })
    }

    resize()
    setInterval(resize, 100)


    //$('.divWidgetOwlCarousel').owlCarousel({
    //    loop: true,
    //    nav: true,
    //    dots: true,
    //    navText: ["<i class='fa fa-angle-double-left'></i>", "<i class='fa fa-angle-double-right'></i>"],
    //    center: true,
    //    margin: 50,
    //    autoplay: false,
    //    autowidth: false,
    //    responsive: {
    //        0: {
    //            items: 2,
    //        },
    //        480: {
    //            items: 1,
    //            dots: false,
    //        },
    //        767: {
    //            items: 3,
    //        },
    //        991: {
    //            items: 4,
    //            margin: 30,
    //        },
    //        1200: {
    //            items: 4,
    //        },
    //        1366: {
    //            items: 3,
    //        }
    //    }
    //})

    //$('.divWidgetReviews').owlCarousel({
    //    loop: true,
    //    nav: true,
    //    dots: true,
    //    items: 1,
    //    navText: ["<i class='fa fa-angle-double-left'></i>", "<i class='fa fa-angle-double-right'></i>"],
    //    autoplay: true,
    //    autowidth: false,
    //    responsive: {
    //        0: {
    //            nav: false,
    //            autoHeight: true,
    //        },
    //        767: {
    //            nav: true,
    //        }
    //    },
    //})
});

//function videoControl() {
//    var myVideo = document.getElementById('myVideo');
//    if (myVideo.paused) {
//        myVideo.play();
//    } else {
//        myVideo.pause();
//    }
//}

//$(document).ready(function () {
//    $(".overlay").click(function () {
//        $(".playbutton").fadeToggle("hide");
//        $(".text-video").fadeToggle("hide");
//        $(".widget-video .overlay").toggleClass("none");
//    });

//    $(".playbutton").click(function () {
//        $(".playbutton").fadeToggle("hide");
//        $(".text-video").fadeToggle("hide");
//        $(".widget-video .overlay").toggleClass("none");
//    });

//    if ($(window).width() > 1024) {
//        var videos = document.getElementById("myVideo"),
//            fraction = 0.8;
//        function checkScroll() {

//            for (var i = 0; i < videos.length; i++) {

//                var video = videos[i];

//                var x = video.offsetLeft, y = video.offsetTop, w = video.offsetWidth, h = video.offsetHeight, r = x + w, //right
//                    b = y + h, //bottom
//                    visibleX, visibleY, visible;

//                visibleX = Math.max(0, Math.min(w, window.pageXOffset + window.innerWidth - x, r - window.pageXOffset));
//                visibleY = Math.max(0, Math.min(h, window.pageYOffset + window.innerHeight - y, b - window.pageYOffset));

//                visible = visibleX * visibleY / (w * h);

//                if (visible > fraction) {
//                    video.play();
//                } else {
//                    video.pause();
//                }
//            }
//        }

//        window.addEventListener('scroll', checkScroll, false);
//        window.addEventListener('resize', checkScroll, false);
//    }
//});



