function txonoff(onbtn,oncon,oni,onii){$(onbtn).on("click",(function(e){$(oni).toggleclass(onii),$(oncon).fadetoggle(),$(document).one("click",(function(){$(oncon).fadeout(),$(oni).toggleclass(onii)})),e.stoppropagation()})),$(oncon).on("click",(function(e){e.stoppropagation()}))}function txpcnav(){$(".nav>ul>li").hover((function(){$(this).find("li").length>0&&($(this).children("ul").stop(!0,!0).slidedown(),$(this).addclass("hover"))}),(function(){$(this).children("ul").stop(!0,!0).slideup(),$(this).removeclass("hover")}))}function txwapnav(){$(".nav>ul>li").each((function(){var _this=this;$(this).find("i").click((function(){$(_this).find("i").toggleclass("fa-angle-down"),$(_this).find("ul").slidetoggle()}))}))}$((function(){var winr=$(window),surl=location.href,surl2=$(".place a:eq(1)").attr("href"),navbox=$(".header"),st;if($(".nav li a").each((function(){$(this).attr("href")!=surl&&$(this).attr("href")!=surl2||$(this).parent().addclass("on")})),$(".list-nav a").each((function(){$(this).attr("href")!=surl&&$(this).attr("href")!=surl2||$(this).addclass("on")})),$(window).scroll((function(){(st=math.max(document.body.scrolltop||document.documentelement.scrolltop))>80?navbox.addclass("fixednav"):navbox.removeclass("fixednav")})),$(".nav>ul>li").each((function(){$(this).find("li").length>0&&$(this).append("")})),winr.width()>=960)txpcnav();else{txwapnav();var bottommc,bottomgs=100/$(".fixed-kefu>ul").children().length;$(".fixed-kefu>ul>li").css({width:bottomgs+"%"})}if($(window).resize((function(){if(winr.width()>=960)txpcnav();else{txwapnav();var bottommc,bottomgs=100/$(".fixed-kefu>ul").children().length;$(".fixed-kefu ul li").css({width:bottomgs+"%"})}})),$(".home-flash").length>0)var swiper=new swiper(".home-flash .swiper-container",{spacebetween:30,centeredslides:!0,loop:!0,autoheight:!0,autoplay:{delay:5e3,disableoninteraction:!1},navigation:{nextel:".swiper-button-next",prevel:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}});if($(".home-case").length>0)var swiper=new swiper(".home-case .swiper-container",{slidesperview:6,spacebetween:10,autoplay:{delay:2500,disableoninteraction:!1},navigation:{nextel:".swiper-button-next",prevel:".swiper-button-prev"},breakpoints:{1024:{slidesperview:4,spacebetween:10},768:{slidesperview:3,spacebetween:10},640:{slidesperview:2,spacebetween:10},320:{slidesperview:1,spacebetween:10}}});$(".search-off,.search-off1").click((function(){$(".search-box").fadetoggle()})),$(".nav-on").click((function(){$(".nav").slidetoggle(),$(".nav-on i").toggleclass("fa-bars")})),$(".side-box dl").each((function(){$(this).addclass("wow fadeinup")})),$(".gotop").click((function(){$("body,html").animate({scrolltop:0},1e3)})),$(".fixed-kefu>ul>li").hover((function(){$(this).find("li").length>0&&($(this).children("ul").stop(!0,!0).fadein(),$(this).addclass("on"))}),(function(){$(this).children("ul").stop(!0,!0).fadeout(),$(this).removeclass("on")})),txonoff(".search-on",".search-box",".search-on i",""),zbp.plugin.unbind("comment.reply.start","system-default"),zbp.plugin.on("comment.reply.start","tx_qiye8",(function(id){var i=id;$("#inprevid").val(i);var frm=$("#divcommentpost"),cancel=$("#cancel-reply");frm.before($("