/* Js for http://www.baidu.com, Version=1764222092 */
v.lang = {"confirmDelete":"Do you want to delete it?","deleteing":"Deleting","doing":"Doing","loading":"Loading","updating":"Updating","timeout":"Timeout. Please try it again.","errorThrown":"
Error <\/h4>","continueShopping":"Continue shopping","required":"Required","back":"Back","continue":"Continue","importTip":"Old layout data will be replaced","fullImportTip":"Old article, product, layout data will be replaced and import test data"};;
$.extend({SliderCarousel:function(opts){var options={el:"",time:5000,title:"",lookMore:true,moreUrl:"#"};$.extend(true,options,opts);var _this=$(options.el),$slider=_this.find(".slide"),$item=$slider.find("div.item"),caseNum=($item.length)/4,indexInter=null,item=-1;var startMove=function(){var index=null;if(caseNum>1){index=setInterval(function(){var left=item*100+"%";item--;item=item<-2?0:item;$slider.animate({marginLeft:left},500)},options.time)}return index};$item.find(".tile-caption").wrapInner('
');if($(document).width()<641){_this.height($item.height()+75)}var titleHtml='';if(options.lookMore){titleHtml=''}$(titleHtml).insertBefore(options.el+">.slide");var footerNav='';for(var i=caseNum-1;i>=0;i--){if(i==caseNum-1){footerNav+=''}else{footerNav+=''}}$(footerNav).insertAfter(options.el+">.slide").on("click",".item",function(event){event.preventDefault();clearInterval(indexInter);$(this).addClass("active").siblings(".active").removeClass("active");var left="-"+$(this).index()*100+"%";$slider.animate({marginLeft:left},500)});$item.mouseenter(function(){clearInterval(indexInter);$(this).find(".tile-caption").css({"background-color":"rgba(0,0,0,0.1)"}).find(".inner p").toggle(500)}).mouseleave(function(){indexInter=startMove();$(this).find(".tile-caption").css({"background-color":"rgba(0,0,0,0)"}).find(".inner p").toggle(500)});indexInter=startMove();$slider.on("click","div.item",function(event){event.preventDefault();var url=$(this).data("url");if(url){window.location.href=url}})},CarCarousel:function(opts){var options={el:"",time:10000,title:"",lookMore:true,moreUrl:"#"};$.extend(true,options,opts);var _this=$(options.el).addClass("clearfix"),$item=_this.find(".item"),num=$item.length/6,indexInter=null,item=-1,$slide=_this.find(".slide");var startMove=function(){var index=null;if(num>1){index=setInterval(function(){var hLen=_this.height()-_this.find(".panel-heading").outerHeight(),num=$item.length/6,top=item*hLen+"px";item--;item=item<=-num?0:item;$slide.find(".item").animate({opacity:"0"},"slow");$slide.find(".item").animate({opacity:"1"},"slow");$slide.stop().animate({marginTop:top},"slow")},options.time)}return index};var titleHtml='';if(options.lookMore){titleHtml=''}$(titleHtml).insertBefore(options.el+">.slide");$.each($item,function(index,item){var id=index%6;$(item).addClass("item-"+id)});$slide.wrap("");$item.find(".tile-caption").wrapInner('');var hLen=_this.height()-_this.find(".panel-heading").outerHeight();_this.find(".slide-view").height(hLen);$slide.height(hLen);var footerNav='';for(var i=num-1;i>=0;i--){if(i==num-1){footerNav+=''}else{footerNav+=''}}$(footerNav).insertAfter(options.el+">.slide-view").on("click",".item",function(event){event.preventDefault();clearInterval(indexInter);$(this).addClass("active").siblings(".active").removeClass("active");var hLen=_this.height()-_this.find(".panel-heading").outerHeight(),top=-$(this).index()*hLen+"px";$slide.animate({marginTop:top},500)});$item.mouseenter(function(){clearInterval(indexInter);$(this).find(".tile-caption").css({"background-color":"rgba(0,0,0,0.1)"}).find(".inner p").toggle(500)}).mouseleave(function(){indexInter=startMove();$(this).find(".tile-caption").css({"background-color":"rgba(0,0,0,0)"}).find(".inner p").toggle(500)});$(window).resize(function(){var hLen=_this.height()-_this.find(".panel-heading").outerHeight();_this.find(".slide-view").height(hLen);$slide.height(hLen)});indexInter=startMove()}});
;$(function(){
$.SliderCarousel({
el:"#block381",
time: 5000,
title: 'Solution',
lookMore: false,
moreUrl: "/solution-en.html"
});
});;$(".page-wrapper").before($("#block382").parents('.row.blocks'));;
var currentBlockID = 384;
if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === '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');
})
$(function(){
// 网站 导航
if($(document).width()>767)
$(".nav .dropdown-hover").children(".dropdown-menu").wrap('');
$(".santachi-sult-car").parent("a").parent("li").addClass("santachi-subnav Solution");
$(".santachi-ad-car").parent("a").parent("li").addClass("santachi-subnav solution santachi-adcar-panel ");
$(".santachi-pro-subnav").parent("a").parent("li").addClass("santachi-subnav");
$(".santachi-pro-nav").parent("a").parent("li").addClass("santachi-top-product");
$(".santachi-subnav").parent(".dropdown-menu").addClass("clearfiexd");
$(window).resize(function(){
var wrapDoc=$(".nav .dropdown-hover").children(".stantachi-wrapper"),
winW=$(document).width();
if(wrapDoc.length>0 && winW<768)
{$(".nav .dropdown-hover").children(".stantachi-wrapper").find(".row>.dropdown-menu").unwrap().unwrap();}
if(winW>768){
wrapDoc.length==0?$(".nav .dropdown-hover").children(".dropdown-menu").wrap(''):"";
}
});
// 底部导航
$(".page-content .all-bottom").insertBefore("#footer");
// banner 导航
$('.page-content .breadcrumb').prependTo('.row.blocks[data-region*="-topBanner"]');
});
;
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?131b6f21b0e93872f6b1fedb979867d0";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();