/*! Copyright 2015 Baidu Inc. All Rights Reserved. */;(function(){var l=void 0,m=!0,q=null,r=!1;function s(a){return function(){return a}}var u={t1:+new Date,t2:0,t3:0,t4:0},y=["search!"],ga=3,ha="BAIDU_DUP_replacement",ia="http://dup.baidustatic.com/painter/",z=document,C={},ja=0,ka=1,D=2,E=3,F=4,la=5;function ma(a){var b=na(a),d=b[0],b=b[1];this.id=a;this.name=b;this.uri=G(b);this.Fa=!b;this.status=ja;d&&b&&(this.Ka=J(K(d+"!"))||{load:function(){}});this.v=[]}
var Q=window.BAIDU_DUP_require||function(a,b,d){L(a,function(){for(var c=[],d=0;d<a.length;d++)c[d]=J(K(a[d]));P(b)&&b.apply(window,c)},d)};
function L(a,b,d){var c=a.length;if(0===c)b();else for(var k=c,f=0;f<c;f++)(function(a){function i(){if(a.status<D)j();else{for(var i=a.v,c=[],b=0;b<i.length;b++){var h=i[b];h&&K(h).status<E&&c.push(h)}0===c.length?j():L(c,j,d)}}function j(){a&&a.status<E&&(a.status=E);0===--k&&b()}var c=a.Ka;c&&(c.normalize&&(a.name=c.normalize(a.name,G)),c.name2url&&(a.uri=c.name2url(a.name)));a.status<D?c&&P(c.load)?c.load(a.name,Q,function(i){R(a.id,[],function(){return i});j()}):oa(a,i,d):i()})(K(a[f]))}
var S={},T={},U={};function oa(a,b,d){a.status=ka;U[a.id]?b():T[a.id]?S[a.id].push(b):(T[a.id]=m,S[a.id]=[b],0===a.uri.indexOf("http://cb.baidu.com/ecom?")&&(u.t2=+new Date),d?(b=a.uri,a=z.createElement("script"),a.charset="utf-8",a.async=m,a.src=b,b=z.getElementsByTagName("head")[0]||z.body,b.insertBefore(a,b.firstChild)):z.write('<script charset="utf-8" src="'+a.uri+'"><\/script>'))}
var R=window.BAIDU_DUP_define||function(a,b,d){8<a.length&&0===a.indexOf("request!")&&(u.t3=+new Date);var c=K(a);c.status<D&&(c.v=b,c.factory=d,c.status=c.Fa?E:D);if(T[a]){delete T[a];U[a]=m;b=S[a];for(delete S[a];a=b.shift();)a()}};function J(a){if(!a)return q;if(a.status>=F)return a.X;if(a.status<E&&a.X===l)return q;a.status=F;for(var b=[],d=0;d<a.v.length;d++)b[d]=J(K(a.v[d]));var c=d=a.factory;P(d)&&(c=d.apply(window,b));a.status=la;return a.X=c}
function G(a){return/^https?:\/\//.test(a)?a:ia+a+".js"}function K(a){return C[a]||(C[a]=new ma(a))}function na(a){var b,d=a?a.indexOf("!"):-1;-1<d&&(b=a.slice(0,d),a=a.slice(d+1,a.length));return[b,a]}function P(a){return"[object Function]"===Object.prototype.toString.call(a)}
R("util/lang",[],function(){function a(a){for(var c={},b="Array Boolean Date Error Function Number RegExp String".split(" "),f=0,g=b.length;f<g;f++)c["[object "+b[f]+"]"]=b[f].toLowerCase();return a==q?"null":c[Object.prototype.toString.call(a)]||"object"}var b=Object.prototype.hasOwnProperty;return{B:b,b:a,getAttribute:function(a,c){for(var b=a,f=c.split(".");f.length;){if(b===l||b===q)return;b=b[f.shift()]}return b},ia:function(d){if("object"!==a(d))return"";var c=[],k;for(k in d)b.call(d,k)&&c.push(k+
"="+encodeURIComponent(d[k]));return c.join("&")},l:function(b){var c=[];switch(a(b)){case "object":c=Array.prototype.slice.call(b);break;case "array":c=b;break;case "number":case "string":c.push(b)}return c},unique:function(a){for(var c=[],b={},f=a.length,g=0;g<f;g++){var i=a[g];b[i]||(c[c.length]=i,b[i]=m)}return c},removeItem:function(a,c){for(var b=[].slice.call(a),f=b.length-1;0<=f;f--)b[f]===c&&b.splice(f,1);return b},fa:function(){}}});
R("util/browser",["util/lang"],function(a){var b={},d=navigator.userAgent,c=window.RegExp;/msie (\d+\.\d)/i.test(d)&&(b.s=document.documentMode||+c.$1);/opera\/(\d+\.\d)/i.test(d)&&(b.opera=+c.$1);/firefox\/(\d+\.\d)/i.test(d)&&(b.Xa=+c.$1);/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(d)&&!/chrome/i.test(d)&&(b.ib=+(c.$1||c.$2));if(/chrome\/(\d+\.\d)/i.test(d)){b.qa=+c.$1;var k;try{k="scoped"in document.createElement("style")}catch(f){k=r}k&&(b.Pa=m)}try{/(\d+\.\d)/.test(a.getAttribute(window,
"external.max_version"))&&(b.cb=+c.$1)}catch(g){}a="Android iPad iPhone Linux Macintosh Windows".split(" ");c="";for(k=0;k<a.length&&!(c=a[k],d.match(RegExp(c.toLowerCase(),"i")));k++);b.platform=c;return b});
R("util/dom",["util/lang"],function(a){function b(a){try{if(a&&"object"===typeof a&&a.document&&"setInterval"in a)return m}catch(i){}return r}function d(a,i){i=2===arguments.length?i:a.parent;return a!=i||!b(a)}function c(a,i){for(var i=2===arguments.length?i:a.parent,j=0;10>j++&&d(a,i);){var c;try{c=!!a.parent.location.toString()}catch(b){c=r}if(!c)return m;a=a.parent}return 10<=j}function k(a){return 9===a.nodeType?a:a.ownerDocument||a.document}function f(b,i){1===arguments.length&&"number"===a.b(arguments[0])&&
(i=arguments[0],b=l);for(var i=i||10,j=window,h=0;h++<i&&d(j)&&!c(j)&&(!b||!b(j));)j=j.parent;return j}return{c:function(c,i){return"string"===a.b(c)&&0<c.length?(i||window).document.getElementById(c):c.nodeName&&(1===c.nodeType||9===c.nodeType)?c:q},Ga:b,t:d,C:c,va:k,Z:function(){var a=f().document.title;60<a.length&&(a=a.substr(0,60));return a},A:function(a){a=k(a);return a.parentWindow||a.defaultView||q},j:function(a){a=b(a)?a.document:k(a);return"CSS1Compat"===a.compatMode?a.documentElement:a.body},
L:f}});
R("util/style",["util/lang","util/dom","util/browser"],function(a,b,d){function c(a,c){if(!a)return"";var h="",h=-1<c.indexOf("-")?c.replace(/[-][^-]{1}/g,function(a){return a.charAt(1).toUpperCase()}):c.replace(/[A-Z]{1}/g,function(a){return"-"+a.charAt(0).toLowerCase()}),e=b.A(a);if(e&&e.getComputedStyle){if(e=e.getComputedStyle(a,q))return e.getPropertyValue(c)||e.getPropertyValue(h)}else if(a.currentStyle)return e=a.currentStyle,e[c]||e[h];return""}function k(a){var j={top:0,left:0};if(a===b.j(a))return j;
var h=b.va(a),e=h.body,h=h.documentElement;a.getBoundingClientRect&&(a=a.getBoundingClientRect(),j.left=Math.floor(a.left)+Math.max(h.scrollLeft,e.scrollLeft),j.top=Math.floor(a.top)+Math.max(h.scrollTop,e.scrollTop),j.left-=h.clientLeft,j.top-=h.clientTop,a=c(e,"borderLeftWidth"),e=c(e,"borderTopWidth"),a=parseInt(a,10),e=parseInt(e,10),j.left-=isNaN(a)?2:a,j.top-=isNaN(e)?2:e);return j}function f(a,j){var b=c(a,"margin"+j).toString().toLowerCase().replace("px","").replace("auto","0");return parseInt(b,
10)||0}function g(c){for(var j=b.A(c),h=100;c&&c.tagName;){var e=100;if(d.s){if(5<d.s)try{e=parseInt(a.getAttribute(c,"filters.alpha.opacity"),10)||100}catch(f){}h=h>e?e:h}else{try{e=100*(j.
Back to home |
File page
Subscribe |
Register |
Login
| N