/* Js for , Version=1775241286 */
 LA.init({id:"K0VJbyv6ntHvdn5k",ck:"K0VJbyv6ntHvdn5k"});
   // Add this script right after your base UET tag code
   window.uetq = window.uetq || [];
   window.uetq.push('set', { 'pid': { 
      'em': 'contoso@example.com', // Replace with the variable that holds the user's email address. 
      'ph': '+14250000000', // Replace with the variable that holds the user's phone number. 
   } });
;
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '2062936400887651');
fbq('track', 'PageView');
;var config={"webRoot":"\/","cookieLife":30,"cookiePath":"\/","requestType":"PATH_INFO","requestFix":"-","moduleVar":"m","methodVar":"f","viewVar":"t","defaultView":"html","themeRoot":"\/theme\/","currentModule":"index","currentMethod":"index","clientLang":"zh-cn","requiredFields":"","save":"\u4fdd\u5b58","router":"\/index.php","runMode":"front","langCode":""}
;if(typeof(v) != "object") v = {};v.theme = {"template":"default","theme":"wide","device":"desktop"};;v.lang = {"confirmDelete":"\u60a8\u786e\u5b9a\u8981\u6267\u884c\u5220\u9664\u64cd\u4f5c\u5417\uff1f","deleteing":"\u5220\u9664\u4e2d","doing":"\u5904\u7406\u4e2d","loading":"\u52a0\u8f7d\u4e2d","updating":"\u66f4\u65b0\u4e2d...","timeout":"\u7f51\u7edc\u8d85\u65f6,\u8bf7\u91cd\u8bd5","errorThrown":"<h4>\u6267\u884c\u51fa\u9519\uff1a<\/h4>","continueShopping":"\u7ee7\u7eed\u8d2d\u7269","required":"\u5fc5\u586b","back":"\u8fd4\u56de","continue":"\u7ee7\u7eed","bindWechatTip":"\u53d1\u5e16\u529f\u80fd\u8bbe\u7f6e\u4e86\u7ed1\u5b9a\u5fae\u4fe1\u7684\u9650\u5236\uff0c\u8bf7\u5148\u7ed1\u5b9a\u5fae\u4fe1\u4f1a\u5458\u3002","importTip":"\u53ea\u5bfc\u5165\u4e3b\u9898\u7684\u98ce\u683c\u548c\u6837\u5f0f","fullImportTip":"\u5c06\u4f1a\u5bfc\u5165\u6d4b\u8bd5\u6570\u636e\u4ee5\u53ca\u66ff\u6362\u7ad9\u70b9\u6587\u7ae0\u3001\u4ea7\u54c1\u7b49\u6570\u636e"};;
    
    var mySwiper = new Swiper('.index-banner1 .swiper-container', {
        autoplay: {
            delay: 5000,
            stopOnLastSlide: false,
            disableOnInteraction: true,
        },
        // effect : 'fade',
        pagination: {
            el: '.index-banner1 .swiper-pagination',
            clickable :true
        },
        navigation: {
            nextEl: '.index-banner1 .next',
            prevEl: '.index-banner1 .prev',
        },
        loop:true,
    })
    var mySwiper1 = new Swiper('.index-banner2 .swiper-container', {
        autoplay: true,//可选选项，自动滑动
        effect : 'fade',
        pagination: {
            el: '.index-banner2 .swiper-pagination',
            clickable :true
        },
        navigation: {
            nextEl: '.index-banner2 .next',
            prevEl: '.index-banner2 .prev',
        },
    })

    indexSwiper('.type-item ') //首页惠享
    function indexSwiper(dom){
        $(dom).each(function(index,item) {
            if($(this).hasClass('active')){
                new Swiper($(this).find('.swiper-container'), {
                    slidesPerView : 6,
                    navigation: {
                        nextEl: $(this).find('.swiper-button-next'),
                        prevEl: $(this).find('.swiper-button-prev'),
                    },
                    breakpoints: {
                        //当宽度大于等于320
                        1610: {
                            slidesPerView: 5,
                            spaceBetween: 10
                        },
                        1440: {
                            slidesPerView: 4,
                            spaceBetween: 10
                        },
                        1205: {
                            slidesPerView: 3,
                            spaceBetween: 10
                        },
                        800: {
                            slidesPerView: 2,
                            spaceBetween: 10
                        },
                        500: {
                            slidesPerView: 2,
                            spaceBetween: 8
                        },
                    }
                })
            }
        });
    }

//内似于tab切换，在导航父元素加parents，在每个子元素加child
    var _toggleIndex='';
    $('.index-product .parents li').hover(function(){
        $(this).addClass('active').siblings().removeClass('active')
        var index=$(this).index()
        if(index == _toggleIndex)return;
        _toggleIndex=index;
        var childDom=$(this).parents('.toggle').find('.child').get(index)
        $(childDom).addClass('active').siblings().removeClass('active')
        if($('.type-item ').length>1){
            indexSwiper('.type-item ')
        }
    })

    //导航栏中的menu
    var _menuIndex='';
    $('.menu-product dd').hover(function(){
        $(this).addClass('active').siblings().removeClass('active')
        var index=$(this).index()
        if(index == _menuIndex)return;
        _menuIndex=index;
        var childDom=$('.all-panel').get(index)
        $(childDom).addClass('active').siblings().removeClass('active')
    })
;
    
    var mySwiper = new Swiper('.index-banner1 .swiper-container', {
        autoplay: {
            delay: 5000,
            stopOnLastSlide: false,
            disableOnInteraction: true,
        },
        // effect : 'fade',
        pagination: {
            el: '.index-banner1 .swiper-pagination',
            clickable :true
        },
        navigation: {
            nextEl: '.index-banner1 .next',
            prevEl: '.index-banner1 .prev',
        },
        loop:true,
    })
    var mySwiper1 = new Swiper('.index-banner2 .swiper-container', {
        autoplay: true,//可选选项，自动滑动
        effect : 'fade',
        pagination: {
            el: '.index-banner2 .swiper-pagination',
            clickable :true
        },
        navigation: {
            nextEl: '.index-banner2 .next',
            prevEl: '.index-banner2 .prev',
        },
    })

    indexSwiper('.type-item ') //首页惠享
    function indexSwiper(dom){
        $(dom).each(function(index,item) {
            if($(this).hasClass('active')){
                new Swiper($(this).find('.swiper-container'), {
                    slidesPerView : 6,
                    navigation: {
                        nextEl: $(this).find('.swiper-button-next'),
                        prevEl: $(this).find('.swiper-button-prev'),
                    },
                    breakpoints: {
                        //当宽度大于等于320
                        1610: {
                            slidesPerView: 5,
                            spaceBetween: 10
                        },
                        1440: {
                            slidesPerView: 4,
                            spaceBetween: 10
                        },
                        1205: {
                            slidesPerView: 3,
                            spaceBetween: 10
                        },
                        800: {
                            slidesPerView: 2,
                            spaceBetween: 10
                        },
                        500: {
                            slidesPerView: 2,
                            spaceBetween: 8
                        },
                    }
                })
            }
        });
    }

//内似于tab切换，在导航父元素加parents，在每个子元素加child
    var _toggleIndex='';
    $('.index-product .parents li').hover(function(){
        $(this).addClass('active').siblings().removeClass('active')
        var index=$(this).index()
        if(index == _toggleIndex)return;
        _toggleIndex=index;
        var childDom=$(this).parents('.toggle').find('.child').get(index)
        $(childDom).addClass('active').siblings().removeClass('active')
        if($('.type-item ').length>1){
            indexSwiper('.type-item ')
        }
    })

    //导航栏中的menu
    var _menuIndex='';
    $('.menu-product dd').hover(function(){
        $(this).addClass('active').siblings().removeClass('active')
        var index=$(this).index()
        if(index == _menuIndex)return;
        _menuIndex=index;
        var childDom=$('.all-panel').get(index)
        $(childDom).addClass('active').siblings().removeClass('active')
    })
;$(function(){
	var videoHeight = $(".videos").height();
	$(".about-us .lefted").css('height',videoHeight);
	// 视频播放
	$(".videos .icon").click(function(){
		var video = document.getElementById('my-video');
		if (video.paused) { //如果已暂停则播放
			video.play(); //播放控制
			$(this).fadeOut();
			$(video).attr('controls',true)
		} else { // 已播放点击则暂停
			video.pause(); //暂停控制
			$(this).fadeIn();
		}
	})
})
;$(function(){
    let initSrc = [];
    initSrc[0] = '/file.php?f=source/default/wide/0.jpg&t=jpg&o=source&s=&v=1586418039';
    initSrc[1] = '/file.php?f=source/default/wide/1.jpg&t=jpg&o=source&s=&v=1585039344';
    initSrc[2] = '/file.php?f=source/default/wide/2.jpg&t=jpg&o=source&s=&v=1585039344';
    initSrc[3] = '/file.php?f=source/default/wide/3.jpg&t=jpg&o=source&s=&v=1585039344';
    initSrc[4] = '/file.php?f=source/default/wide/4.jpg&t=jpg&o=source&s=&v=1585039344';
    initSrc[5] = '/file.php?f=source/default/wide/5.jpg&t=jpg&o=source&s=&v=1585039344';
    initSrc[6] = '/file.php?f=source/default/wide/6.jpg&t=jpg&o=source&s=&v=1585039344';
    $(".trade-block").css("background-image","url("+initSrc[0]+")")
    $('ul.parents1 li.nor_li').hover(function(){
        
        $(this).addClass('active').siblings().removeClass('active').removeClass("hidden");
        
        let index = $(this).data('src');
        
        let dataIndex = $(this).data('index');
        let childDom = $('#li_div_'+dataIndex);
        
        if($('.type-item ').length>1){
            indexSwiper('.type-item ')
        }
        
        $(childDom).addClass('active').siblings().removeClass('active').attr("hidden");
        $(".trade-block").css("background-image","url("+initSrc[index]+")")
    })
})
;$(".navbtnT a").hover(function(){
	var x=$(".navbtnT>a").index(this);
	$(".inforT").hide();
	$(".inforT").eq(x).show();
	$(".navbtnT a").removeClass("currentT");
	$(this).addClass("currentT");
});
;

var currentBlockID = 266;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined' && $('#block' + currentBlockID).parent('.col').data('probability') === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;

var currentBlockID = 267;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined' && $('#block' + currentBlockID).parent('.col').data('probability') === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;$(document).ready(function()
{          
    // add "index" class to the body element.
    $('body').addClass('index');

    $('.nav-system-home:first').addClass('active');
})
/*$('input').bind('click','focus',function(){
  $('select').css('display','block')
  $('select').attr('multiple','multiple')
});*/
$('option').click(function(e){
    $('select').css('display','none')
    $('input').prop('value',e.target.label)
});
/*
$('input').on('input',function(){
    $('select').css('display','none')
});
*/$("#block272").insertBefore("#infor1");
$("#block273").insertBefore("#infor2");
$("#block274").insertBefore("#infor3");
$("#block266").insertBefore("#inforT1");
$("#block267").insertBefore("#inforT2");
$("#block283").insertBefore("#inforT3")
// WOw插件初始化
var wow = new WOW({
    boxClass: 'wow',
    animateClass: 'animated',
    offset: 80,
    mobile: true,
    live: true,
});
wow.init();
;
var hash = window.location.hash.substring(1);
var browserLanguage = navigator.language || navigator.userLanguage; 
var resolution      = screen.availWidth + ' X ' + screen.availHeight;
$.get(createLink('log', 'record', "hash=" + hash), {browserLanguage:browserLanguage, resolution:resolution});
;
    $(function(){
        //判断手机端
        if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
            $("ul.page").hide();
            $("aside").css({"bottom":"50px","top":"initial"});
            //$(".list_new:not(:last-child)").remove();
            $(".list_new.phone-hide").remove();
            $('.list_new:first-child').css('border-radius','10px');
            $('.list_new_left').remove();
        } else {
            $(".pager.form-inline").hide();
        }
        //返回顶部按钮
        var backButton = $("#scrolltop");
        var height = backButton.offset().top;
        // 滑动滚动条
        function backToTop() {
            $('html,body').animate({
                scrollTop: 0
            }, 800);
        }
        backButton.on('click', backToTop);
    })
