/*!spe2018-04-17*/ $(function() { $(".sep-header .sep-container .header-box .search-right>.span.languages").hover(function() { $(".sep-header .sep-container .header-box .search-right .language-list").addClass("selects") }, function() { $(".sep-header .sep-container .header-box .search-right .language-list").removeClass("selects") }), $(".sep-header .sep-container .header-box .search-right>.span.tels").hover(function() { $(".sep-header .sep-container .header-box .search-right .header-tel").addClass("tel-on"), $(".sep-header .sep-container .header-box .header-nav ul li:last-child").css("opacity", "0") }, function() { $(".sep-header .sep-container .header-box .search-right .header-tel").removeClass("tel-on"), $(".sep-header .sep-container .header-box .header-nav ul li:last-child").css("opacity", "1") }), $(".sep-body .sep-faq-news .sep-container .news>.news-titles1 ul li").hover(function() { var a = $(this).index(); $(this).addClass("selects").siblings().removeClass("selects"), $(".sep-body .sep-faq-news .sep-container .news .content-list1 .lists").eq(a).fadeIn().siblings().fadeOut() }), $(".sep-body .sep-faq-news .sep-container .news>.news-titles2 ul li").hover(function() { var a = $(this).index(); $(this).addClass("selects").siblings().removeClass("selects"), $(".sep-body .sep-faq-news .sep-container .news .content-list2 .lists").eq(a).fadeIn().siblings().fadeOut() }), $(window).scrollTop(0), $(window).scroll(function() { var a = $(window).height() / 3; $(window).scrollTop() > a ? $(".back_top").show() : $(".back_top").hide() }), $(".back_top").click(function() { var a = 700; return $("body,html").animate({ scrollTop: 0 }, a), !1 }), $(window).scroll(function() { var a = $(window).height() / 3; $(window).scrollTop() > a ? ($(".mabile-back-top").show(), $("#onlineService-two .offside li").addClass("ons")) : ($(".mabile-back-top").hide(), $("#onlineService-two .offside li").removeClass("ons")) }), $(".mabile-back-top").click(function() { var a = 700; return $("body,html").animate({ scrollTop: 0 }, a), !1 }), $(".onlineIcon").click(function() { var a = $(this).siblings(".pop"), b = a.width(); a.css({ transition: "all .5s", "-webkit-transition": "all .5s" }), 0 == b ? a.css({ width: "125px" }) : b > 0 && a.css({ width: "0" }) }), $(".offside .li_3").hover(function() { $(this).addClass("tel") }, function() { $(this).removeClass("tel") }), $(".sep-primary .sep-inner-labels li").click(function() { $(this).addClass("active").siblings().removeClass("active"), $(".sep-primary .sep-inner-content .richtext").eq($(this).index()).show().siblings().hide() }), $(".sep-sidebar .sep-box-panel.product>.datalist>li>a>i").click(function(a) { a.preventDefault(), $(this).hasClass("fa-angle-down") ? ($(this).removeClass("fa-angle-down").addClass("fa-angle-right"), $(this).parent().siblings("ul").slideUp(), $(this).parent().removeClass("active")) : ($(this).removeClass("fa-angle-right").addClass("fa-angle-down"), $(this).parent().siblings("ul").slideDown(), $(this).parent().addClass("active")) }), $(".sep-sidebar .sep-box .sep-box-body>ul>.has-childs>a>i").click(function(a) { a.preventDefault(), $(this).hasClass("fa-minus") ? ($(this).removeClass("fa-minus").addClass("fa-plus"), $(this).parent().siblings("ul").slideUp(), $(this).parent().removeClass("active")) : ($(this).removeClass("fa-plus").addClass("fa-minus"), $(this).parent().siblings("ul").slideDown(), $(this).parent().addClass("active")) }) }), $(function() { $(".language_main li").not(".close").each(function() { var a = $(".language_main li").not(".close"); a.length; index = $(this).index(), $(".language_main li:lt(11)").find("a").addClass("b") }), $(".change3").bind("click", function() { var a = $(".language_main2"); return a.hasClass("lan_fixed") ? ($(".language_main2").removeClass("lan_fixed"), $(".header_left .change i").removeClass("on"), $(".lanbox").css("z-index", "-1")) : (a.addClass("lan_fixed"), $(".header_left .change i").addClass("on"), $(".header .search i").removeClass("on"), $(this).siblings("span").siblings("i").removeClass("on"), $(".lanbox").css("height", $(".lanbox .language_main2").css("height")), $(".lanbox").css("z-index", "1000"), $(".search_moblie").hide(), $(".header .search").removeAttr("id"), $(".nav").removeClass("nav_fixed"), $(".navbox").css("height", "100%"), $(".navbox").css("z-index", "-1"), $(".header_menu").removeAttr("id")), !1 }), $(".language_con, .close").bind("click", function() { var a = $(".language_con"), b = $(".language_main3"); a.hide(), b.hide() }), $(".sep_mask .close").click(function() { $(".sep_mask").fadeOut("slow") }) }), $(".header .search").click(function() { $(".nav").removeClass("nav_fixed"), $(".navbox").css("height", "100%"), $(".navbox").css("z-index", "-1"), $(".header_menu").removeAttr("id"), "click" != $(this).attr("id") ? ($(this).attr("id", "click"), $(".search_moblie").slideDown(), $(".header .search i").addClass("on"), $(".header_left .change i").removeClass("on"), $(".language_main2").removeClass("lan_fixed"), $(".lanbox").css("z-index", "-1")) : ($(this).removeAttr("id"), $(".header .search i").removeClass("on"), $(".search_moblie").slideUp()) }), $(".header_menu").click(function() { $(".search_moblie").hide(), $(".header .search").removeAttr("id"), "menuClick" != $(this).attr("id") ? ($(this).attr("id", "menuClick"), $(".nav").addClass("nav_fixed"), $(".header_left .change i").removeClass("on"), $(".header .search i").removeClass("on"), $(".navbox").css("z-index", "1000"), $(".language_main2").removeClass("lan_fixed"), $(".lanbox").css("z-index", "-1")) : ($(this).removeAttr("id"), $(".nav").removeClass("nav_fixed"), $(".navbox").css("z-index", "-1"), $(".navbox").css("height", "100%")) }), $(function() { $(".sep-breadcrumb>li:last").attr("class", "li-last"), $(".nav>ul>li").click(function() { $(this).children("ul").slideToggle(); var a = $(".nav").css("height"); $(".navbox").css("height", a) }), $(".sep-mainnav .sep-container>ul>li>a").each(function() { var a = window.location.href; if ("/" != $(this).attr("href")) { if (a.indexOf($(this).attr("href")) > -1) return $(this).parent().addClass("active"), $(".sep-mainnav .sep-container>ul>li").eq(0).removeClass("active"), !1; $(".sep-mainnav .sep-container>ul>li").eq(0).addClass("active") } }), $(".sep-mainnav>.sep-container>ul>.has-childs").mouseover(function(a) { $(this).children("div").stop().show() }), $(".sep-mainnav>.sep-container>ul>.has-childs").mouseout(function(a) { $(this).children("div").stop().hide() }), $(".sep-mainnav .sep-container>ul>li").each(function() { var a = $(".sep-mainnav .sep-container>ul>.active").index(); $(this).mouseover(function() { $(".sep-mainnav .sep-container>ul>li").eq(a).removeClass("active") }), $(this).mouseout(function() { $(".sep-mainnav .sep-container>ul>li").eq(a).addClass("active") }) }), $(".nav>ul>.has-childs>ul>li>ul>li").mouseover(function() { $(this).parent().parent().css("background", "#3B3B3B") }), document.body.offsetWidth < 1100 && ($(".multi-language>.box>a").click(function() { $(".multi-language .box ul").toggle() }), $(document).not($(".multi-language .box")).click(function() { $(".multi-language .box ul").hide() }), $(".multi-language .box").click(function(a) { a.stopPropagation() })), $(".sep-body .sep-index-product-slider .hd .sep-container ul li").each(function() { $(this).mouseover(function() { $(".sep-body .sep-index-product-slider .bd .box").eq($(this).index()).addClass("active"), $(".sep-body .sep-index-product-slider .bd .box").eq($(this).index()).siblings("").removeClass("active") }) }) }); $(function () { var location=window.location.href; $('input[name="ecmsfrom"]').val(location); $(".refresh_captcha").click(function(){ $(".refresh_captcha").attr("src","/e/ShowKey/?v=feedback&"+Math.random()); }); $('.adv').bxSlider({ 'controls': false, 'auto': true, 'pause': 7000, 'speed': 1000, 'mode': 'fade' }); $('.autoplay').bxSlider({ 'controls': false, 'auto': true, 'pause': 4000, 'speed': 1000, 'mode': 'fade' }); $(".sep-footer .footer-search .sep-container form input.emails").focus(function () { $(this).val(''); }); var url=location.pathname; $('a').each(function(){ if(url==$(this).attr('href')){ $(this).parent().addClass('active'); $(this).parent().parent().show(); $(this).parent().parent().siblings().addClass('active'); } }) })