/* Js for http://www.baidu.com, Version=1718937373 */ 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":"\u6267\u884c\u51fa\u9519\uff1a","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"};;$(".subnav a").click(function(){ var x=$(".subnav a").index(this); $(".works").hide(); $(".works").eq(x).show(); $(".subnav a").removeClass("current"); $(this).addClass("current"); });;LbMove('BoxUl','btnl','btnr','BoxSwitch',true,'left',true,305,1000,5000,4); function LbMove(boxID, btn_left, btn_right, btnBox, Car, direction, way, moveLengh, speed, Interval, number) { var _ID = $("#" + boxID + ""); var _btn_left = $("#" + btn_left + ""); var _btn_right = $("#" + btn_right + ""); var _btnBox = $("#" + btnBox + ""); var jsq = 0 var timer; var cj; var no_way = 0; var no_wayGet = 0; var fade = 0; var new_time = new Date; var ID_liLen, ID_liheight, cbtmBtn; ID_liLen = _ID.find("li").length; ID_liheight = _ID.find("li").innerHeight(); if(direction == "left" || direction == "right") { _ID.find("ul").width(ID_liLen * moveLengh); } else if(direction == "top" || direction == "bottom") { _ID.find("ul").height(ID_liLen * moveLengh); _btnBox.hide() } else if(direction == "fade") { _ID.find("ul").width(moveLengh).height(ID_liheight); _ID.find("li").eq(0).show().siblings().hide(); _ID.find("li").css({ "position": "absolute", "left": 0, "top": 0 }); } _btnBox.empty(); for(i = 0; i < ID_liLen; i++) { _btnBox.append(""); }; _btnBox.find("span").eq(0).addClass("cur"); if(way == false) { _btn_left.hide(); _btn_right.hide(); _btnBox.hide(); } function Carousel() { if(way == false) { no_way++; if(direction == "left") { _ID.find("ul").css({ "left": -no_way }); no_wayGet = parseInt(_ID.find("ul").css("left")); if(no_wayGet == -moveLengh) { no_way = 0 _ID.find("li:first").insertAfter(_ID.find("li:last")); _ID.find("ul").css({ "left": 0 }); } } if(direction == "right") { no_wayGet = parseInt(_ID.find("ul").css("left")); if(no_wayGet == 0) { no_way = -moveLengh _ID.find("li:last").insertBefore(_ID.find("li:first")); _ID.find("ul").css({ "left": 0 }); } _ID.find("ul").css({ "left": no_way }); } if(direction == "top") { _ID.find("ul").css({ "top": -no_way }); no_wayGet = parseInt(_ID.find("ul").css("top")); if(no_wayGet == -moveLengh) { no_way = 0 _ID.find("li:first").insertAfter(_ID.find("li:last")); _ID.find("ul").css({ "top": 0 }); } } if(direction == "bottom") { no_wayGet = parseInt(_ID.find("ul").css("top")); if(no_wayGet == 0) { no_way = -moveLengh _ID.find("li:last").insertBefore(_ID.find("li:first")); _ID.find("ul").css({ "top": 0 }); } _ID.find("ul").css({ "top": no_way }); } } else if(way == true) { if(direction == "left") { _ID.find("ul").animate({ left: -moveLengh }, speed, function() { _ID.find("li:first").insertAfter(_ID.find("li:last")); _ID.find("ul").css({ "left": 0 }); }); if(jsq < ID_liLen - 1) { jsq++; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); } else { jsq = 0; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); } } if(direction == "right") { _ID.find("li:last").insertBefore(_ID.find("li:first")); _ID.find("ul").css({ "left": -moveLengh }); _ID.find("ul").stop().animate({ left: 0 }, speed); if(jsq > 0) { jsq--; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); } else { jsq = ID_liLen - 1; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); } } if(direction == "top") { _ID.find("ul").animate({ top: -moveLengh }, speed, function() { _ID.find("li:first").insertAfter(_ID.find("li:last")); _ID.find("ul").css({ "top": 0 }); }); } if(direction == "bottom") { _ID.find("li:last").insertBefore(_ID.find("li:first")); _ID.find("ul").css({ "top": -moveLengh }); _ID.find("ul").stop().animate({ top: 0 }, speed); } if(direction == "fade") { if(fade < ID_liLen - 1) { fade++; } else { fade = 0 } _ID.find("li").eq(fade).fadeIn(speed).siblings().fadeOut(speed); _btnBox.find("span").eq(fade).addClass("cur").siblings().removeClass("cur"); } } } if(Car == true) { if(ID_liLen > number) { timer = setInterval(Carousel, Interval); } else { clearInterval(timer); _btn_left.hide(); _btn_right.hide(); _btnBox.hide(); } } else { clearInterval(timer); } _ID.find("li").hover(function() { clearInterval(timer); }, function() { if(Car == true) { if(ID_liLen > number) { timer = setInterval(Carousel, Interval); } else { clearInterval(timer); _btn_left.hide(); _btn_right.hide(); _btnBox.hide(); } } else { clearInterval(timer); } }); _btn_right.hover(function() { clearInterval(timer); }, function() { if(Car == true) { if(ID_liLen > number) { timer = setInterval(Carousel, Interval); } else { clearInterval(timer); _btn_left.hide(); _btn_right.hide(); _btnBox.hide(); } } else { clearInterval(timer); } }).click(function() { if(new Date - new_time > 500) { new_time = new Date; if(direction == "left" || direction == "right") { _ID.find("ul").animate({ left: -moveLengh }, speed, function() { _ID.find("li:first").insertAfter(_ID.find("li:last")); _ID.find("ul").css({ "left": 0 }); }); } if(direction == "top" || direction == "bottom") { _ID.find("ul").animate({ top: -moveLengh }, speed, function() { _ID.find("li:first").insertAfter(_ID.find("li:last")); _ID.find("ul").css({ "top": 0 }); }); } if(direction == "fade") { if(fade > 0) { fade--; } else { fade = ID_liLen - 1 } _ID.find("li").stop(true, true).eq(fade).fadeIn(speed).siblings().fadeOut(speed); } if(jsq < ID_liLen - 1) { jsq++; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); } else { jsq = 0; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); }; } else {}; }); _btn_left.hover(function() { clearInterval(timer); }, function() { if(Car == true) { if(ID_liLen > number) { timer = setInterval(Carousel, Interval); } else { clearInterval(timer); _btn_left.hide(); _btn_right.hide(); _btnBox.hide(); } } else { clearInterval(timer); } }).click(function() { if(new Date - new_time > 500) { new_time = new Date; if(direction == "left" || direction == "right") { _ID.find("li:last").insertBefore(_ID.find("li:first")); _ID.find("ul").css({ "left": -moveLengh }); _ID.find("ul").stop().animate({ left: 0 }, speed); } if(direction == "top" || direction == "bottom") { _ID.find("li:last").insertBefore(_ID.find("li:first")); _ID.find("ul").css({ "top": -moveLengh }); _ID.find("ul").stop().animate({ top: 0 }, speed); } if(direction == "fade") { if(fade < ID_liLen - 1) { fade++; } else { fade = 0 } _ID.find("li").stop(true, true).eq(fade).fadeIn(speed).siblings().fadeOut(speed); } if(jsq > 0) { jsq--; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); } else { jsq = ID_liLen - 1; _btnBox.find("span").eq(jsq).addClass("cur").siblings().removeClass("cur"); }; } else {}; }); _btnBox.find("span").hover(function() { clearInterval(timer); }, function() { if(Car == true) { if(ID_liLen > number) { timer = setInterval(Carousel, Interval); } else { clearInterval(timer); _btn_left.hide(); _btn_right.hide(); _btnBox.hide(); } } else { clearInterval(timer); } }).click(function() { if(new Date - new_time > 500) { new_time = new Date; cbtmBtn = $(this).index(); $(this).addClass("cur").siblings().removeClass("cur"); if(direction == "fade") { _ID.find("li").eq(cbtmBtn).fadeIn(speed).siblings().fadeOut(speed); } else { if(cbtmBtn > jsq) { cj = cbtmBtn - jsq; jsq = cbtmBtn; _ID.find("ul").stop().animate({ left: -moveLengh * cj }, speed, function() { for(i = 0; i < cj; i++) { _ID.find("ul").css({ "left": 0 }) _ID.find("li:first").insertAfter(_ID.find("li:last")); }; }); } else { cj = jsq - cbtmBtn; jsq = cbtmBtn; _ID.find("ul").css({ "left": -moveLengh * cj }); for(i = 0; i < cj; i++) { _ID.find("ul").stop().animate({ left: 0 }, speed); _ID.find("li:last").insertBefore(_ID.find("li:first")); }; }; }; } else {}; }); }; var currentBlockID = 238; 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); }) ;$('#block238 .panel-heading .pull-right').insertAfter('#block238 .panel-body');; var currentBlockID = 2; 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); }) ;$('#block2 .panel-heading .pull-right').insertAfter('#block2 .panel-body');; var currentBlockID = 1; 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); }) ;$('#block1 .panel-heading .pull-right').insertAfter('#block1 .panel-body');;$().ready(function() { $('#execIcon').tooltip({title:$('#execInfoBar').html(), html:true, placement:'right'}); }); ;$(document).ready(function() { // add "index" class to the body element. $('body').addClass('index'); $('.nav-system-home:first').addClass('active'); $('#navbar li.active').parents('li').addClass('active'); }) $('#foot').insertBefore('#footer'); ; 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});