﻿$(function(){
   
    resize();
    $(window).resize(function(event) {
        resize();
    });

    $(".header .clear").click(function () {
        $(this).toggleClass("on");
        $(".menu").stop().slideToggle();
    })
    $(".menu  ul li label").each(function () { $(this).html($(this).html().toUpperCase()) })
 
    

    $(".page_list li").hover(function () {
        $(this).addClass("on").siblings().removeClass("on");
       
            

    })
	
	    $(".pro_owl").owlCarousel({
        items: 4,
        responsive: {
            
            0: {
                items: 2, margin: 20
            }, 
            600: { items:4,margin:40
            }
        },
        dots: false, loop: true, margin: 40
    });

    $(".owl").each(function () {
        if ($(this).find(".item").length > 1) {
            var owl = $(this).find(".owlCarousel").owlCarousel({ items: 1, loop: true, autoplay: true });

            owl.on('changed.owl.carousel', function (event) {
                owl.find(".animated").each(function () { $(this).removeClass($(this).attr("data-animation")); })
                owl.find(".owl-item").eq(event.item.index).find(".animated").each(function () { $(this).addClass($(this).attr("data-animation")); });
            })

            $(this).find(".owl_cur").find(".next").click(function () {
		
                owl.trigger("next.owl.carousel")
            })
            $(this).find(".owl_cur").find(".prev").click(function () {
                owl.trigger("prev.owl.carousel")
            })
        }
    })



});

 
function resize(){
    var ht = $(window).height();

}
 