/*!
 * jQuery JavaScript Library v1.10.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03T13:48Z
 */

/*!
 * Sizzle CSS Selector Engine v1.10.2
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2013-07-03
 */

//     (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

//     Underscore may be freely distributed under the MIT license.

//     (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.

//     (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

//     Backbone may be freely distributed under the MIT license.

/**
 * @license RequireJS text 2.0.10 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/bdyt_requirejs/text for details
 */

bdyt_define("utils/pdc",[],function(){return window.PDC={_timing:{},_opt:{sample:.01},_analyzer:{loaded:!1,url:"http://static.tieba.baidu.com/tb/pms/wpo.pda.js?v=2.9",callbacks:[]},_render_start:+(new Date),_DE_STATE:{},extend:function(e,t){for(property in e)t[property]=e[property];return t},metadata:function(){var e=this._opt;return{env:{product_id:e.product_id,page_id:PDC._is_sample(e.sample)?e.page_id:0},render_start:this._render_start,custom_metrics:[],timing:this._timing}},init:function(e){this.extend(e,this._opt),e=this._opt.custom_metrics||[];for(var t=0,n=e.length;t<n;t++)this._DE_STATE[e[t]]=!1},mark:function(e,t){this._timing[e]=t||+(new Date),this._done(e)},_done:function(e){var t=!0,n="";if(e in this._DE_STATE){this._DE_STATE[e]=!0;for(n in this._DE_STATE)if(this._DE_STATE[n]===!1){t=!1;break}}else t=!1;t===!0&&this._load_analyzer()}},PDC.init({sample:1,product_id:156,page_id:11,custom_metrics:["c_indexButtonShow","c_indexHover","c_indexListShow"]}),PDC.extend({_navTiming:window.performance&&performance.timing,Cookie:{set:function(e,t,n){n=n||10;var r=new Date;r.setTime((new Date).getTime()+n*1e3),document.cookie=e+"="+escape(t)+";path=/;expires="+r.toGMTString()},get:function(e){return e=document.cookie.match(RegExp("(^| )"+e+"=([^;]*)(;|$)")),e!=null?unescape(e[2]):null},remove:function(e){this.set(e,"",-1)}},_is_sample:function(e){return PDC._random||(PDC._random=Math.random()),PDC._random<=e},_load_analyzer:function(){PDC._is_sample([this._opt.sample])!=0&&(PDC._analyzer.loaded=!0,PDC._load_js(PDC._analyzer.url,function(){for(var e=PDC._analyzer.callbacks,t=0,n=e.length;t<n;t++)e[t]()}))},_load_js:function(e,t){var n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src",e),n.onload=n.onreadystatechange=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")n.onload=n.onreadystatechange=null,typeof t=="function"&&t(e,!0)},n.onerror=function(){typeof t=="function"&&t(e,!1)},document.getElementsByTagName("head")[0].appendChild(n)},send:function(){PDC._analyzer.loaded==1?WPO_PDA&&WPO_PDA.send():(PDC._load_analyzer(),PDC._analyzer.callbacks.push(function(){WPO_PDA&&WPO_PDA.send()}))}},PDC),function(){function c(e){e=e||window.event;e:{e=e.target||e.srcElement;var t=0;if((e.nodeName||e.tagName).toLowerCase()==="a".toLowerCase())e=e;else{for(;e=e.parentNode;){t++;if((e.nodeName||e.tagName).toLowerCase()==="a".toLowerCase()){e=e;break e}if(t>=4)break}e=null}}e&&(/^#|javascript:/.test(e.getAttribute("href"))||d.set("PMS_JT",'({"s":'+ +(new Date)+',"r":"'+document.URL.replace(/#.*/,"")+'"})'))}var d=PDC.Cookie,a=d.get("PMS_JT");a&&(d.remove("PMS_JT"),a=eval(a),(!a.r||document.referrer.replace(/#.*/,"")==a.r)&&PDC._render_start-a.s>100&&PDC.mark("wt",PDC._render_start-a.s)),document.attachEvent?document.attachEvent("onclick",c):document.addEventListener("click",c,!1)}(),document.attachEvent?window.attachEvent("onload",function(){PDC.mark("lt")},!1):window.addEventListener("load",function(){PDC.mark("lt")}),{}}),bdyt_define("normalize",[],function(){function s(e,i,s){if(e.match(r)||e.match(n))return e;e=t(e);var a=s.match(n),f=i.match(n);return f&&(!a||a[1]!=f[1]||a[2]!=f[2])?o(e,i):u(o(e,i),s)}function o(e,t){e.substr(0,2)=="./"&&(e=e.substr(2));if(e.match(r)||e.match(n))return e;var i=t.split("/"),s=e.split("/");i.pop();while(curPart=s.shift())curPart==".."?i.pop():i.push(curPart);return i.join("/")}function u(e,t){var n=t.split("/");n.pop(),t=n.join("/")+"/",i=0;while(t.substr(i,1)==e.substr(i,1))i++;while(t.substr(i,1)!="/")i--;t=t.substr(i+1),e=e.substr(i+1),n=t.split("/");var r=e.split("/");out="";while(n.shift())out+="../";while(curPart=r.shift())out+=curPart+"/";return out.substr(0,out.length-1)}var e=/([^:])\/+/g,t=function(t){return t.replace(e,"$1/")},n=/[^\:\/]*:\/\/([^\/])*/,r=/^(\/|data:)/,a=function(e,n,r){n=t(n),r=t(r);var i=/@import\s*("([^"]*)"|'([^']*)')|url\s*\(\s*(\s*"([^"]*)"|'([^']*)'|[^\)]*\s*)\s*\)/ig,o,u,e;while(o=i.exec(e)){u=o[3]||o[2]||o[5]||o[6]||o[4];var a;a=s(u,n,r);var f=o[5]||o[6]?1:0;e=e.substr(0,i.lastIndex-u.length-f-1)+a+e.substr(i.lastIndex-f-1),i.lastIndex=i.lastIndex+(a.length-u.length)}return e};return a.convertURIBase=s,a.absoluteURI=o,a.relativeURI=u,a}),bdyt_define("css",[],function(){if(typeof window=="undefined")return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)/)||0,n=!1,r=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]?r=!1:t[4]&&(n=parseInt(t[4])<18);var i={};i.pluginBuilder="./css-builder";var s,o=function(){s=document.createElement("style"),e.appendChild(s)},u=function(e,t){o();var n=s.styleSheet||s.sheet;if(n&&n.addImport)n.addImport(e),s.onload=t;else{s.textContent='@import "'+e+'";';var r=setInterval(function(){try{s.sheet.cssRules,clearInterval(r),t()}catch(e){}},10)}},a=function(t,n){var i=document.createElement("link");i.type="text/css",i.rel="stylesheet";if(r)i.onload=function(){i.onload=function(){},setTimeout(n,7)};else var s=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++){var t=document.styleSheets[e];if(t.href==i.href)return clearInterval(s),n()}},10);i.href=t,e.appendChild(i)};return i.normalize=function(e,t){return e.substr(e.length-4,4)==".css"&&(e=e.substr(0,e.length-4)),t(e)},i.load=function(e,t,r,i){(n?u:a)(t.toUrl(e+".css"),r)},i}),bdyt_define("css!css-style/bdyt-base",[],function(){}),bdyt_define("jquery",[],function(){function D(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function H(e){var t=P[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function F(e,t,n,r){if(!y.acceptData(e))return;var i,s,o=y.expando,u=e.nodeType,a=u?y.cache:e,l=u?e[o]:e[o]&&o;if((!l||!a[l]||!r&&!a[l].data)&&n===undefined&&typeof t=="string")return;l||(u?l=e[o]=f.pop()||y.guid++:l=o),a[l]||(a[l]=u?{}:{toJSON:y.noop});if(typeof t=="object"||typeof t=="function")r?a[l]=y.extend(a[l],t):a[l].data=y.extend(a[l].data,t);return s=a[l],r||(s.data||(s.data={}),s=s.data),n!==undefined&&(s[y.camelCase(t)]=n),typeof t=="string"?(i=s[t],i==null&&(i=s[y.camelCase(t)])):i=s,i}function I(e,t,n){if(!y.acceptData(e))return;var r,i,s=e.nodeType,o=s?y.cache:e,u=s?e[y.expando]:y.expando;if(!o[u])return;if(t){r=n?o[u]:o[u].data;if(r){y.isArray(t)?t=t.concat(y.map(t,y.camelCase)):t in r?t=[t]:(t=y.camelCase(t),t in r?t=[t]:t=t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!R(r):!y.isEmptyObject(r))return}}if(!n){delete o[u].data;if(!R(o[u]))return}s?y.cleanData([e],!0):y.support.deleteExpando||o!=o.window?delete o[u]:o[u]=null}function q(e,t,n){if(n===undefined&&e.nodeType===1){var r="data-"+t.replace(j,"-$1").toLowerCase();n=e.getAttribute(r);if(typeof n=="string"){try{n=n==="true"?!0:n==="false"?!1:n==="null"?null:+n+""===n?+n:B.test(n)?y.parseJSON(n):n}catch(i){}y.data(e,t,n)}else n=undefined}return n}function R(e){var t;for(t in e){if(t==="data"&&y.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function nt(){return!0}function rt(){return!1}function it(){try{return i.activeElement}catch(e){}}function ft(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function lt(e,t,n){if(y.isFunction(t))return y.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return y.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(st.test(t))return y.filter(t,e,n);t=y.filter(t,e)}return y.grep(e,function(e){return y.inArray(e,t)>=0!==n})}function ct(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function At(e,t){return y.nodeName(e,"table")&&y.nodeName(t.nodeType===1?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ot(e){return e.type=(y.find.attr(e,"type")!==null)+"/"+e.type,e}function Mt(e){var t=Tt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;(n=e[r])!=null;r++)y._data(n,"globalEval",!t||y._data(t[r],"globalEval"))}function Dt(e,t){if(t.nodeType!==1||!y.hasData(e))return;var n,r,i,s=y._data(e),o=y._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)y.event.add(t,n,u[n][r])}o.data&&(o.data=y.extend({},o.data))}function Pt(e,t){var n,r,i;if(t.nodeType!==1)return;n=t.nodeName.toLowerCase();if(!y.support.noCloneEvent&&t[y.expando]){i=y._data(t);for(r in i.events)y.removeEvent(t,r,i.handle);t.removeAttribute(y.expando)}if(n==="script"&&t.text!==e.text)Ot(t).text=e.text,Mt(t);else if(n==="object")t.parentNode&&(t.outerHTML=e.outerHTML),y.support.html5Clone&&e.innerHTML&&!y.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML);else if(n==="input"&&Et.test(e.type))t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value);else if(n==="option")t.defaultSelected=t.selected=e.defaultSelected;else if(n==="input"||n==="textarea")t.defaultValue=e.defaultValue}function Ht(e,t){var r,i,s=0,o=typeof e.getElementsByTagName!==n?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==n?e.querySelectorAll(t||"*"):undefined;if(!o)for(o=[],r=e.childNodes||e;(i=r[s])!=null;s++)!t||y.nodeName(i,t)?o.push(i):y.merge(o,Ht(i,t));return t===undefined||t&&y.nodeName(e,t)?y.merge([e],o):o}function Bt(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Zt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Yt.length;while(i--){t=Yt[i]+n;if(t in e)return t}return r}function en(e,t){return e=t||e,y.css(e,"display")==="none"||!y.contains(e.ownerDocument,e)}function tn(e,t){var n,r,i,s=[],o=0,u=e.length;for(;o<u;o++){r=e[o];if(!r.style)continue;s[o]=y._data(r,"olddisplay"),n=r.style.display,t?(!s[o]&&n==="none"&&(r.style.display=""),r.style.display===""&&en(r)&&(s[o]=y._data(r,"olddisplay",on(r.nodeName)))):s[o]||(i=en(r),(n&&n!=="none"||!i)&&y._data(r,"olddisplay",i?n:y.css(r,"display")))}for(o=0;o<u;o++){r=e[o];if(!r.style)continue;if(!t||r.style.display==="none"||r.style.display==="")r.style.display=t?s[o]||"":"none"}return e}function nn(e,t,n){var r=Xt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function rn(e,t,n,r,i){var s=n===(r?"border":"content")?4:t==="width"?1:0,o=0;for(;s<4;s+=2)n==="margin"&&(o+=y.css(e,n+Gt[s],!0,i)),r?(n==="content"&&(o-=y.css(e,"padding"+Gt[s],!0,i)),n!=="margin"&&(o-=y.css(e,"border"+Gt[s]+"Width",!0,i))):(o+=y.css(e,"padding"+Gt[s],!0,i),n!=="padding"&&(o+=y.css(e,"border"+Gt[s]+"Width",!0,i)));return o}function sn(e,t,n){var r=!0,i=t==="width"?e.offsetWidth:e.offsetHeight,s=Ft(e),o=y.support.boxSizing&&y.css(e,"boxSizing",!1,s)==="border-box";if(i<=0||i==null){i=It(e,t,s);if(i<0||i==null)i=e.style[t];if(Vt.test(i))return i;r=o&&(y.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+rn(e,t,n||(o?"border":"content"),r,s)+"px"}function on(e){var t=i,n=Jt[e];if(!n){n=un(e,t);if(n==="none"||!n)jt=(jt||y("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(jt[0].contentWindow||jt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),jt.detach();Jt[e]=n}return n}function un(e,t){var n=y(t.createElement(e)).appendTo(t.body),r=y.css(n[0],"display");return n.remove(),r}function pn(e,t,n,r){var i;if(y.isArray(t))y.each(t,function(t,i){n||fn.test(e)?r(e,i):pn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&y.type(t)==="object")for(i in t)pn(e+"["+i+"]",t[i],n,r);else r(e,t)}function On(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(w)||[];if(y.isFunction(n))while(r=s[i++])r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Mn(e,t,n,r){function o(u){var a;return i[u]=!0,y.each(e[u]||[],function(e,u){var f=u(t,n,r);if(typeof f=="string"&&!s&&!i[f])return t.dataTypes.unshift(f),o(f),!1;if(s)return!(a=f)}),a}var i={},s=e===kn;return o(t.dataTypes[0])||!i["*"]&&o("*")}function _n(e,t){var n,r,i=y.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&y.extend(!0,e,n),e}function Dn(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while(a[0]==="*")a.shift(),i===undefined&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){a.unshift(o);break}if(a[0]in n)s=a[0];else{for(o in n){if(!a[0]||e.converters[o+" "+a[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==a[0]&&a.unshift(s),n[s]}function Pn(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s){e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift();if(s)if(s==="*")s=a;else if(a!=="*"&&a!==s){o=f[a+" "+s]||f["* "+s];if(!o)for(i in f){u=i.split(" ");if(u[1]===s){o=f[a+" "+u[0]]||f["* "+u[0]];if(o){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}}}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}}return{state:"success",data:t}}function Rn(){try{return new window.XMLHttpRequest}catch(e){}}function Un(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function Qn(){return setTimeout(function(){zn=undefined}),zn=y.now()}function Gn(e,t,n){var r,i=(Kn[t]||[]).concat(Kn["*"]),s=0,o=i.length;for(;s<o;s++)if(r=i[s].call(n,t,e))return r}function Yn(e,t,n){var r,i,s=0,o=Jn.length,u=y.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=zn||Qn(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;o<a;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),s<1&&a?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:y.extend({},t),opts:y.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:zn||Qn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=y.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;i=!0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Zn(l,f.opts.specialEasing);for(;s<o;s++){r=Jn[s].call(f,e,l,f.opts);if(r)return r}return y.map(l,Gn,f),y.isFunction(f.opts.start)&&f.opts.start.call(e,f),y.fx.timer(y.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Zn(e,t){var n,r,i,s,o;for(n in e){r=y.camelCase(n),i=t[r],s=e[n],y.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=y.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function er(e,t,n){var r,i,s,o,u,a,f=this,l={},c=e.style,h=e.nodeType&&en(e),p=y._data(e,"fxshow");n.queue||(u=y._queueHooks(e,"fx"),u.unqueued==null&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,f.always(function(){f.always(function(){u.unqueued--,y.queue(e,"fx").length||u.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[c.overflow,c.overflowX,c.overflowY],y.css(e,"display")==="inline"&&y.css(e,"float")==="none"&&(!y.support.inlineBlockNeedsLayout||on(e.nodeName)==="inline"?c.display="inline-block":c.zoom=1)),n.overflow&&(c.overflow="hidden",y.support.shrinkWrapBlocks||f.always(function(){c.overflow=n.overflow[0],c.overflowX=n.overflow[1],c.overflowY=n.overflow[2]}));for(r in t){i=t[r];if(Xn.exec(i)){delete t[r],s=s||i==="toggle";if(i===(h?"hide":"show"))continue;l[r]=p&&p[r]||y.style(e,r)}}if(!y.isEmptyObject(l)){p?"hidden"in p&&(h=p.hidden):p=y._data(e,"fxshow",{}),s&&(p.hidden=!h),h?y(e).show():f.done(function(){y(e).hide()}),f.done(function(){var t;y._removeData(e,"fxshow");for(t in l)y.style(e,t,l[t])});for(r in l)o=Gn(h?p[r]:0,r,f),r in p||(p[r]=o.start,h&&(o.end=o.start,o.start=r==="width"||r==="height"?1:0))}}function tr(e,t,n,r,i){return new tr.prototype.init(e,t,n,r,i)}function nr(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=Gt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function rr(e){return y.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var e,t,n=typeof undefined,r=window.location,i=window.document,s=i.documentElement,o=window.jQuery,u=window.$,a={},f=[],l="1.10.2",c=f.concat,h=f.push,p=f.slice,d=f.indexOf,v=a.toString,m=a.hasOwnProperty,g=l.trim,y=function(e,n){return new y.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,x=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,T=/^[\],:{}\s]*$/,N=/(?:^|:|,)(?:\s*\[)+/g,C=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,k=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,L=/^-ms-/,A=/-([\da-z])/gi,O=function(e,t){return t.toUpperCase()},M=function(e){if(i.addEventListener||e.type==="load"||i.readyState==="complete")_(),y.ready()},_=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",M,!1),window.removeEventListener("load",M,!1)):(i.detachEvent("onreadystatechange",M),window.detachEvent("onload",M))};y.fn=y.prototype={jquery:l,constructor:y,init:function(e,t,n){var r,s;if(!e)return this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?r=[null,e,null]:r=S.exec(e);if(r&&(r[1]||!t)){if(r[1]){t=t instanceof y?t[0]:t,y.merge(this,y.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0));if(x.test(r[1])&&y.isPlainObject(t))for(r in t)y.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}s=i.getElementById(r[2]);if(s&&s.parentNode){if(s.id!==r[2])return n.find(e);this.length=1,this[0]=s}return this.context=i,this.selector=e,this}return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e)}return e.nodeType?(this.context=this[0]=e,this.length=1,this):y.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),y.makeArray(e,this))},selector:"",length:0,toArray:function(){return p.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=y.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return y.each(this,e,t)},ready:function(e){return y.ready.promise().done(e),this},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},map:function(e){return this.pushStack(y.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},y.fn.init.prototype=y.fn,y.extend=y.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;typeof o=="boolean"&&(f=o,o=arguments[1]||{},u=2),typeof o!="object"&&!y.isFunction(o)&&(o={}),a===u&&(o=this,--u);for(;u<a;u++)if((i=arguments[u])!=null)for(r in i){e=o[r],n=i[r];if(o===n)continue;f&&n&&(y.isPlainObject(n)||(t=y.isArray(n)))?(t?(t=!1,s=e&&y.isArray(e)?e:[]):s=e&&y.isPlainObject(e)?e:{},o[r]=y.extend(f,s,n)):n!==undefined&&(o[r]=n)}return o},y.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),noConflict:function(e){return window.$===y&&(window.$=u),e&&window.jQuery===y&&(window.jQuery=o),y},isReady:!1,readyWait:1,holdReady:function(e){e?y.readyWait++:y.ready(!0)},ready:function(t){if(t===!0?--y.readyWait:y.isReady)return;if(!i.body)return setTimeout(y.ready);y.isReady=!0;if(t!==!0&&--y.readyWait>0)return;e.resolveWith(i,[y]),y.fn.trigger&&y(i).trigger("ready").off("ready")},isFunction:function(e){return y.type(e)==="function"},isArray:Array.isArray||function(e){return y.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):typeof e=="object"||typeof e=="function"?a[v.call(e)]||"object":typeof e},isPlainObject:function(e){var t;if(!e||y.type(e)!=="object"||e.nodeType||y.isWindow(e))return!1;try{if(e.constructor&&!m.call(e,"constructor")&&!m.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(y.support.ownLast)for(t in e)return m.call(e,t);for(t in e);return t===undefined||m.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||i;var r=x.exec(e),s=!n&&[];return r?[t.createElement(r[1])]:(r=y.buildFragment([e],t,s),s&&y(s).remove(),y.merge([],r.childNodes))},parseJSON:function(e){if(window.JSON&&window.JSON.parse)return window.JSON.parse(e);if(e===null)return e;if(typeof e=="string"){e=y.trim(e);if(e&&T.test(e.replace(C,"@").replace(k,"]").replace(N,"")))return(new Function("return "+e))()}y.error("Invalid JSON: "+e)},parseXML:function(e){var t,n;if(!e||typeof e!="string")return null;try{window.DOMParser?(n=new DOMParser,t=n.parseFromString(e,"text/xml")):(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch(r){t=undefined}return(!t||!t.documentElement||t.getElementsByTagName("parsererror").length)&&y.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&y.trim(e)&&(window.execScript||function(e){window.eval.call(window,e)})(e)},camelCase:function(e){return e.replace(L,"ms-").replace(A,O)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=D(e);if(n)if(o)for(;i<s;i++){r=t.apply(e[i],n);if(r===!1)break}else for(i in e){r=t.apply(e[i],n);if(r===!1)break}else if(o)for(;i<s;i++){r=t.call(e[i],i,e[i]);if(r===!1)break}else for(i in e){r=t.call(e[i],i,e[i]);if(r===!1)break}return e},trim:g&&!g.call("﻿ ")?function(e){return e==null?"":g.call(e)}:function(e){return e==null?"":(e+"").replace(E,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(D(Object(e))?y.merge(n,typeof e=="string"?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(d)return d.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=t.length,r=e.length,i=0;if(typeof n=="number")for(;i<n;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,t,n){var r,i=0,s=e.length,o=D(e),u=[];if(o)for(;i<s;i++)r=t(e[i],i,n),r!=null&&(u[u.length]=r);else for(i in e)r=t(e[i],i,n),r!=null&&(u[u.length]=r);return c.apply([],u)},guid:1,proxy:function(e,t){var n,r,i;return typeof t=="string"&&(i=e[t],t=e,e=i),y.isFunction(e)?(n=p.call(arguments,2),r=function(){return e.apply(t||this,n.concat(p.call(arguments)))},r.guid=e.guid=e.guid||y.guid++,r):undefined},access:function(e,t,n,r,i,s,o){var u=0,a=e.length,f=n==null;if(y.type(n)==="object"){i=!0;for(u in n)y.access(e,t,u,n[u],!0,s,o)}else if(r!==undefined){i=!0,y.isFunction(r)||(o=!0),f&&(o?(t.call(e,r),t=null):(f=t,t=function(e,t,n){return f.call(y(e),n)}));if(t)for(;u<a;u++)t(e[u],n,o?r:r.call(e[u],u,t(e[u],n)))}return i?e:f?t.call(e):a?t(e[0],n):s},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i}}),y.ready.promise=function(t){if(!e){e=y.Deferred();if(i.readyState==="complete")setTimeout(y.ready);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",M,!1),window.addEventListener("load",M,!1);else{i.attachEvent("onreadystatechange",M),window.attachEvent("onload",M);var n=!1;try{n=window.frameElement==null&&i.documentElement}catch(r){}n&&n.doScroll&&function s(){if(!y.isReady){try{n.doScroll("left")}catch(e){return setTimeout(s,50)}_(),y.ready()}}()}}return e.promise(t)},y.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){a["[object "+t+"]"]=t.toLowerCase()}),t=y(i),function(e,t){function ot(e,t,n,i){var s,o,u,a,f,l,p,m,g,y;(t?t.ownerDocument||t:E)!==h&&c(t),t=t||h,n=n||[];if(!e||typeof e!="string")return n;if((a=t.nodeType)!==1&&a!==9)return[];if(d&&!i){if(s=Z.exec(e))if(u=s[1]){if(a===9){o=t.getElementById(u);if(!o||!o.parentNode)return n;if(o.id===u)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(u))&&b(t,o)&&o.id===u)return n.push(o),n}else{if(s[2])return H.apply(n,t.getElementsByTagName(e)),n;if((u=s[3])&&r.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(u)),n}if(r.qsa&&(!v||!v.test(e))){m=p=w,g=t,y=a===9&&e;if(a===1&&t.nodeName.toLowerCase()!=="object"){l=mt(e),(p=t.getAttribute("id"))?m=p.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",f=l.length;while(f--)l[f]=m+gt(l[f]);g=$.test(e)&&t.parentNode||t,y=l.join(",")}if(y)try{return H.apply(n,g.querySelectorAll(y)),n}catch(S){}finally{p||t.removeAttribute("id")}}}return Nt(e.replace(W,"$1"),t,n,i)}function ut(){function t(n,r){return e.push(n+=" ")>s.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function at(e){return e[w]=!0,e}function ft(e){var t=h.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)s.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function dt(e){return at(function(t){return t=+t,at(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function vt(){}function mt(e,t){var n,r,i,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=s.preFilter;while(u){if(!n||(r=X.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(i=[]);n=!1;if(r=V.exec(u))n=r.shift(),i.push({value:n,type:r[0].replace(W," ")}),u=u.slice(n.length);for(o in s.filter)(r=G[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(n=r.shift(),i.push({value:n,type:o,matches:r}),u=u.slice(n.length));if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)}function gt(e){var t=0,n=e.length,r="";for(;t<n;t++)r+=e[t].value;return r}function yt(e,t,n){var r=t.dir,s=n&&r==="parentNode",o=x++;return t.first?function(t,n,i){while(t=t[r])if(t.nodeType===1||s)return e(t,n,i)}:function(t,n,u){var a,f,l,c=S+" "+o;if(u){while(t=t[r])if(t.nodeType===1||s)if(e(t,n,u))return!0}else while(t=t[r])if(t.nodeType===1||s){l=t[w]||(t[w]={});if((f=l[r])&&f[0]===c){if((a=f[1])===!0||a===i)return a===!0}else{f=l[r]=[c],f[1]=e(t,n,u)||i;if(f[1]===!0)return!0}}}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function wt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function Et(e,t,n,r,i,s){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,s)),at(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||Tt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?wt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?j.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):H.apply(o,g)})}function St(e){var t,n,r,i=e.length,o=s.relative[e[0].type],u=o||s.relative[" "],a=o?1:0,l=yt(function(e){return e===t},u,!0),c=yt(function(e){return j.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;a<i;a++)if(n=s.relative[e[a].type])h=[yt(bt(h),n)];else{n=s.filter[e[a].type].apply(null,e[a].matches);if(n[w]){r=++a;for(;r<i;r++)if(s.relative[e[r].type])break;return Et(a>1&&bt(h),a>1&&gt(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(W,"$1"),n,a<r&&St(e.slice(a,r)),r<i&&St(e=e.slice(r)),r<i&&gt(e))}h.push(n)}return bt(h)}function xt(e,t){var n=0,r=t.length>0,o=e.length>0,u=function(u,a,l,c,p){var d,v,m,g=[],y=0,b="0",w=u&&[],E=p!=null,x=f,T=u||o&&s.find.TAG("*",p&&a.parentNode||a),N=S+=x==null?1:Math.random()||.1;E&&(f=a!==h&&a,i=n);for(;(d=T[b])!=null;b++){if(o&&d){v=0;while(m=e[v++])if(m(d,a,l)){c.push(d);break}E&&(S=N,i=++n)}r&&((d=!m&&d)&&y--,u&&w.push(d))}y+=b;if(r&&b!==y){v=0;while(m=t[v++])m(w,g,a,l);if(u){if(y>0)while(b--)!w[b]&&!g[b]&&(g[b]=D.call(c));g=wt(g)}H.apply(c,g),E&&!u&&g.length>0&&y+t.length>1&&ot.uniqueSort(c)}return E&&(S=N,f=x),w};return r?at(u):u}function Tt(e,t,n){var r=0,i=t.length;for(;r<i;r++)ot(e,t[r],n);return n}function Nt(e,t,n,i){var o,u,f,l,c,h=mt(e);if(!i&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&r.getById&&t.nodeType===9&&d&&s.relative[u[1].type]){t=(s.find.ID(f.matches[0].replace(rt,it),t)||[])[0];if(!t)return n;e=e.slice(u.shift().value.length)}o=G.needsContext.test(e)?0:u.length;while(o--){f=u[o];if(s.relative[l=f.type])break;if(c=s.find[l])if(i=c(f.matches[0].replace(rt,it),$.test(u[0].type)&&t.parentNode||t)){u.splice(o,1),e=i.length&&gt(u);if(!e)return H.apply(n,i),n;break}}}return a(e,h)(i,t,!d,n,$.test(e)),n}var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,b,w="sizzle"+ -(new Date),E=e.document,S=0,x=0,T=ut(),N=ut(),C=ut(),k=!1,L=function(e,t){return e===t?(k=!0,0):0},A=typeof t,O=1<<31,M={}.hasOwnProperty,_=[],D=_.pop,P=_.push,H=_.push,B=_.slice,j=_.indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|bdyt_required|scoped",I="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",R=q.replace("w","w#"),U="\\["+I+"*("+q+")"+I+"*(?:([*^$|!~]?=)"+I+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+R+")|)|)"+I+"*\\]",z=":("+q+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+U.replace(3,8)+")*)|.*)\\)|)",W=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),X=new RegExp("^"+I+"*,"+I+"*"),V=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),$=new RegExp(I+"*[+~]"),J=new RegExp("="+I+"*([^\\]'\"]*)"+I+"*\\]","g"),K=new RegExp(z),Q=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{H.apply(_=B.call(E.childNodes),E.childNodes),_[E.childNodes.length].nodeType}catch(st){H={apply:_.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}u=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},r=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:E,n=t.defaultView;if(t===h||t.nodeType!==9||!t.documentElement)return h;h=t,p=t.documentElement,d=!u(t),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){c()}),r.attributes=ft(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ft(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ft(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",e.getElementsByClassName("i").length===2}),r.getById=ft(function(e){return p.appendChild(e).id=w,!t.getElementsByName||!t.getElementsByName(w).length}),r.getById?(s.find.ID=function(e,t){if(typeof t.getElementById!==A&&d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete s.find.ID,s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),s.find.TAG=r.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==A)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},s.find.CLASS=r.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==A&&d)return t.getElementsByClassName(e)},m=[],v=[];if(r.qsa=Y.test(t.querySelectorAll))ft(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||v.push("\\["+I+"*(?:value|"+F+")"),e.querySelectorAll(":checked").length||v.push(":checked")}),ft(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&v.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")});return(r.matchesSelector=Y.test(g=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft(function(e){r.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),m.push("!=",z)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),b=Y.test(p.contains)||p.compareDocumentPosition?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},L=p.compareDocumentPosition?function(e,n){if(e===n)return k=!0,0;var i=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);if(i)return i&1||!r.sortDetached&&n.compareDocumentPosition(e)===i?e===t||b(E,e)?-1:n===t||b(E,n)?1:l?j.call(l,e)-j.call(l,n):0:i&4?-1:1;return e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,s=e.parentNode,o=n.parentNode,u=[e],a=[n];if(e===n)return k=!0,0;if(!s||!o)return e===t?-1:n===t?1:s?-1:o?1:l?j.call(l,e)-j.call(l,n):0;if(s===o)return ct(e,n);r=e;while(r=r.parentNode)u.unshift(r);r=n;while(r=r.parentNode)a.unshift(r);while(u[i]===a[i])i++;return i?ct(u[i],a[i]):u[i]===E?-1:a[i]===E?1:0},t},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){(e.ownerDocument||e)!==h&&c(e),t=t.replace(J,"='$1']");if(r.matchesSelector&&d&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var n=g.call(e,t);if(n||r.disconnectedMatch||e.document&&e.document.nodeType!==11)return n}catch(i){}return ot(t,h,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==h&&c(e),b(e,t)},ot.attr=function(e,n){(e.ownerDocument||e)!==h&&c(e);var i=s.attrHandle[n.toLowerCase()],o=i&&M.call(s.attrHandle,n.toLowerCase())?i(e,n,!d):t;return o===t?r.attributes||!d?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null:o},ot.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,n=[],i=0,s=0;k=!r.detectDuplicates,l=!r.sortStable&&e.slice(0),e.sort(L);if(k){while(t=e[s++])t===e[s]&&(i=n.push(s));while(i--)e.splice(n[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r];r++)n+=o(t);else if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(i===3||i===4)return e.nodeValue;return n},s=ot.selectors={cacheLength:50,createPseudo:at,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&K.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){l=m[w]||(m[w]={}),f=l[e]||[],p=f[0]===S&&f[1],h=f[0]===S&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[w]||(t[w]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){y&&((c[w]||(c[w]={}))[e]=[S,h]);if(c===t)break}return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,r=s.pseudos[e]||s.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(n=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=j.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(W,"$1"));return r[w]?at(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return Q.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||e.nodeType===3||e.nodeType===4)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()===e.type)},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[n<0?n+t:n]}),even:dt(function(e,t){var n=0;for(;n<t;n+=2)e.push(n);return e}),odd:dt(function(e,t){var n=1;for(;n<t;n+=2)e.push(n);return e}),lt:dt(function(e,t,n){var r=n<0?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;)e.push(r);return e})}},s.pseudos.nth=s.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[n]=ht(n);for(n in{submit:!0,reset:!0})s.pseudos[n]=pt(n);vt.prototype=s.filters=s.pseudos,s.setFilters=new vt,a=ot.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=mt(e)),n=t.length;while(n--)s=St(t[n]),s[w]?r.push(s):i.push(s);s=C(e,xt(i,r))}return s},r.sortStable=w.split("").sort(L).join("")===w,r.detectDuplicates=k,c(),r.sortDetached=ft(function(e){return e.compareDocumentPosition(h.createElement("div"))&1}),ft(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild.getAttribute("href")==="#"})||lt("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,t.toLowerCase()==="type"?1:2)}),(!r.attributes||!ft(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),e.firstChild.getAttribute("value")===""}))&&lt("value",function(e,t,n){if(!n&&e.nodeName.toLowerCase()==="input")return e.defaultValue}),ft(function(e){return e.getAttribute("disabled")==null})||lt(F,function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),y.find=ot,y.expr=ot.selectors,y.expr[":"]=y.expr.pseudos,y.unique=ot.uniqueSort,y.text=ot.getText,y.isXMLDoc=ot.isXML,y.contains=ot.contains}(window);var P={};y.Callbacks=function(e){e=typeof e=="string"?P[e]||H(e):y.extend({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(c){n=e.memory&&c,r=!0,s=o||0,o=0,i=u.length,t=!0;for(;u&&s<i;s++)if(u[s].apply(c[0],c[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,u&&(a?a.length&&f(a.shift()):n?u=[]:l.disable())},l={add:function(){if(u){var r=u.length;(function s(t){y.each(t,function(t,n){var r=y.type(n);r==="function"?(!e.unique||!l.has(n))&&u.push(n):n&&n.length&&r!=="string"&&s(n)})})(arguments),t?i=u.length:n&&(o=r,f(n))}return this},remove:function(){return u&&y.each(arguments,function(e,n){var r;while((r=y.inArray(n,u,r))>-1)u.splice(r,1),t&&(r<=i&&i--,r<=s&&s--)}),this},has:function(e){return e?y.inArray(e,u)>-1:!!u&&!!u.length},empty:function(){return u=[],i=0,this},disable:function(){return u=a=n=undefined,this},disabled:function(){return!u},lock:function(){return a=undefined,n||l.disable(),this},locked:function(){return!a},fireWith:function(e,n){return u&&(!r||a)&&(n=n||[],n=[e,n.slice?n.slice():n],t?a.push(n):f(n)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},y.extend({Deferred:function(e){var t=[["resolve","done",y.Callbacks("once memory"),"resolved"],["reject","fail",y.Callbacks("once memory"),"rejected"],["notify","progress",y.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return y.Deferred(function(n){y.each(t,function(t,s){var o=s[0],u=y.isFunction(e[t])&&e[t];i[s[1]](function(){var e=u&&u.apply(this,arguments);e&&y.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===r?n.promise():this,u?[e]:arguments)})}),e=null}).promise()},promise:function(e){return e!=null?y.extend(e,r):r}},i={};return r.pipe=r.then,y.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=p.call(arguments),r=n.length,i=r!==1||e&&y.isFunction(e.promise)?r:0,s=i===1?e:y.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?p.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&y.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),y.support=function(e){var t,r,s,o,u,a,f,l,c,h=i.createElement("div");h.setAttribute("className","t"),h.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",t=h.getElementsByTagName("*")||[],r=h.getElementsByTagName("a")[0];if(!r||!r.style||!t.length)return e;o=i.createElement("select"),a=o.appendChild(i.createElement("option")),s=h.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",e.getSetAttribute=h.className!=="t",e.leadingWhitespace=h.firstChild.nodeType===3,e.tbody=!h.getElementsByTagName("tbody").length,e.htmlSerialize=!!h.getElementsByTagName("link").length,e.style=/top/.test(r.getAttribute("style")),e.hrefNormalized=r.getAttribute("href")==="/a",e.opacity=/^0.5/.test(r.style.opacity),e.cssFloat=!!r.style.cssFloat,e.checkOn=!!s.value,e.optSelected=a.selected,e.enctype=!!i.createElement("form").enctype,e.html5Clone=i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",e.inlineBlockNeedsLayout=!1,e.shrinkWrapBlocks=!1,e.pixelPosition=!1,e.deleteExpando=!0,e.noCloneEvent=!0,e.reliableMarginRight=!0,e.boxSizingReliable=!0,s.checked=!0,e.noCloneChecked=s.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!a.disabled;try{delete h.test}catch(p){e.deleteExpando=!1}s=i.createElement("input"),s.setAttribute("value",""),e.input=s.getAttribute("value")==="",s.value="t",s.setAttribute("type","radio"),e.radioValue=s.value==="t",s.setAttribute("checked","t"),s.setAttribute("name","t"),u=i.createDocumentFragment(),u.appendChild(s),e.appendChecked=s.checked,e.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,h.attachEvent&&(h.attachEvent("onclick",function(){e.noCloneEvent=!1}),h.cloneNode(!0).click());for(c in{submit:!0,change:!0,focusin:!0})h.setAttribute(f="on"+c,"t"),e[c+"Bubbles"]=f in window||h.attributes[f].expando===!1;h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=h.style.backgroundClip==="content-box";for(c in y(e))break;return e.ownLast=c!=="0",y(function(){var t,r,s,o="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=i.getElementsByTagName("body")[0];if(!u)return;t=i.createElement("div"),t.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(t).appendChild(h),h.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=h.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",l=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",e.reliableHiddenOffsets=l&&s[0].offsetHeight===0,h.innerHTML="",h.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",y.swap(u,u.style.zoom!=null?{zoom:1}:{},function(){e.boxSizing=h.offsetWidth===4}),window.getComputedStyle&&(e.pixelPosition=(window.getComputedStyle(h,null)||{}).top!=="1%",e.boxSizingReliable=(window.getComputedStyle(h,null)||{width:"4px"}).width==="4px",r=h.appendChild(i.createElement("div")),r.style.cssText=h.style.cssText=o,r.style.marginRight=r.style.width="0",h.style.width="1px",e.reliableMarginRight=!parseFloat((window.getComputedStyle(r,null)||{}).marginRight)),typeof h.style.zoom!==n&&(h.innerHTML="",h.style.cssText=o+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=h.offsetWidth===3,h.style.display="block",h.innerHTML="<div></div>",h.firstChild.style.width="5px",e.shrinkWrapBlocks=h.offsetWidth!==3,e.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(t),t=h=s=r=null}),t=o=u=a=r=s=null,e}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,j=/([A-Z])/g;y.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?y.cache[e[y.expando]]:e[y.expando],!!e&&!R(e)},data:function(e,t,n){return F(e,t,n)},removeData:function(e,t){return I(e,t)},_data:function(e,t,n){return F(e,t,n,!0)},_removeData:function(e,t){return I(e,t,!0)},acceptData:function(e){if(e.nodeType&&e.nodeType!==1&&e.nodeType!==9)return!1;var t=e.nodeName&&y.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),y.fn.extend({data:function(e,t){var n,r,i=null,s=0,o=this[0];if(e===undefined){if(this.length){i=y.data(o);if(o.nodeType===1&&!y._data(o,"parsedAttrs")){n=o.attributes;for(;s<n.length;s++)r=n[s].name,r.indexOf("data-")===0&&(r=y.camelCase(r.slice(5)),q(o,r,i[r]));y._data(o,"parsedAttrs",!0)}}return i}return typeof e=="object"?this.each(function(){y.data(this,e)}):arguments.length>1?this.each(function(){y.data(this,e,t)}):o?q(o,e,y.data(o,e)):null},removeData:function(e){return this.each(function(){y.removeData(this,e)})}}),y.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=y._data(e,t),n&&(!r||y.isArray(n)?r=y._data(e,t,y.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=y.queue(e,t),r=n.length,i=n.shift(),s=y._queueHooks(e,t),o=function(){y.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return y._data(e,n)||y._data(e,n,{empty:y.Callbacks("once memory").add(function(){y._removeData(e,t+"queue"),y._removeData(e,n)})})}}),y.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?y.queue(this[0],e):t===undefined?this:this.each(function(){var n=y.queue(this,e,t);y._queueHooks(this,e),e==="fx"&&n[0]!=="inprogress"&&y.dequeue(this,e)})},dequeue:function(e){return this.each(function(){y.dequeue(this,e)})},delay:function(e,t){return e=y.fx?y.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=y.Deferred(),s=this,o=this.length,u=function(){--r||i.resolveWith(s,[s])};typeof e!="string"&&(t=e,e=undefined),e=e||"fx";while(o--)n=y._data(s[o],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var U,z,W=/[\t\r\n\f]/g,X=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,$=/^(?:a|area)$/i,J=/^(?:checked|selected)$/i,K=y.support.getSetAttribute,Q=y.support.input;y.fn.extend({attr:function(e,t){return y.access(this,y.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){y.removeAttr(this,e)})},prop:function(e,t){return y.access(this,y.prop,e,t,arguments.length>1)},removeProp:function(e){return e=y.propFix[e]||e,this.each(function(){try{this[e]=undefined,delete this[e]}catch(t){}})},addClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=typeof e=="string"&&e;if(y.isFunction(e))return this.each(function(t){y(this).addClass(e.call(this,t,this.className))});if(a){t=(e||"").match(w)||[];for(;o<u;o++){n=this[o],r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(W," "):" ");if(r){s=0;while(i=t[s++])r.indexOf(" "+i+" ")<0&&(r+=i+" ");n.className=y.trim(r)}}}return this},removeClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=arguments.length===0||typeof e=="string"&&e;if(y.isFunction(e))return this.each(function(t){y(this).removeClass(e.call(this,t,this.className))});if(a){t=(e||"").match(w)||[];for(;o<u;o++){n=this[o],r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(W," "):"");if(r){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?y.trim(r):""}}}return this},toggleClass:function(e,t){var r=typeof e;return typeof t=="boolean"&&r==="string"?t?this.addClass(e):this.removeClass(e):y.isFunction(e)?this.each(function(n){y(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(r==="string"){var t,i=0,s=y(this),o=e.match(w)||[];while(t=o[i++])s.hasClass(t)?s.removeClass(t):s.addClass(t)}else if(r===n||r==="boolean")this.className&&y._data(this,"__className__",this.className),this.className=this.className||e===!1?"":y._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i)return n=y.valHooks[i.type]||y.valHooks[i.nodeName.toLowerCase()],n&&"get"in n&&(t=n.get(i,"value"))!==undefined?t:(t=i.value,typeof t=="string"?t.replace(X,""):t==null?"":t);return}return r=y.isFunction(e),this.each(function(t){var i;if(this.nodeType!==1)return;r?i=e.call(this,t,y(this).val()):i=e,i==null?i="":typeof i=="number"?i+="":y.isArray(i)&&(i=y.map(i,function(e){return e==null?"":e+""})),n=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,i,"value")===undefined)this.value=i})}}),y.extend({valHooks:{option:{get:function(e){var t=y.find.attr(e,"value");return t!=null?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(y.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!y.nodeName(n.parentNode,"optgroup"))){t=y(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n,r,i=e.options,s=y.makeArray(t),o=i.length;while(o--){r=i[o];if(r.selected=y.inArray(y(r).val(),s)>=0)n=!0}return n||(e.selectedIndex=-1),s}}},attr:function(e,t,r){var i,s,o=e.nodeType;if(!e||o===3||o===8||o===2)return;if(typeof e.getAttribute===n)return y.prop(e,t,r);if(o!==1||!y.isXMLDoc(e))t=t.toLowerCase(),i=y.attrHooks[t]||(y.expr.match.bool.test(t)?z:U);if(r===undefined)return i&&"get"in i&&(s=i.get(e,t))!==null?s:(s=y.find.attr(e,t),s==null?undefined:s);if(r!==null)return i&&"set"in i&&(s=i.set(e,r,t))!==undefined?s:(e.setAttribute(t,r+""),r);y.removeAttr(e,t)},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(w);if(s&&e.nodeType===1)while(n=s[i++])r=y.propFix[n]||n,y.expr.match.bool.test(n)?Q&&K||!J.test(n)?e[r]=!1:e[y.camelCase("default-"+n)]=e[r]=!1:y.attr(e,n,""),e.removeAttribute(K?n:r)},attrHooks:{type:{set:function(e,t){if(!y.support.radioValue&&t==="radio"&&y.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(!e||o===3||o===8||o===2)return;return s=o!==1||!y.isXMLDoc(e),s&&(t=y.propFix[t]||t,i=y.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&(r=i.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=y.find.attr(e,"tabindex");return t?parseInt(t,10):V.test(e.nodeName)||$.test(e.nodeName)&&e.href?0:-1}}}}),z={set:function(e,t,n){return t===!1?y.removeAttr(e,n):Q&&K||!J.test(n)?e.setAttribute(!K&&y.propFix[n]||n,n):e[y.camelCase("default-"+n)]=e[n]=!0,n}},y.each(y.expr.match.bool.source.match(/\w+/g),function(e,t){var n=y.expr.attrHandle[t]||y.find.attr;y.expr.attrHandle[t]=Q&&K||!J.test(t)?function(e,t,r){var i=y.expr.attrHandle[t],s=r?undefined:(y.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return y.expr.attrHandle[t]=i,s}:function(e,t,n){return n?undefined:e[y.camelCase("default-"+t)]?t.toLowerCase():null}});if(!Q||!K)y.attrHooks.value={set:function(e,t,n){if(!y.nodeName(e,"input"))return U&&U.set(e,t,n);e.defaultValue=t}};K||(U={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="",n==="value"||t===e.getAttribute(n)?t:undefined}},y.expr.attrHandle.id=y.expr.attrHandle.name=y.expr.attrHandle.coords=function(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.value!==""?r.value:null},y.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:undefined},set:U.set},y.attrHooks.contenteditable={set:function(e,t,n){U.set(e,t===""?!1:t,n)}},y.each(["width","height"],function(e,t){y.attrHooks[t]={set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}}})),y.support.hrefNormalized||y.each(["href","src"],function(e,t){y.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),y.support.style||(y.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}}),y.support.optSelected||(y.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){y.propFix[this.toLowerCase()]=this}),y.support.enctype||(y.propFix.enctype="encoding"),y.each(["radio","checkbox"],function(){y.valHooks[this]={set:function(e,t){if(y.isArray(t))return e.checked=y.inArray(y(e).val(),t)>=0}},y.support.checkOn||(y.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var G=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)$/;y.event={global:{},add:function(e,t,r,i,s){var o,u,a,f,l,c,h,p,d,v,m,g=y._data(e);if(!g)return;r.handler&&(f=r,r=f.handler,s=f.selector),r.guid||(r.guid=y.guid++),(u=g.events)||(u=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof y===n||!!e&&y.event.triggered===e.type?undefined:y.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(w)||[""],a=t.length;while(a--){o=tt.exec(t[a])||[],d=m=o[1],v=(o[2]||"").split(".").sort();if(!d)continue;l=y.event.special[d]||{},d=(s?l.delegateType:l.bindType)||d,l=y.event.special[d]||{},h=y.extend({type:d,origType:m,data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&y.expr.match.needsContext.test(s),namespace:v.join(".")},f);if(!(p=u[d])){p=u[d]=[],p.delegateCount=0;if(!l.setup||l.setup.call(e,i,v,c)===!1)e.addEventListener?e.addEventListener(d,c,!1):e.attachEvent&&e.attachEvent("on"+d,c)}l.add&&(l.add.call(e,h),h.handler.guid||(h.handler.guid=r.guid)),s?p.splice(p.delegateCount++,0,h):p.push(h),y.event.global[d]=!0}e=null},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=y.hasData(e)&&y._data(e);if(!m||!(l=m.events))return;t=(t||"").match(w)||[""],f=t.length;while(f--){u=tt.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort();if(!p){for(p in l)y.event.remove(e,p+t[f],n,r,!0);continue}c=y.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,h=l[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;while(s--)o=h[s],(i||v===o.origType)&&(!n||n.guid===o.guid)&&(!u||u.test(o.namespace))&&(!r||r===o.selector||r==="**"&&o.selector)&&(h.splice(s,1),o.selector&&h.delegateCount--,c.remove&&c.remove.call(e,o));a&&!h.length&&((!c.teardown||c.teardown.call(e,d,m.handle)===!1)&&y.removeEvent(e,p,m.handle),delete l[p])}y.isEmptyObject(l)&&(delete m.handle,y._removeData(e,"events"))},trigger:function(e,t,n,r){var s,o,u,a,f,l,c,h=[n||i],p=m.call(e,"type")?e.type:e,d=m.call(e,"namespace")?e.namespace.split("."):[];u=l=n=n||i;if(n.nodeType===3||n.nodeType===8)return;if(et.test(p+y.event.triggered))return;p.indexOf(".")>=0&&(d=p.split("."),p=d.shift(),d.sort()),o=p.indexOf(":")<0&&"on"+p,e=e[y.expando]?e:new y.Event(p,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=d.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=t==null?[e]:y.makeArray(t,[e]),f=y.event.special[p]||{};if(!r&&f.trigger&&f.trigger.apply(n,t)===!1)return;if(!r&&!f.noBubble&&!y.isWindow(n)){a=f.delegateType||p,et.test(a+p)||(u=u.parentNode);for(;u;u=u.parentNode)h.push(u),l=u;l===(n.ownerDocument||i)&&h.push(l.defaultView||l.parentWindow||window)}c=0;while((u=h[c++])&&!e.isPropagationStopped())e.type=c>1?a:f.bindType||p,s=(y._data(u,"events")||{})[e.type]&&y._data(u,"handle"),s&&s.apply(u,t),s=o&&u[o],s&&y.acceptData(u)&&s.apply&&s.apply(u,t)===!1&&e.preventDefault();e.type=p;if(!r&&!e.isDefaultPrevented()&&(!f._default||f._default.apply(h.pop(),t)===!1)&&y.acceptData(n)&&o&&n[p]&&!y.isWindow(n)){l=n[o],l&&(n[o]=null),y.event.triggered=p;try{n[p]()}catch(v){}y.event.triggered=undefined,l&&(n[o]=l)}return e.result},dispatch:function(e){e=y.event.fix(e);var t,n,r,i,s,o=[],u=p.call(arguments),a=(y._data(this,"events")||{})[e.type]||[],f=y.event.special[e.type]||{};u[0]=e,e.delegateTarget=this;if(f.preDispatch&&f.preDispatch.call(this,e)===!1)return;o=y.event.handlers.call(this,e,a),t=0;while((i=o[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,s=0;while((r=i.handlers[s++])&&!e.isImmediatePropagationStopped())if(!e.namespace_re||e.namespace_re.test(r.namespace))e.handleObj=r,e.data=r.data,n=((y.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,u),n!==undefined&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation())}return f.postDispatch&&f.postDispatch.call(this,e),e.result},handlers:function(e,t){var n,r,i,s,o=[],u=t.delegateCount,a=e.target;if(u&&a.nodeType&&(!e.button||e.type!=="click"))for(;a!=this;a=a.parentNode||this)if(a.nodeType===1&&(a.disabled!==!0||e.type!=="click")){i=[];for(s=0;s<u;s++)r=t[s],n=r.selector+" ",i[n]===undefined&&(i[n]=r.needsContext?y(n,this).index(a)>=0:y.find(n,this,null,[a]).length),i[n]&&i.push(r);i.length&&o.push({elem:a,handlers:i})}return u<t.length&&o.push({elem:this,handlers:t.slice(u)}),o},fix:function(e){if(e[y.expando])return e;var t,n,r,s=e.type,o=e,u=this.fixHooks[s];u||(this.fixHooks[s]=u=Z.test(s)?this.mouseHooks:Y.test(s)?this.keyHooks:{}),r=u.props?this.props.concat(u.props):this.props,e=new y.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,u.filter?u.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,s,o=t.button,u=t.fromElement;return e.pageX==null&&t.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,n=r.body,e.pageX=t.clientX+(s&&s.scrollLeft||n&&n.scrollLeft||0)-(s&&s.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(s&&s.scrollTop||n&&n.scrollTop||0)-(s&&s.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?t.toElement:u),!e.which&&o!==undefined&&(e.which=o&1?1:o&2?3:o&4?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==it()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===it()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(y.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(e){return y.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=y.extend(new y.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?y.event.trigger(i,null,t):y.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},y.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,r){var i="on"+t;e.detachEvent&&(typeof e[i]===n&&(e[i]=null),e.detachEvent(i,r))},y.Event=function(e,t){if(!(this instanceof y.Event))return new y.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?nt:rt):this.type=e,t&&y.extend(this,t),this.timeStamp=e&&e.timeStamp||y.now(),this[y.expando]=!0},y.Event.prototype={isDefaultPrevented:rt,isPropagationStopped:rt,isImmediatePropagationStopped:rt,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=nt;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=nt;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=nt,this.stopPropagation()}},y.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){y.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;if(!i||i!==r&&!y.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),y.support.submitBubbles||(y.event.special.submit={setup:function(){if(y.nodeName(this,"form"))return!1;y.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=y.nodeName(t,"input")||y.nodeName(t,"button")?t.form:undefined;n&&!y._data(n,"submitBubbles")&&(y.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),y._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&y.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(y.nodeName(this,"form"))return!1;y.event.remove(this,"._submit")}}),y.support.changeBubbles||(y.event.special.change={setup:function(){if(G.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")y.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),y.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),y.event.simulate("change",this,e,!0)});return!1}y.event.add(this,"beforeactivate._change",function(e){var t=e.target;G.test(t.nodeName)&&!y._data(t,"changeBubbles")&&(y.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&y.event.simulate("change",this.parentNode,e,!0)}),y._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return y.event.remove(this,"._change"),!G.test(this.nodeName)}}),y.support.focusinBubbles||y.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){y.event.simulate(t,e.target,y.event.fix(e),!0)};y.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),y.fn.extend({on:function(e,t,n,r,i){var s,o;if(typeof e=="object"){typeof t!="string"&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}n==null&&r==null?(r=t,n=t=undefined):r==null&&(typeof t=="string"?(r=n,n=undefined):(r=n,n=t,t=undefined));if(r===!1)r=rt;else if(!r)return this;return i===1&&(o=r,r=function(e){return y().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=y.guid++)),this.each(function(){y.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,y(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(i in e)this.off(i,t,e[i]);return this}if(t===!1||typeof t=="function")n=t,t=undefined;return n===!1&&(n=rt),this.each(function(){y.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){y.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return y.event.trigger(e,t,n,!0)}});var st=/^.[^:#\[\.,]*$/,ot=/^(?:parents|prev(?:Until|All))/,ut=y.expr.match.needsContext,at={children:!0,contents:!0,next:!0,prev:!0};y.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if(typeof e!="string")return this.pushStack(y(e).filter(function(){for(t=0;t<i;t++)if(y.contains(r[t],this))return!0}));for(t=0;t<i;t++)y.find(e,r[t],n);return n=this.pushStack(i>1?y.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=y(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(y.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(lt(this,e||[],!0))},filter:function(e){return this.pushStack(lt(this,e||[],!1))},is:function(e){return!!lt(this,typeof e=="string"&&ut.test(e)?y(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,s=[],o=ut.test(e)||typeof e!="string"?y(e,t||this.context):0;for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&y.find.matchesSelector(n,e))){n=s.push(n);break}return this.pushStack(s.length>1?y.unique(s):s)},index:function(e){return e?typeof e=="string"?y.inArray(this[0],y(e)):y.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?y(e,t):y.makeArray(e&&e.nodeType?[e]:e),r=y.merge(this.get(),n);return this.pushStack(y.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),y.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return y.dir(e,"parentNode")},parentsUntil:function(e,t,n){return y.dir(e,"parentNode",n)},next:function(e){return ft(e,"nextSibling")},prev:function(e){return ft(e,"previousSibling")},nextAll:function(e){return y.dir(e,"nextSibling")},prevAll:function(e){return y.dir(e,"previousSibling")},nextUntil:function(e,t,n){return y.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return y.dir(e,"previousSibling",n)},siblings:function(e){return y.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return y.sibling(e.firstChild)},contents:function(e){return y.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:y.merge([],e.childNodes)}},function(e,t){y.fn[e]=function(n,r){var i=y.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(i=y.filter(r,i)),this.length>1&&(at[e]||(i=y.unique(i)),ot.test(e)&&(i=i.reverse())),this.pushStack(i)}}),y.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?y.find.matchesSelector(r,e)?[r]:[]:y.find.matches(e,y.grep(t,function(e){return e.nodeType===1}))},dir:function(e,t,n){var r=[],i=e[t];while(i&&i.nodeType!==9&&(n===undefined||i.nodeType!==1||!y(i).is(n)))i.nodeType===1&&r.push(i),i=i[t];return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",pt=/ jQuery\d+="(?:null|\d+)"/g,dt=new RegExp("<(?:"+ht+")[\\s/>]","i"),vt=/^\s+/,mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,gt=/<([\w:]+)/,yt=/<tbody/i,bt=/<|&#?\w+;/,wt=/<(?:script|style|link)/i,Et=/^(?:checkbox|radio)$/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/^$|\/(?:java|ecma)script/i,Tt=/^true\/(.*)/,Nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ct={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:y.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},kt=ct(i),Lt=kt.appendChild(i.createElement("div"));Ct.optgroup=Ct.option,Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,y.fn.extend({text:function(e){return y.access(this,function(e){return e===undefined?y.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=At(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=At(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?y.filter(e,this):this,i=0;for(;(n=r[i])!=null;i++)!t&&n.nodeType===1&&y.cleanData(Ht(n)),n.parentNode&&(t&&y.contains(n.ownerDocument,n)&&_t(Ht(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&y.cleanData(Ht(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&y.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return y.clone(this,e,t)})},html:function(e){return y.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return t.nodeType===1?t.innerHTML.replace(pt,""):undefined;if(typeof e=="string"&&!wt.test(e)&&(y.support.htmlSerialize||!dt.test(e))&&(y.support.leadingWhitespace||!vt.test(e))&&!Ct[(gt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(mt,"<$1></$2>");try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(y.cleanData(Ht(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=y.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),y(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=c.apply([],e);var r,i,s,o,u,a,f=0,l=this.length,h=this,p=l-1,d=e[0],v=y.isFunction(d);if(v||!(l<=1||typeof d!="string"||y.support.checkClone||!St.test(d)))return this.each(function(r){var i=h.eq(r);v&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(l){a=y.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=a.firstChild,a.childNodes.length===1&&(a=r);if(r){o=y.map(Ht(a,"script"),Ot),s=o.length;for(;f<l;f++)i=a,f!==p&&(i=y.clone(i,!0,!0),s&&y.merge(o,Ht(i,"script"))),t.call(this[f],i,f);if(s){u=o[o.length-1].ownerDocument,y.map(o,Mt);for(f=0;f<s;f++)i=o[f],xt.test(i.type||"")&&!y._data(i,"globalEval")&&y.contains(u,i)&&(i.src?y._evalUrl(i.src):y.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Nt,"")))}a=r=null}}return this}}),y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){y.fn[e]=function(e){var n,r=0,i=[],s=y(e),o=s.length-1;for(;r<=o;r++)n=r===o?this:this.clone(!0),y(s[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}}),y.extend({clone:function(e,t,n){var r,i,s,o,u,a=y.contains(e.ownerDocument,e);y.support.html5Clone||y.isXMLDoc(e)||!dt.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(Lt.innerHTML=e.outerHTML,Lt.removeChild(s=Lt.firstChild));if((!y.support.noCloneEvent||!y.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!y.isXMLDoc(e)){r=Ht(s),u=Ht(e);for(o=0;(i=u[o])!=null;++o)r[o]&&Pt(i,r[o])}if(t)if(n){u=u||Ht(e),r=r||Ht(s);for(o=0;(i=u[o])!=null;o++)Dt(i,r[o])}else Dt(e,s);return r=Ht(s,"script"),r.length>0&&_t(r,!a&&Ht(e,"script")),r=u=i=null,s},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l,c=e.length,h=ct(t),p=[],d=0;for(;d<c;d++){s=e[d];if(s||s===0)if(y.type(s)==="object")y.merge(p,s.nodeType?[s]:s);else if(!bt.test(s))p.push(t.createTextNode(s));else{u=u||h.appendChild(t.createElement("div")),a=(gt.exec(s)||["",""])[1].toLowerCase(),l=Ct[a]||Ct._default,u.innerHTML=l[1]+s.replace(mt,"<$1></$2>")+l[2],i=l[0];while(i--)u=u.lastChild;!y.support.leadingWhitespace&&vt.test(s)&&p.push(t.createTextNode(vt.exec(s)[0]));if(!y.support.tbody){s=a==="table"&&!yt.test(s)?u.firstChild:l[1]==="<table>"&&!yt.test(s)?u:0,i=s&&s.childNodes.length;while(i--)y.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}y.merge(p,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=h.lastChild}}u&&h.removeChild(u),y.support.appendChecked||y.grep(Ht(p,"input"),Bt),d=0;while(s=p[d++]){if(r&&y.inArray(s,r)!==-1)continue;o=y.contains(s.ownerDocument,s),u=Ht(h.appendChild(s),"script"),o&&_t(u);if(n){i=0;while(s=u[i++])xt.test(s.type||"")&&n.push(s)}}return u=null,h},cleanData:function(e,t){var r,i,s,o,u=0,a=y.expando,l=y.cache,c=y.support.deleteExpando,h=y.event.special;for(;(r=e[u])!=null;u++)if(t||y.acceptData(r)){s=r[a],o=s&&l[s];if(o){if(o.events)for(i in o.events)h[i]?y.event.remove(r,i):y.removeEvent(r,i,o.handle);l[s]&&(delete l[s],c?delete r[a]:typeof r.removeAttribute!==n?r.removeAttribute(a):r[a]=null,f.push(s))}}},_evalUrl:function(e){return y.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),y.fn.extend({wrapAll:function(e){if(y.isFunction(e))return this.each(function(t){y(this).wrapAll(e.call(this,t))});if(this[0]){var t=y(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return y.isFunction(e)?this.each(function(t){y(this).wrapInner(e.call(this,t))}):this.each(function(){var t=y(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y.isFunction(e);return this.each(function(n){y(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){y.nodeName(this,"body")||y(this).replaceWith(this.childNodes)}).end()}});var jt,Ft,It,qt=/alpha\([^)]*\)/i,Rt=/opacity\s*=\s*([^)]*)/,Ut=/^(top|right|bottom|left)$/,zt=/^(none|table(?!-c[ea]).+)/,Wt=/^margin/,Xt=new RegExp("^("+b+")(.*)$","i"),Vt=new RegExp("^("+b+")(?!px)[a-z%]+$","i"),$t=new RegExp("^([+-])=("+b+")","i"),Jt={BODY:"block"},Kt={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:0,fontWeight:400},Gt=["Top","Right","Bottom","Left"],Yt=["Webkit","O","Moz","ms"];y.fn.extend({css:function(e,t){return y.access(this,function(e,t,n){var r,i,s={},o=0;if(y.isArray(t)){i=Ft(e),r=t.length;for(;o<r;o++)s[t[o]]=y.css(e,t[o],!1,i);return s}return n!==undefined?y.style(e,t,n):y.css(e,t)},e,t,arguments.length>1)},show:function(){return tn(this,!0)},hide:function(){return tn(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){en(this)?y(this).show():y(this).hide()})}}),y.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=It(e,"opacity");return n===""?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":y.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var i,s,o,u=y.camelCase(t),a=e.style;t=y.cssProps[u]||(y.cssProps[u]=Zt(a,u)),o=y.cssHooks[t]||y.cssHooks[u];if(n===undefined)return o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:a[t];s=typeof n,s==="string"&&(i=$t.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(y.css(e,t)),s="number");if(n==null||s==="number"&&isNaN(n))return;s==="number"&&!y.cssNumber[u]&&(n+="px"),!y.support.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(a[t]="inherit");if(!o||!("set"in o)||(n=o.set(e,n,r))!==undefined)try{a[t]=n}catch(f){}},css:function(e,t,n,r){var i,s,o,u=y.camelCase(t);return t=y.cssProps[u]||(y.cssProps[u]=Zt(e.style,u)),o=y.cssHooks[t]||y.cssHooks[u],o&&"get"in o&&(s=o.get(e,!0,n)),s===undefined&&(s=It(e,t,r)),s==="normal"&&t in Qt&&(s=Qt[t]),n===""||n?(i=parseFloat(s),n===!0||y.isNumeric(i)?i||0:s):s}}),window.getComputedStyle?(Ft=function(e){return window.getComputedStyle(e,null)},It=function(e,t,n){var r,i,s,o=n||Ft(e),u=o?o.getPropertyValue(t)||o[t]:undefined,a=e.style;return o&&(u===""&&!y.contains(e.ownerDocument,e)&&(u=y.style(e,t)),Vt.test(u)&&Wt.test(t)&&(r=a.width,i=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=u,u=o.width,a.width=r,a.minWidth=i,a.maxWidth=s)),u}):i.documentElement.currentStyle&&(Ft=function(e){return e.currentStyle},It=function(e,t,n){var r,i,s,o=n||Ft(e),u=o?o[t]:undefined,a=e.style;return u==null&&a&&a[t]&&(u=a[t]),Vt.test(u)&&!Ut.test(t)&&(r=a.left,i=e.runtimeStyle,s=i&&i.left,s&&(i.left=e.currentStyle.left),a.left=t==="fontSize"?"1em":u,u=a.pixelLeft+"px",a.left=r,s&&(i.left=s)),u===""?"auto":u}),y.each(["height","width"],function(e,t){y.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&zt.test(y.css(e,"display"))?y.swap(e,Kt,function(){return sn(e,t,r)}):sn(e,t,r)},set:function(e,n,r){var i=r&&Ft(e);return nn(e,n,r?rn(e,t,r,y.support.boxSizing&&y.css(e,"boxSizing",!1,i)==="border-box",i):0)}}}),y.support.opacity||(y.cssHooks.opacity={get:function(e,t){return Rt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=y.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if((t>=1||t==="")&&y.trim(s.replace(qt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(t===""||r&&!r.filter)return}n.filter=qt.test(s)?s.replace(qt,i):s+" "+i}}),y(function(){y.support.reliableMarginRight||(y.cssHooks.marginRight={get:function(e,t){if(t)return y.swap(e,{display:"inline-block"},It,[e,"marginRight"])}}),!y.support.pixelPosition&&y.fn.position&&y.each(["top","left"],function(e,t){y.cssHooks[t]={get:function(e,n){if(n)return n=It(e,t),Vt.test(n)?y(e).position()[t]+"px":n}}})}),y.expr&&y.expr.filters&&(y.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!y.support.reliableHiddenOffsets&&(e.style&&e.style.display||y.css(e,"display"))==="none"},y.expr.filters.visible=function(e){return!y.expr.filters.hidden(e)}),y.each({margin:"",padding:"",border:"Width"},function(e,t){y.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+Gt[r]+t]=s[r]||s[r-2]||s[0];return i}},Wt.test(e)||(y.cssHooks[e+t].set=nn)});var an=/%20/g,fn=/\[\]$/,ln=/\r?\n/g,cn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=y.prop(this,"elements");return e?y.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!y(this).is(":disabled")&&hn.test(this.nodeName)&&!cn.test(e)&&(this.checked||!Et.test(e))}).map(function(e,t){var n=y(this).val();return n==null?null:y.isArray(n)?y.map(n,function(e){return{name:t.name,value:e.replace(ln,"\r\n")}}):{name:t.name,value:n.replace(ln,"\r\n")}}).get()}}),y.param=function(e,t){var n,r=[],i=function(e,t){t=y.isFunction(t)?t():t==null?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};t===undefined&&(t=y.ajaxSettings&&y.ajaxSettings.traditional);if(y.isArray(e)||e.jquery&&!y.isPlainObject(e))y.each(e,function(){i(this.name,this.value)});else for(n in e)pn(n,e[n],t,i);return r.join("&").replace(an,"+")},y.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){y.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),y.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});var dn,vn,mn=y.now(),gn=/\?/,yn=/#.*$/,bn=/([?&])_=[^&]*/,wn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,En=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Sn=/^(?:GET|HEAD)$/,xn=/^\/\//,Tn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Nn=y.fn.load,Cn={},kn={},Ln="*/".concat("*");try{vn=r.href}catch(An){vn=i.createElement("a"),vn.href="",vn=vn.href}dn=Tn.exec(vn.toLowerCase())||[],y.fn.load=function(e,t,n){if(typeof e!="string"&&Nn)return Nn.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(" ");return u>=0&&(r=e.slice(u,e.length),e=e.slice(0,u)),y.isFunction(t)?(n=t,t=undefined):t&&typeof t=="object"&&(s="POST"),o.length>0&&y.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){i=arguments,o.html(r?y("<div>").append(y.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this},y.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){y.fn[t]=function(e){return this.on(t,e)}}),y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vn,type:"GET",isLocal:En.test(dn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ln,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":y.parseJSON,"text xml":y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,y.ajaxSettings),t):_n(y.ajaxSettings,e)},ajaxPrefilter:On(Cn),ajaxTransport:On(kn),ajax:function(e,t){function T(e,t,n,r){var f,m,g,w,E,x=t;if(b===2)return;b=2,o&&clearTimeout(o),a=undefined,s=r||"",S.readyState=e>0?4:0,f=e>=200&&e<300||e===304,n&&(w=Dn(l,S,n)),w=Pn(l,w,S,f);if(f)l.ifModified&&(E=S.getResponseHeader("Last-Modified"),E&&(y.lastModified[i]=E),E=S.getResponseHeader("etag"),E&&(y.etag[i]=E)),e===204||l.type==="HEAD"?x="nocontent":e===304?x="notmodified":(x=w.state,m=w.data,g=w.error,f=!g);else{g=x;if(e||!x)x="error",e<0&&(e=0)}S.status=e,S.statusText=(t||x)+"",f?p.resolveWith(c,[m,x,S]):p.rejectWith(c,[S,x,g]),S.statusCode(v),v=undefined,u&&h.trigger(f?"ajaxSuccess":"ajaxError",[S,l,f?m:g]),d.fireWith(c,[S,x]),u&&(h.trigger("ajaxComplete",[S,l]),--y.active||y.event.trigger("ajaxStop"))}typeof e=="object"&&(t=e,e=undefined),t=t||{};var n,r,i,s,o,u,a,f,l=y.ajaxSetup({},t),c=l.context||l,h=l.context&&(c.nodeType||c.jquery)?y(c):y.event,p=y.Deferred(),d=y.Callbacks("once memory"),v=l.statusCode||{},m={},g={},b=0,E="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(b===2){if(!f){f={};while(t=wn.exec(s))f[t[1].toLowerCase()]=t[2]}t=f[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return b===2?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=g[n]=g[n]||e,m[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)v[t]=[v[t],e[t]];else S.always(e[S.status]);return this},abort:function(e){var t=e||E;return a&&a.abort(t),T(0,t),this}};p.promise(S).complete=d.add,S.success=S.done,S.error=S.fail,l.url=((e||l.url||vn)+"").replace(yn,"").replace(xn,dn[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=y.trim(l.dataType||"*").toLowerCase().match(w)||[""],l.crossDomain==null&&(n=Tn.exec(l.url.toLowerCase()),l.crossDomain=!(!n||n[1]===dn[1]&&n[2]===dn[2]&&(n[3]||(n[1]==="http:"?"80":"443"))===(dn[3]||(dn[1]==="http:"?"80":"443")))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=y.param(l.data,l.traditional)),Mn(Cn,l,t,S);if(b===2)return S;u=l.global,u&&y.active++===0&&y.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Sn.test(l.type),i=l.url,l.hasContent||(l.data&&(i=l.url+=(gn.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=bn.test(i)?i.replace(bn,"$1_="+mn++):i+(gn.test(i)?"&":"?")+"_="+mn++)),l.ifModified&&(y.lastModified[i]&&S.setRequestHeader("If-Modified-Since",y.lastModified[i]),y.etag[i]&&S.setRequestHeader("If-None-Match",y.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&S.setRequestHeader("Content-Type",l.contentType),S.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+Ln+"; q=0.01":""):l.accepts["*"]);for(r in l.headers)S.setRequestHeader(r,l.headers[r]);if(!l.beforeSend||l.beforeSend.call(c,S,l)!==!1&&b!==2){E="abort";for(r in{success:1,error:1,complete:1})S[r](l[r]);a=Mn(kn,l,t,S);if(!a)T(-1,"No Transport");else{S.readyState=1,u&&h.trigger("ajaxSend",[S,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){S.abort("timeout")},l.timeout));try{b=1,a.send(m,T)}catch(x){if(!(b<2))throw x;T(-1,x)}}return S}return S.abort()},getJSON:function(e,t,n){return y.get(e,t,n,"json")},getScript:function(e,t){return y.get(e,undefined,t,"script")}}),y.each(["get","post"],function(e,t){y[t]=function(e,n,r,i){return y.isFunction(n)&&(i=i||r,r=n,n=undefined),y.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return y.globalEval(e),e}}}),y.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),y.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=i.head||y("head")[0]||i.documentElement;return{send:function(r,s){t=i.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){if(n||!t.readyState||/loaded|complete/.test(t.readyState))t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||s(200,"success")},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(undefined,!0)}}}});var Hn=[],Bn=/(=)\?(?=&|$)|\?\?/;y.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Hn.pop()||y.expando+"_"+mn++;return this[e]=!0,e}}),y.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,s,o=e.jsonp!==!1&&(Bn.test(e.url)?"url":typeof e.data=="string"&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(e.data)&&"data");if(o||e.dataTypes[0]==="jsonp")return r=e.jsonpCallback=y.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Bn,"$1"+r):e.jsonp!==!1&&(e.url+=(gn.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||y.error(r+" was not called"),s[0]},e.dataTypes[0]="json",i=window[r],window[r]=function(){s=arguments},n.always(function(){window[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Hn.push(r)),s&&y.isFunction(i)&&i(s[0]),s=i=undefined}),"script"});var jn,Fn,In=0,qn=window.ActiveXObject&&function(){var e;for(e in jn)jn[e](undefined,!0)};y.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&Rn()||Un()}:Rn,Fn=y.ajaxSettings.xhr(),y.support.cors=!!Fn&&"withCredentials"in Fn,Fn=y.support.ajax=!!Fn,Fn&&y.ajaxTransport(function(e){if(!e.crossDomain||y.support.cors){var t;return{send:function(n,r){var i,s,o=e.xhr();e.username?o.open(e.type,e.url,e.async,e.username,e.password):o.open(e.type,e.url,e.async);if(e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");try{for(s in n)o.setRequestHeader(s,n[s])}catch(u){}o.send(e.hasContent&&e.data||null),t=function(n,s){var u,a,f,l;try{if(t&&(s||o.readyState===4)){t=undefined,i&&(o.onreadystatechange=y.noop,qn&&delete jn[i]);if(s)o.readyState!==4&&o.abort();else{l={},u=o.status,a=o.getAllResponseHeaders(),typeof o.responseText=="string"&&(l.text=o.responseText);try{f=o.statusText}catch(c){f=""}!u&&e.isLocal&&!e.crossDomain?u=l.text?200:404:u===1223&&(u=204)}}}catch(h){s||r(-1,h)}l&&r(u,f,l,a)},e.async?o.readyState===4?setTimeout(t):(i=++In,qn&&(jn||(jn={},y(window).unload(qn)),jn[i]=t),o.onreadystatechange=t):t()},abort:function(){t&&t(undefined,!0)}}}});var zn,Wn,Xn=/^(?:toggle|show|hide)$/,Vn=new RegExp("^(?:([+-])=|)("+b+")([a-z%]*)$","i"),$n=/queueHooks$/,Jn=[er],Kn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Vn.exec(t),s=i&&i[3]||(y.cssNumber[e]?"":"px"),o=(y.cssNumber[e]||s!=="px"&&+r)&&Vn.exec(y.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,y.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&u!==1&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};return y.Animation=y.extend(Yn,{tweener:function(e,t){y.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Kn[n]=Kn[n]||[],Kn[n].unshift(t)},prefilter:function(e,t){t?Jn.unshift(e):Jn.push(e)}}),y.Tween=tr,tr.prototype={constructor:tr,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(y.cssNumber[n]?"":"px")},cur:function(){var e=tr.propHooks[this.prop];return e&&e.get?e.get(this):tr.propHooks._default.get(this)},run:function(e){var t,n=tr.propHooks[this.prop];return this.options.duration?this.pos=t=y.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):tr.propHooks._default.set(this),this}},tr.prototype.init.prototype=tr.prototype,tr.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=y.css(e.elem,e.prop,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){y.fx.step[e.prop]?y.fx.step[e.prop](e):e.elem.style&&(e.elem.style[y.cssProps[e.prop]]!=null||y.cssHooks[e.prop])?y.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},tr.propHooks.scrollTop=tr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},y.each(["toggle","show","hide"],function(e,t){var n=y.fn[t];y.fn[t]=function(e,r,i){return e==null||typeof e=="boolean"?n.apply(this,arguments):this.animate(nr(t,!0),e,r,i)}}),y.fn.extend({fadeTo:function(e,t,n,r){return this.filter(en).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=y.isEmptyObject(e),s=y.speed(t,n,r),o=function(){var t=Yn(this,y.extend({},e),s);(i||y._data(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!="string"&&(n=t,t=e,e=undefined),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=e!=null&&e+"queueHooks",s=y.timers,o=y._data(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&$n.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem===this&&(e==null||s[i].queue===e)&&(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&y.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=y._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=y.timers,o=r?r.length:0;n.finish=!0,y.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0);for(t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),y.each({slideDown:nr("show"),slideUp:nr("hide"),slideToggle:nr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){y.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),y.speed=function(e,t,n){var r=e&&typeof e=="object"?y.extend({},e):{complete:n||!n&&t||y.isFunction(e)&&e,duration:e,easing:n&&t||t&&!y.isFunction(t)&&t};r.duration=y.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in y.fx.speeds?y.fx.speeds[r.duration]:y.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){y.isFunction(r.old)&&r.old.call(this),r.queue&&y.dequeue(this,r.queue)},r},y.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},y.timers=[],y.fx=tr.prototype.init,y.fx.tick=function(){var e,t=y.timers,n=0;zn=y.now();for(;n<t.length;n++)e=t[n],!e()&&t[n]===e&&t.splice(n--,1);t.length||y.fx.stop(),zn=undefined},y.fx.timer=function(e){e()&&y.timers.push(e)&&y.fx.start()},y.fx.interval=13,y.fx.start=function(){Wn||(Wn=setInterval(y.fx.tick,y.fx.interval))},y.fx.stop=function(){clearInterval(Wn),Wn=null},y.fx.speeds={slow:600,fast:200,_default:400},y.fx.step={},y.expr&&y.expr.filters&&(y.expr.filters.animated=function(e){return y.grep(y.timers,function(t){return e===t.elem}).length}),y.fn.offset=function(e){if(arguments.length)return e===undefined?this:this.each(function(t){y.offset.setOffset(this,e,t)});var t,r,i={top:0,left:0},s=this[0],o=s&&s.ownerDocument;if(!o)return;return t=o.documentElement,y.contains(t,s)?(typeof s.getBoundingClientRect!==n&&(i=s.getBoundingClientRect()),r=rr(o),{top:i.top+(r.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(r.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i},y.offset={setOffset:function(e,t,n){var r=y.css(e,"position");r==="static"&&(e.style.position="relative");var i=y(e),s=i.offset(),o=y.css(e,"top"),u=y.css(e,"left"),a=(r==="absolute"||r==="fixed")&&y.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),y.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},y.fn.extend({position:function(){if(!this[0])return;var e,t,n={top:0,left:0},r=this[0];return y.css(r,"position")==="fixed"?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),y.nodeName(e[0],"html")||(n=e.offset()),n.top+=y.css(e[0],"borderTopWidth",!0),n.left+=y.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-y.css(r,"marginTop",!0),left:t.left-n.left-y.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!y.nodeName(e,"html")&&y.css(e,"position")==="static")e=e.offsetParent;return e||s})}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);y.fn[e]=function(r){return y.access(this,function(e,r,i){var s=rr(e);if(i===undefined)return s?t in s?s[t]:s.document.documentElement[r]:e[r];s?s.scrollTo(n?y(s).scrollLeft():i,n?i:y(s).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),y.each({Height:"height",Width:"width"},function(e,t){y.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){y.fn[r]=function(r,i){var s=arguments.length&&(n||typeof r!="boolean"),o=n||(r===!0||i===!0?"margin":"border");return y.access(this,function(t,n,r){var i;return y.isWindow(t)?t.document.documentElement["client"+e]:t.nodeType===9?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===undefined?y.css(t,n,o):y.style(t,n,r,o)},t,s?r:undefined,s,null)}})}),y.fn.size=function(){return this.length},y.fn.andSelf=y.fn.addBack,y.fn.extend({mousewheel:function(e,t,n){return this.hover(function(){y.event.mousewheel.giveFocus(this,e,t,n)},function(){y.event.mousewheel.removeFocus(this)})},mousewheeldown:function(e,t){return this.mousewheel(function(){},e,t)},mousewheelup:function(e,t){return this.mousewheel(e,function(){},t)},unmousewheel:function(){return this.each(function(){y(this).unmouseover().unmouseout(),y.event.mousewheel.removeFocus(this)})},unmousewheeldown:y.fn.unmousewheel,unmousewheelup:y.fn.unmousewheel}),y.event.mousewheel={giveFocus:function(e,t,n,r){e._handleMousewheel&&y(e).unmousewheel(),r==window.undefined&&n&&n.constructor!=Function&&(r=n,n=null),e._handleMousewheel=function(i){i||(i=window.event),r&&(i.preventDefault?i.preventDefault():i.returnValue=!1);var s=0;i.wheelDelta?(s=i.wheelDelta/120,window.opera&&(s=-s)):i.detail&&(s=-i.detail/3),t&&(s>0||!n)?t.apply(e,[i,s]):n&&s<0&&n.apply(e,[i,s])},window.addEventListener&&window.addEventListener("DOMMouseScroll",e._handleMousewheel,!1),window.onmousewheel=i.onmousewheel=e._handleMousewheel},removeFocus:function(e){if(!e._handleMousewheel)return;window.removeEventListener&&window.removeEventListener("DOMMouseScroll",e._handleMousewheel,!1),window.onmousewheel=i.onmousewheel=null,e._handleMousewheel=null}},y}),bdyt_define("underscore",[],function(){var e={},t=Array.prototype,n=Object.prototype,r=Function.prototype,i=t.push,s=t.slice,o=t.concat,u=n.toString,a=n.hasOwnProperty,f=t.forEach,l=t.map,c=t.reduce,h=t.reduceRight,p=t.filter,d=t.every,v=t.some,m=t.indexOf,g=t.lastIndexOf,y=Array.isArray,b=Object.keys,w=r.bind,E=function(e){if(e instanceof E)return e;if(!(this instanceof E))return new E(e);this._wrapped=e};E.VERSION="1.5.2";var S=E.each=E.forEach=function(t,n,r){if(t==null)return;if(f&&t.forEach===f)t.forEach(n,r);else if(t.length===+t.length){for(var i=0,s=t.length;i<s;i++)if(n.call(r,t[i],i,t)===e)return}else{var o=E.keys(t);for(var i=0,s=o.length;i<s;i++)if(n.call(r,t[o[i]],o[i],t)===e)return}};E.map=E.collect=function(e,t,n){var r=[];return e==null?r:l&&e.map===l?e.map(t,n):(S(e,function(e,i,s){r.push(t.call(n,e,i,s))}),r)};var x="Reduce of empty array with no initial value";E.reduce=E.foldl=E.inject=function(e,t,n,r){var i=arguments.length>2;e==null&&(e=[]);if(c&&e.reduce===c)return r&&(t=E.bind(t,r)),i?e.reduce(t,n):e.reduce(t);S(e,function(e,s,o){i?n=t.call(r,n,e,s,o):(n=e,i=!0)});if(!i)throw new TypeError(x);return n},E.reduceRight=E.foldr=function(e,t,n,r){var i=arguments.length>2;e==null&&(e=[]);if(h&&e.reduceRight===h)return r&&(t=E.bind(t,r)),i?e.reduceRight(t,n):e.reduceRight(t);var s=e.length;if(s!==+s){var o=E.keys(e);s=o.length}S(e,function(u,a,f){a=o?o[--s]:--s,i?n=t.call(r,n,e[a],a,f):(n=e[a],i=!0)});if(!i)throw new TypeError(x);return n},E.find=E.detect=function(e,t,n){var r;return T(e,function(e,i,s){if(t.call(n,e,i,s))return r=e,!0}),r},E.filter=E.select=function(e,t,n){var r=[];return e==null?r:p&&e.filter===p?e.filter(t,n):(S(e,function(e,i,s){t.call(n,e,i,s)&&r.push(e)}),r)},E.reject=function(e,t,n){return E.filter(e,function(e,r,i){return!t.call(n,e,r,i)},n)},E.every=E.all=function(t,n,r){n||(n=E.identity);var i=!0;return t==null?i:d&&t.every===d?t.every(n,r):(S(t,function(t,s,o){if(!(i=i&&n.call(r,t,s,o)))return e}),!!i)};var T=E.some=E.any=function(t,n,r){n||(n=E.identity);var i=!1;return t==null?i:v&&t.some===v?t.some(n,r):(S(t,function(t,s,o){if(i||(i=n.call(r,t,s,o)))return e}),!!i)};E.contains=E.include=function(e,t){return e==null?!1:m&&e.indexOf===m?e.indexOf(t)!=-1:T(e,function(e){return e===t})},E.invoke=function(e,t){var n=s.call(arguments,2),r=E.isFunction(t);return E.map(e,function(e){return(r?t:e[t]).apply(e,n)})},E.pluck=function(e,t){return E.map(e,function(e){return e[t]})},E.where=function(e,t,n){return E.isEmpty(t)?n?void 0:[]:E[n?"find":"filter"](e,function(e){for(var n in t)if(t[n]!==e[n])return!1;return!0})},E.findWhere=function(e,t){return E.where(e,t,!0)},E.max=function(e,t,n){if(!t&&E.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!t&&E.isEmpty(e))return-Infinity;var r={computed:-Infinity,value:-Infinity};return S(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o>r.computed&&(r={value:e,computed:o})}),r.value},E.min=function(e,t,n){if(!t&&E.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!t&&E.isEmpty(e))return Infinity;var r={computed:Infinity,value:Infinity};return S(e,function(e,i,s){var o=t?t.call(n,e,i,s):e;o<r.computed&&(r={value:e,computed:o})}),r.value},E.shuffle=function(e){var t,n=0,r=[];return S(e,function(e){t=E.random(n++),r[n-1]=r[t],r[t]=e}),r},E.sample=function(e,t,n){return arguments.length<2||n?e[E.random(e.length-1)]:E.shuffle(e).slice(0,Math.max(0,t))};var N=function(e){return E.isFunction(e)?e:function(t){return t[e]}};E.sortBy=function(e,t,n){var r=N(t);return E.pluck(E.map(e,function(e,t,i){return{value:e,index:t,criteria:r.call(n,e,t,i)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(n<r||r===void 0)return-1}return e.index-t.index}),"value")};var C=function(e){return function(t,n,r){var i={},s=n==null?E.identity:N(n);return S(t,function(n,o){var u=s.call(r,n,o,t);e(i,u,n)}),i}};E.groupBy=C(function(e,t,n){(E.has(e,t)?e[t]:e[t]=[]).push(n)}),E.indexBy=C(function(e,t,n){e[t]=n}),E.countBy=C(function(e,t){E.has(e,t)?e[t]++:e[t]=1}),E.sortedIndex=function(e,t,n,r){n=n==null?E.identity:N(n);var i=n.call(r,t),s=0,o=e.length;while(s<o){var u=s+o>>>1;n.call(r,e[u])<i?s=u+1:o=u}return s},E.toArray=function(e){return e?E.isArray(e)?s.call(e):e.length===+e.length?E.map(e,E.identity):E.values(e):[]},E.size=function(e){return e==null?0:e.length===+e.length?e.length:E.keys(e).length},E.first=E.head=E.take=function(e,t,n){return e==null?void 0:t==null||n?e[0]:s.call(e,0,t)},E.initial=function(e,t,n){return s.call(e,0,e.length-(t==null||n?1:t))},E.last=function(e,t,n){return e==null?void 0:t==null||n?e[e.length-1]:s.call(e,Math.max(e.length-t,0))},E.rest=E.tail=E.drop=function(e,t,n){return s.call(e,t==null||n?1:t)},E.compact=function(e){return E.filter(e,E.identity)};var k=function(e,t,n){return t&&E.every(e,E.isArray)?o.apply(n,e):(S(e,function(e){E.isArray(e)||E.isArguments(e)?t?i.apply(n,e):k(e,t,n):n.push(e)}),n)};E.flatten=function(e,t){return k(e,t,[])},E.without=function(e){return E.difference(e,s.call(arguments,1))},E.uniq=E.unique=function(e,t,n,r){E.isFunction(t)&&(r=n,n=t,t=!1);var i=n?E.map(e,n,r):e,s=[],o=[];return S(i,function(n,r){if(t?!r||o[o.length-1]!==n:!E.contains(o,n))o.push(n),s.push(e[r])}),s},E.union=function(){return E.uniq(E.flatten(arguments,!0))},E.intersection=function(e){var t=s.call(arguments,1);return E.filter(E.uniq(e),function(e){return E.every(t,function(t){return E.indexOf(t,e)>=0})})},E.difference=function(e){var n=o.apply(t,s.call(arguments,1));return E.filter(e,function(e){return!E.contains(n,e)})},E.zip=function(){var e=E.max(E.pluck(arguments,"length").concat(0)),t=new Array(e);for(var n=0;n<e;n++)t[n]=E.pluck(arguments,""+n);return t},E.object=function(e,t){if(e==null)return{};var n={};for(var r=0,i=e.length;r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},E.indexOf=function(e,t,n){if(e==null)return-1;var r=0,i=e.length;if(n){if(typeof n!="number")return r=E.sortedIndex(e,t),e[r]===t?r:-1;r=n<0?Math.max(0,i+n):n}if(m&&e.indexOf===m)return e.indexOf(t,n);for(;r<i;r++)if(e[r]===t)return r;return-1},E.lastIndexOf=function(e,t,n){if(e==null)return-1;var r=n!=null;if(g&&e.lastIndexOf===g)return r?e.lastIndexOf(t,n):e.lastIndexOf(t);var i=r?n:e.length;while(i--)if(e[i]===t)return i;return-1},E.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=arguments[2]||1;var r=Math.max(Math.ceil((t-e)/n),0),i=0,s=new Array(r);while(i<r)s[i++]=e,e+=n;return s};var L=function(){};E.bind=function(e,t){var n,r;if(w&&e.bind===w)return w.apply(e,s.call(arguments,1));if(!E.isFunction(e))throw new TypeError;return n=s.call(arguments,2),r=function(){if(this instanceof r){L.prototype=e.prototype;var i=new L;L.prototype=null;var o=e.apply(i,n.concat(s.call(arguments)));return Object(o)===o?o:i}return e.apply(t,n.concat(s.call(arguments)))}},E.partial=function(e){var t=s.call(arguments,1);return function(){return e.apply(this,t.concat(s.call(arguments)))}},E.bindAll=function(e){var t=s.call(arguments,1);if(t.length===0)throw new Error("bindAll must be passed function names");return S(t,function(t){e[t]=E.bind(e[t],e)}),e},E.memoize=function(e,t){var n={};return t||(t=E.identity),function(){var r=t.apply(this,arguments);return E.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}},E.delay=function(e,t){var n=s.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},E.defer=function(e){return E.delay.apply(E,[e,1].concat(s.call(arguments,1)))},E.throttle=function(e,t,n){var r,i,s,o=null,u=0;n||(n={});var a=function(){u=n.leading===!1?0:new Date,o=null,s=e.apply(r,i)};return function(){var f=new Date;!u&&n.leading===!1&&(u=f);var l=t-(f-u);return r=this,i=arguments,l<=0?(clearTimeout(o),o=null,u=f,s=e.apply(r,i)):!o&&n.trailing!==!1&&(o=setTimeout(a,l)),s}},E.debounce=function(e,t,n){var r,i,s,o,u;return function(){s=this,i=arguments,o=new Date;var a=function(){var f=new Date-o;f<t?r=setTimeout(a,t-f):(r=null,n||(u=e.apply(s,i)))},f=n&&!r;return r||(r=setTimeout(a,t)),f&&(u=e.apply(s,i)),u}},E.once=function(e){var t=!1,n;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}},E.wrap=function(e,t){return function(){var n=[e];return i.apply(n,arguments),t.apply(this,n)}},E.compose=function(){var e=arguments;return function(){var t=arguments;for(var n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},E.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},E.keys=b||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)E.has(e,n)&&t.push(n);return t},E.values=function(e){var t=E.keys(e),n=t.length,r=new Array(n);for(var i=0;i<n;i++)r[i]=e[t[i]];return r},E.pairs=function(e){var t=E.keys(e),n=t.length,r=new Array(n);for(var i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},E.invert=function(e){var t={},n=E.keys(e);for(var r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},E.functions=E.methods=function(e){var t=[];for(var n in e)E.isFunction(e[n])&&t.push(n);return t.sort()},E.extend=function(e){return S(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e},E.pick=function(e){var n={},r=o.apply(t,s.call(arguments,1));return S(r,function(t){t in e&&(n[t]=e[t])}),n},E.omit=function(e){var n={},r=o.apply(t,s.call(arguments,1));for(var i in e)E.contains(r,i)||(n[i]=e[i]);return n},E.defaults=function(e){return S(s.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e},E.clone=function(e){return E.isObject(e)?E.isArray(e)?e.slice():E.extend({},e):e},E.tap=function(e,t){return t(e),e};var A=function(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;e instanceof E&&(e=e._wrapped),t instanceof E&&(t=t._wrapped);var i=u.call(e);if(i!=u.call(t))return!1;switch(i){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if(typeof e!="object"||typeof t!="object")return!1;var s=n.length;while(s--)if(n[s]==e)return r[s]==t;var o=e.constructor,a=t.constructor;if(o!==a&&!(E.isFunction(o)&&o instanceof o&&E.isFunction(a)&&a instanceof a))return!1;n.push(e),r.push(t);var f=0,l=!0;if(i=="[object Array]"){f=e.length,l=f==t.length;if(l)while(f--)if(!(l=A(e[f],t[f],n,r)))break}else{for(var c in e)if(E.has(e,c)){f++;if(!(l=E.has(t,c)&&A(e[c],t[c],n,r)))break}if(l){for(c in t)if(E.has(t,c)&&!(f--))break;l=!f}}return n.pop(),r.pop(),l};E.isEqual=function(e,t){return A(e,t,[],[])},E.isEmpty=function(e){if(e==null)return!0;if(E.isArray(e)||E.isString(e))return e.length===0;for(var t in e)if(E.has(e,t))return!1;return!0},E.isElement=function(e){return!!e&&e.nodeType===1},E.isArray=y||function(e){return u.call(e)=="[object Array]"},E.isObject=function(e){return e===Object(e)},S(["Arguments","Function","String","Number","Date","RegExp"],function(e){E["is"+e]=function(t){return u.call(t)=="[object "+e+"]"}}),E.isArguments(arguments)||(E.isArguments=function(e){return!!e&&!!E.has(e,"callee")}),typeof /./!="function"&&(E.isFunction=function(e){return typeof e=="function"}),E.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},E.isNaN=function(e){return E.isNumber(e)&&e!=+e},E.isBoolean=function(e){return e===!0||e===!1||u.call(e)=="[object Boolean]"},E.isNull=function(e){return e===null},E.isUndefined=function(e){return e===void 0},E.has=function(e,t){return a.call(e,t)},E.identity=function(e){return e},E.times=function(e,t,n){var r=Array(Math.max(0,e));for(var i=0;i<e;i++)r[i]=t.call(n,i);return r},E.random=function(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))};var O={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};O.unescape=E.invert(O.escape);var M={escape:new RegExp("["+E.keys(O.escape).join("")+"]","g"),unescape:new RegExp("("+E.keys(O.unescape).join("|")+")","g")};E.each(["escape","unescape"],function(e){E[e]=function(t){return t==null?"":(""+t).replace(M[e],function(t){return O[e][t]})}}),E.result=function(e,t){if(e==null)return void 0;var n=e[t];return E.isFunction(n)?n.call(e):n},E.mixin=function(e){S(E.functions(e),function(t){var n=E[t]=e[t];E.prototype[t]=function(){var e=[this._wrapped];return i.apply(e,arguments),B.call(this,n.apply(E,e))}})};var _=0;E.uniqueId=function(e){var t=++_+"";return e?e+t:t},E.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/,P={"'":"'","\\":"\\","\r":"r","\n":"n","	":"t","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\t|\u2028|\u2029/g;E.template=function(e,t,n){var r;n=E.defaults({},n,E.templateSettings);var i=new RegExp([(n.escape||D).source,(n.interpolate||D).source,(n.evaluate||D).source].join("|")+"|$","g"),s=0,o="__p+='";e.replace(i,function(t,n,r,i,u){return o+=e.slice(s,u).replace(H,function(e){return"\\"+P[e]}),n&&(o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(o+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),i&&(o+="';\n"+i+"\n__p+='"),s=u+t.length,t}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=new Function(n.variable||"obj","_",o)}catch(u){throw u.source=o,u}if(t)return r(t,E);var a=function(e){return r.call(this,e,E)};return a.source="function("+(n.variable||"obj")+"){\n"+o+"}",a},E.chain=function(e){return E(e).chain()};var B=function(e){return this._chain?E(e).chain():e};return E.mixin(E),S(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=t[e];E.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),(e=="shift"||e=="splice")&&t.length===0&&delete t[0],B.call(this,t)}}),S(["concat","join","slice"],function(e){var n=t[e];E.prototype[e]=function(){return B.call(this,n.apply(this._wrapped,arguments))}}),E.extend(E.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),E}),bdyt_define("backbone",["jquery","underscore"],function(e,t){var n=[],r=n.push,i=n.slice,s=n.splice,o={};o.VERSION="1.1.0";var t=t;o.$=e,o.emulateHTTP=!1,o.emulateJSON=!1;var u=o.Events={on:function(e,t,n){if(!f(this,"on",e,[t,n])||!t)return this;this._events||(this._events={});var r=this._events[e]||(this._events[e]=[]);return r.push({callback:t,context:n,ctx:n||this}),this},once:function(e,n,r){if(!f(this,"once",e,[n,r])||!n)return this;var i=this,s=t.once(function(){i.off(e,s),n.apply(this,arguments)});return s._callback=n,this.on(e,s,r)},off:function(e,n,r){var i,s,o,u,a,l,c,h;if(!this._events||!f(this,"off",e,[n,r]))return this;if(!e&&!n&&!r)return this._events={},this;u=e?[e]:t.keys(this._events);for(a=0,l=u.length;a<l;a++){e=u[a];if(o=this._events[e]){this._events[e]=i=[];if(n||r)for(c=0,h=o.length;c<h;c++)s=o[c],(n&&n!==s.callback&&n!==s.callback._callback||r&&r!==s.context)&&i.push(s);i.length||delete this._events[e]}}return this},trigger:function(e){if(!this._events)return this;var t=i.call(arguments,1);if(!f(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&l(n,t),r&&l(r,arguments),this},stopListening:function(e,n,r){var i=this._listeningTo;if(!i)return this;var s=!n&&!r;!r&&typeof n=="object"&&(r=this),e&&((i={})[e._listenId]=e);for(var o in i)e=i[o],e.off(n,r,this),(s||t.isEmpty(e._events))&&delete this._listeningTo[o];return this}},a=/\s+/,f=function(e,t,n,r){if(!n)return!0;if(typeof n=="object"){for(var i in n)e[t].apply(e,[i,n[i]].concat(r));return!1}if(a.test(n)){var s=n.split(a);for(var o=0,u=s.length;o<u;o++)e[t].apply(e,[s[o]].concat(r));return!1}return!0},l=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],u=t[2];switch(t.length){case 0:while(++r<i)(n=e[r]).callback.call(n.ctx);return;case 1:while(++r<i)(n=e[r]).callback.call(n.ctx,s);return;case 2:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o,u);return;default:while(++r<i)(n=e[r]).callback.apply(n.ctx,t)}},c={listenTo:"on",listenToOnce:"once"};t.each(c,function(e,n){u[n]=function(n,r,i){var s=this._listeningTo||(this._listeningTo={}),o=n._listenId||(n._listenId=t.uniqueId("l"));return s[o]=n,!i&&typeof r=="object"&&(i=this),n[e](r,i,this),this}}),u.bind=u.on,u.unbind=u.off,t.extend(o,u);var h=o.Model=function(e,n){var r=e||{};n||(n={}),this.cid=t.uniqueId("c"),this.attributes={},n.collection&&(this.collection=n.collection),n.parse&&(r=this.parse(r,n)||{}),r=t.defaults({},r,t.result(this,"defaults")),this.set(r,n),this.changed={},this.initialize.apply(this,arguments)};t.extend(h.prototype,u,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return t.clone(this.attributes)},sync:function(){return o.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return t.escape(this.get(e))},has:function(e){return this.get(e)!=null},set:function(e,n,r){var i,s,o,u,a,f,l,c;if(e==null)return this;typeof e=="object"?(s=e,r=n):(s={})[e]=n,r||(r={});if(!this._validate(s,r))return!1;o=r.unset,a=r.silent,u=[],f=this._changing,this._changing=!0,f||(this._previousAttributes=t.clone(this.attributes),this.changed={}),c=this.attributes,l=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]);for(i in s)n=s[i],t.isEqual(c[i],n)||u.push(i),t.isEqual(l[i],n)?delete this.changed[i]:this.changed[i]=n,o?delete c[i]:c[i]=n;if(!a){u.length&&(this._pending=!0);for(var h=0,p=u.length;h<p;h++)this.trigger("change:"+u[h],this,c[u[h]],r)}if(f)return this;if(!a)while(this._pending)this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,n){return this.set(e,void 0,t.extend({},n,{unset:!0}))},clear:function(e){var n={};for(var r in this.attributes)n[r]=void 0;return this.set(n,t.extend({},e,{unset:!0}))},hasChanged:function(e){return e==null?!t.isEmpty(this.changed):t.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?t.clone(this.changed):!1;var n,r=!1,i=this._changing?this._previousAttributes:this.attributes;for(var s in e){if(t.isEqual(i[s],n=e[s]))continue;(r||(r={}))[s]=n}return r},previous:function(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return t.clone(this._previousAttributes)},fetch:function(e){e=e?t.clone(e):{},e.parse===void 0&&(e.parse=!0);var n=this,r=e.success;return e.success=function(t){if(!n.set(n.parse(t,e),e))return!1;r&&r(n,t,e),n.trigger("sync",n,t,e)},j(this,e),this.sync("read",this,e)},save:function(e,n,r){var i,s,o,u=this.attributes;e==null||typeof e=="object"?(i=e,r=n):(i={})[e]=n,r=t.extend({validate:!0},r);if(i&&!r.wait){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;i&&r.wait&&(this.attributes=t.extend({},u,i)),r.parse===void 0&&(r.parse=!0);var a=this,f=r.success;return r.success=function(e){a.attributes=u;var n=a.parse(e,r);r.wait&&(n=t.extend(i||{},n));if(t.isObject(n)&&!a.set(n,r))return!1;f&&f(a,e,r),a.trigger("sync",a,e,r)},j(this,r),s=this.isNew()?"create":r.patch?"patch":"update",s==="patch"&&(r.attrs=i),o=this.sync(s,this,r),i&&r.wait&&(this.attributes=u),o},destroy:function(e){e=e?t.clone(e):{};var n=this,r=e.success,i=function(){n.trigger("destroy",n,n.collection,e)};e.success=function(t){(e.wait||n.isNew())&&i(),r&&r(n,t,e),n.isNew()||n.trigger("sync",n,t,e)};if(this.isNew())return e.success(),!1;j(this,e);var s=this.sync("delete",this,e);return e.wait||i(),s},url:function(){var e=t.result(this,"urlRoot")||t.result(this.collection,"url")||B();return this.isNew()?e:e+(e.charAt(e.length-1)==="/"?"":"/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return this.id==null},isValid:function(e){return this._validate({},t.extend(e||{},{validate:!0}))},_validate:function(e,n){if(!n.validate||!this.validate)return!0;e=t.extend({},this.attributes,e);var r=this.validationError=this.validate(e,n)||null;return r?(this.trigger("invalid",this,r,t.extend(n,{validationError:r})),!1):!0}});var p=["keys","values","pairs","invert","pick","omit"];t.each(p,function(e){h.prototype[e]=function(){var n=i.call(arguments);return n.unshift(this.attributes),t[e].apply(t,n)}});var d=o.Collection=function(e,n){n||(n={}),n.model&&(this.model=n.model),n.comparator!==void 0&&(this.comparator=n.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,t.extend({silent:!0},n))},v={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};t.extend(d.prototype,u,{model:h,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return o.sync.apply(this,arguments)},add:function(e,n){return this.set(e,t.extend({merge:!1},n,m))},remove:function(e,n){var r=!t.isArray(e);e=r?[e]:t.clone(e),n||(n={});var i,s,o,u;for(i=0,s=e.length;i<s;i++){u=e[i]=this.get(e[i]);if(!u)continue;delete this._byId[u.id],delete this._byId[u.cid],o=this.indexOf(u),this.models.splice(o,1),this.length--,n.silent||(n.index=o,u.trigger("remove",u,this,n)),this._removeReference(u)}return r?e[0]:e},set:function(e,n){n=t.defaults({},n,v),n.parse&&(e=this.parse(e,n));var r=!t.isArray(e);e=r?e?[e]:[]:t.clone(e);var i,s,o,u,a,f,l,c=n.at,p=this.model,d=this.comparator&&c==null&&n.sort!==!1,m=t.isString(this.comparator)?this.comparator:null,g=[],y=[],b={},w=n.add,E=n.merge,S=n.remove,x=!d&&w&&S?[]:!1;for(i=0,s=e.length;i<s;i++){a=e[i],a instanceof h?o=u=a:o=a[p.prototype.idAttribute];if(f=this.get(o))S&&(b[f.cid]=!0),E&&(a=a===u?u.attributes:a,n.parse&&(a=f.parse(a,n)),f.set(a,n),d&&!l&&f.hasChanged(m)&&(l=!0)),e[i]=f;else if(w){u=e[i]=this._prepareModel(a,n);if(!u)continue;g.push(u),u.on("all",this._onModelEvent,this),this._byId[u.cid]=u,u.id!=null&&(this._byId[u.id]=u)}x&&x.push(f||u)}if(S){for(i=0,s=this.length;i<s;++i)b[(u=this.models[i]).cid]||y.push(u);y.length&&this.remove(y,n)}if(g.length||x&&x.length){d&&(l=!0),this.length+=g.length;if(c!=null)for(i=0,s=g.length;i<s;i++)this.models.splice(c+i,0,g[i]);else{x&&(this.models.length=0);var T=x||g;for(i=0,s=T.length;i<s;i++)this.models.push(T[i])}}l&&this.sort({silent:!0});if(!n.silent){for(i=0,s=g.length;i<s;i++)(u=g[i]).trigger("add",u,this,n);(l||x&&x.length)&&this.trigger("sort",this,n)}return r?e[0]:e},reset:function(e,n){n||(n={});for(var r=0,i=this.models.length;r<i;r++)this._removeReference(this.models[r]);return n.previousModels=this.models,this._reset(),e=this.add(e,t.extend({silent:!0},n)),n.silent||this.trigger("reset",this,n),e},push:function(e,n){return this.add(e,t.extend({at:this.length},n))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,n){return this.add(e,t.extend({at:0},n))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return i.apply(this.models,arguments)},get:function(e){return e==null?void 0:this._byId[e.id]||this._byId[e.cid]||this._byId[e]},at:function(e){return this.models[e]},where:function(e,n){return t.isEmpty(e)?n?void 0:[]:this[n?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),t.isString(this.comparator)||this.comparator.length===1?this.models=this.sortBy(this.comparator,this):this.models.sort(t.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return t.invoke(this.models,"get",e)},fetch:function(e){e=e?t.clone(e):{},e.parse===void 0&&(e.parse=!0);var n=e.success,r=this;return e.success=function(t){var i=e.reset?"reset":"set";r[i](t,e),n&&n(r,t,e),r.trigger("sync",r,t,e)},j(this,e),this.sync("read",this,e)},create:function(e,n){n=n?t.clone(n):{};if(!(e=this._prepareModel(e,n)))return!1;n.wait||this.add(e,n);var r=this,i=n.success;return n.success=function(e,t,n){n.wait&&r.add(e,n),i&&i(e,t,n)},e.save(null,n),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,n){if(e instanceof h)return e.collection||(e.collection=this),e;n=n?t.clone(n):{},n.collection=this;var r=new this.model(e,n);return r.validationError?(this.trigger("invalid",this,r.validationError,n),!1):r},_removeReference:function(e){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if((e==="add"||e==="remove")&&n!==this)return;e==="destroy"&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],t.id!=null&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments)}});var g=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain"];t.each(g,function(e){d.prototype[e]=function(){var n=i.call(arguments);return n.unshift(this.models),t[e].apply(t,n)}});var y=["groupBy","countBy","sortBy"];t.each(y,function(e){d.prototype[e]=function(n,r){var i=t.isFunction(n)?n:function(e){return e.get(n)};return t[e](this.models,i,r)}});var b=o.View=function(e){this.cid=t.uniqueId("view"),e||(e={}),t.extend(this,t.pick(e,E)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},w=/^(\S+)\s*(.*)$/,E=["model","collection","el","id","attributes","className","tagName","events"];t.extend(b.prototype,u,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,t){return this.$el&&this.undelegateEvents(),this.$el=e instanceof o.$?e:o.$(e),this.el=this.$el[0],t!==!1&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=t.result(this,"events")))return this;this.undelegateEvents();for(var n in e){var r=e[n];t.isFunction(r)||(r=this[e[n]]);if(!r)continue;var i=n.match(w),s=i[1],o=i[2];r=t.bind(r,this),s+=".delegateEvents"+this.cid,o===""?this.$el.on(s,r):this.$el.on(s,o,r)}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(!this.el){var e=t.extend({},t.result(this,"attributes"));this.id&&(e.id=t.result(this,"id")),this.className&&(e["class"]=t.result(this,"className"));var n=o.$("<"+t.result(this,"tagName")+">").attr(e);this.setElement(n,!1)}else this.setElement(t.result(this,"el"),!1)}}),o.sync=function(e,n,r){var i=x[e];t.defaults(r||(r={}),{emulateHTTP:o.emulateHTTP,emulateJSON:o.emulateJSON});var s={type:i,dataType:"json"};r.url||(s.url=t.result(n,"url")||B()),r.data==null&&n&&(e==="create"||e==="update"||e==="patch")&&(s.contentType="application/json",s.data=JSON.stringify(r.attrs||n.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{});if(r.emulateHTTP&&(i==="PUT"||i==="DELETE"||i==="PATCH")){s.type="POST",r.emulateJSON&&(s.data._method=i);var u=r.beforeSend;r.beforeSend=function(e){e.setRequestHeader("X-HTTP-Method-Override",i);if(u)return u.apply(this,arguments)}}s.type!=="GET"&&!r.emulateJSON&&(s.processData=!1),s.type==="PATCH"&&S&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var a=r.xhr=o.ajax(t.extend(s,r));return n.trigger("request",n,a,r),a};var S=typeof window!="undefined"&&!!window.ActiveXObject&&(!window.XMLHttpRequest||!(new XMLHttpRequest).dispatchEvent),x={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};o.ajax=function(){return o.$.ajax.apply(o.$,arguments)};var T=o.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},N=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,k=/\*\w+/g,L=/[\-{}\[\]+?.,\\\^$|#\s]/g;t.extend(T.prototype,u,{initialize:function(){},route:function(e,n,r){t.isRegExp(e)||(e=this._routeToRegExp(e)),t.isFunction(n)&&(r=n,n=""),r||(r=this[n]);var i=this;return o.history.route(e,function(t){var s=i._extractParameters(e,t);r&&r.apply(i,s),i.trigger.apply(i,["route:"+n].concat(s)),i.trigger("route",n,s),o.history.trigger("route",i,n,s)}),this},navigate:function(e,t){return o.history.navigate(e,t),this},_bindRoutes:function(){if(!this.routes)return;this.routes=t.result(this,"routes");var e,n=t.keys(this.routes);while((e=n.pop())!=null)this.route(e,this.routes[e])},_routeToRegExp:function(e){return e=e.replace(L,"\\$&").replace(N,"(?:$1)?").replace(C,function(e,t){return t?e:"([^/]+)"}).replace(k,"(.*?)"),new RegExp("^"+e+"$")},_extractParameters:function(e,n){var r=e.exec(n).slice(1);return t.map(r,function(e){return e?decodeURIComponent(e):null})}});var A=o.History=function(){this.handlers=[],t.bindAll(this,"checkUrl"),typeof window!="undefined"&&(this.location=window.location,this.history=window.history)},O=/^[#\/]|\s+$/g,M=/^\/+|\/+$/g,_=/msie [\w.]+/,D=/\/$/,P=/[?#].*$/;A.started=!1,t.extend(A.prototype,u,{interval:50,getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(e==null)if(this._hasPushState||!this._wantsHashChange||t){e=this.location.pathname;var n=this.root.replace(D,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(O,"")},start:function(e){if(A.started)throw new Error("Backbone.history has already been started");A.started=!0,this.options=t.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),r=document.documentMode,i=_.exec(navigator.userAgent.toLowerCase())&&(!r||r<=7);this.root=("/"+this.root+"/").replace(M,"/"),i&&this._wantsHashChange&&(this.iframe=o.$('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow,this.navigate(n)),this._hasPushState?o.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?o.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var s=this.location,u=s.pathname.replace(/[^\/]$/,"$&/")===this.root;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!u)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&u&&s.hash&&(this.fragment=this.getHash().replace(O,""),this.history.replaceState({},document.title,this.root+this.fragment+s.search))}if(!this.options.silent)return this.loadUrl()},stop:function(){o.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval),A.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe)));if(t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),t.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!A.started)return!1;if(!t||t===!0)t={trigger:!!t};var n=this.root+(e=this.getFragment(e||""));e=e.replace(P,"");if(this.fragment===e)return;this.fragment=e,e===""&&n!=="/"&&(n=n.slice(0,-1));if(this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}if(t.trigger)return this.loadUrl(e)},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),o.history=new A;var H=function(e,n){var r=this,i;e&&t.has(e,"constructor")?i=e.constructor:i=function(){return r.apply(this,arguments)},t.extend(i,r,n);var s=function(){this.constructor=i};return s.prototype=r.prototype,i.prototype=new s,e&&t.extend(i.prototype,e),i.__super__=r.prototype,i};h.extend=d.extend=T.extend=b.extend=A.extend=H;var B=function(){throw new Error('A "url" property or function must be specified')},j=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}};return o}),bdyt_define("global",["jquery","underscore","backbone"],function(e,t,n){window.bdYuntu={events:t.extend({},n.Events),timer:{resizeTimer:null},css:{},models:{},views:{},collections:{},count:{showedNum:0,galleryNum:0,ftFullShowNum:0,ftInSightNum:0},firstGalleryId:0,firstImgId:0,firstImgNum:1,isFtSliding:!1,isBdSliding:!1,isKeydown:!1,endingShowNext:!1,status:{mainFetchDone:!1,sidebarFetchDone:!1},globalLog:{third_id:0,site_id:e("#bdyt-loader").attr("site_id")||0},logUrl:"http://tuijian.yuntu.baidu.com/yuntu/clicklog",layerLogId:"0",globalOldKeyDown:window.onkeydown||document.onkeydown||!1,switchOldKeyDown:!1}}),bdyt_define("utils/template-helper",[],function(){function e(e,t){var n;document.getElementById(e)?n=document.getElementById(e):(n=document.createElement("script"),n.id=e,n.type="text/template");var t=t.replace(/\r\n/g," ");t=t.replace(/\s{3,}/g," "),n.text=t;if(document.getElementsByTagName("body")[0])document.getElementsByTagName("body")[0].appendChild(n);else if(document.getElementsByTagName("head")[0])document.getElementsByTagName("head")[0].appendChild(n);else{if(!document.getElementsByTagName("script")[0].parentNode)return;document.getElementsByTagName("script")[0].parentNode.appendChild(n)}}return{createTplElem:e}}),bdyt_define("utils/css-helper",["jquery"],function(e){function t(e,t){var n,r=document.getElementsByTagName("head")[0];document.getElementById(e)?n=document.getElementById(e):(n=document.createElement("style"),n.id=e,r&&r.appendChild(n)),n.styleSheet?n.styleSheet.cssText=t:(n.innerHTML="",n.appendChild(document.createTextNode(t)))}function n(t,n){var r=e(t);return n==="margin"||n==="padding"?{left:parseFloat(r.css(n+"-left")),right:parseFloat(r.css(n+"-right")),top:parseFloat(r.css(n+"-top")),bottom:parseFloat(r.css(n+"-bottom"))}:n==="border"?{left:parseFloat(r.css(n+"-left-width")),right:parseFloat(r.css(n+"-right-width")),top:parseFloat(r.css(n+"-top-width")),bottom:parseFloat(r.css(n+"-bottom-width"))}:{left:0,right:0,top:0,bottom:0}}return{createStyleElem:t,getElemMBP:n}}),bdyt_define("utils/detail-slide",["jquery"],function(e){var t=function(t){this.options=e.extend({fp:20,fpcount:20,dom:null,cps:1,mode:"horizontal",before:function(){},after:function(){}},t||{}),this.init()};return t.prototype={init:function(){this.dom=this.options.dom,this.children=this.dom.children(),this.index=0,this.parent=this.dom.parent(),this.nexting=!1,this.runing=!1,this.mode=this.getMode()},next:function(){if(this.isLast()||this.runing)return;this.index++,this.nexting=!0,this.run(this.getMarginRange())},prev:function(){if(this.isFirst()||this.runing)return;this.index--,this.nexting=!1,this.run(this.getMarginRange())},slideTo:function(e){if(this.runing||this.index==e)return;var t=e;e=this.index,this.index=t,this.run(this.getMarginRange(e))},slideToFirst:function(){this.slideTo(0)},slideToLast:function(){this.slideTo(this.getTotal()-1)},run:function(e){var n=this,r=0;this.runing=!0,this.options.before&&this.options.before.call(this,this.index);var i=this.getCurrentPosition(),s=e/t.Count;setTimeout(function(){if(++r>t.Count){n.runing=!1,n.setCurrentPosition(i-e),n.options.after&&n.options.after.call(n,n.index);return}n.setCurrentPosition(i-s*r),setTimeout(arguments.callee,t.Fp)},t.Fp)},isFirst:function(){return this.index==0},isLast:function(){return this.index>=this.getTotal()-1},getTotal:function(){var e=this.children.length/this.options.cps;return Math.ceil(e)},getMarginRange:function(e){e===undefined&&(e=this.nexting?this.index-1:this.index+1);var t=this.children.eq(this.index*this.options.cps).offset(),n=this.children.eq(e*this.options.cps).offset(),r=this.mode.toLowerCase();return t[r]-n[r]},getMode:function(){return this.options.mode=="vertical"?"Top":"Left"},getCurrentPosition:function(){return parseInt(this.dom.css("margin"+this.mode))},setCurrentPosition:function(e){this.dom.css("margin"+this.mode,parseInt(e))}},t.Fp=20,t.Count=20,t}),bdyt_define("utils/bottom-detail-slide",["jquery"],function(e){var t=function(t){this.options=e.extend({fp:20,fpcount:20,dom:null,cps:1,mode:"horizontal",before:function(){},after:function(){}},t||{}),this.init()};return t.prototype={init:function(){this.dom=this.options.dom,this.children=this.dom.children(),this.index=0,this.parent=this.dom.parent(),this.nexting=!1,this.runing=!1,this.mode=this.getMode()},next:function(){if(this.isLast()||this.runing)return;this.index++,this.nexting=!0,this.run(this.getMarginRange())},prev:function(){if(this.isFirst()||this.runing)return;this.index--,this.nexting=!1,this.run(this.getMarginRange())},slideTo:function(e){if(this.runing||this.index==e)return;var t=e;e=this.index,this.index=t,this.run(this.getMarginRange(e))},slideToFirst:function(){this.slideTo(0)},slideToLast:function(){this.slideTo(this.getTotal()-1)},run:function(e){var n=this,r=0;this.runing=!0,this.options.before&&this.options.before.call(this,this.index);var i=this.getCurrentPosition(),s=e/t.Count;setTimeout(function(){if(++r>t.Count){n.runing=!1,n.setCurrentPosition(i-e),n.options.after&&n.options.after.call(n,n.index);return}n.setCurrentPosition(i-s*r),setTimeout(arguments.callee,t.Fp)},t.Fp)},isFirst:function(){return this.index==0},isLast:function(){return this.index>=this.getTotal()-1},getTotal:function(){var e=this.children.length/this.options.cps;return Math.ceil(e)},getMarginRange:function(e){e===undefined&&(e=this.nexting?this.index-1:this.index+1);var t=this.children.eq(this.index*this.options.cps).offset(),n=this.children.eq(e*this.options.cps).offset(),r=this.mode.toLowerCase();return t[r]-n[r]},getMode:function(){return this.options.mode=="vertical"?"Top":"Left"},getCurrentPosition:function(){return parseInt(this.dom.css("margin"+this.mode))},setCurrentPosition:function(e){this.dom.css("margin"+this.mode,parseInt(e))}},t.Fp=20,t.Count=20,t}),bdyt_define("text",["module"],function(e){var t,n,r,i,s,o=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],u=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,f=typeof location!="undefined"&&location.href,l=f&&location.protocol&&location.protocol.replace(/\:/,""),c=f&&location.hostname,h=f&&(location.port||undefined),p={},d=e.config&&e.config()||{};t={version:"2.0.10",strip:function(e){if(e){e=e.replace(u,"");var t=e.match(a);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:d.createXhr||function(){var e,t,n;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;if(typeof ActiveXObject!="undefined")for(t=0;t<3;t+=1){n=o[t];try{e=new ActiveXObject(n)}catch(r){}if(e){o=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,s=e.indexOf("."),o=e.indexOf("./")===0||e.indexOf("../")===0;return s!==-1&&(!o||s>1)?(t=e.substring(0,s),n=e.substring(s+1,e.length)):t=e,r=n||t,s=r.indexOf("!"),s!==-1&&(i=r.substring(s+1)==="strip",r=r.substring(0,s),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,i){var s,o,u,a=t.xdRegExp.exec(e);return a?(s=a[2],o=a[3],o=o.split(":"),u=o[1],o=o[0],(!s||s===n)&&(!o||o.toLowerCase()===r.toLowerCase())&&(!u&&!o||u===i)):!0},finishLoad:function(e,n,r,i){r=n?t.strip(r):r,d.isBuild&&(p[e]=r),i(r)},load:function(e,n,r,i){if(i.isBuild&&!i.inlineText){r();return}d.isBuild=i.isBuild;var s=t.parseName(e),o=s.moduleName+(s.ext?"."+s.ext:""),u=n.toUrl(o),a=d.useXhr||t.useXhr;if(u.indexOf("empty:")===0){r();return}!f||a(u,l,c,h)?t.get(u,function(n){t.finishLoad(e,s.strip,n,r)},function(e){r.error&&r.error(e)}):n([o],function(e){t.finishLoad(s.moduleName+"."+s.ext,s.strip,e,r)})},write:function(e,n,r,i){if(p.hasOwnProperty(n)){var s=t.jsEscape(p[n]);r.asModule(e+"!"+n,"bdyt_define(function () { return '"+s+"';});\n")}},writeFile:function(e,n,r,i,s){var o=t.parseName(n),u=o.ext?"."+o.ext:"",a=o.moduleName+u,f=r.toUrl(o.moduleName+u)+".js";t.load(a,r,function(n){var r=function(e){return i(f,e)};r.asModule=function(e,t){return i.asModule(e,f,t)},t.write(e,a,r,s)},s)}};if(d.env==="node"||!d.env&&typeof process!="undefined"&&process.versions&&!!process.versions.node&&!process.versions["node-webkit"])n=bdyt_require.nodeRequire("fs"),t.get=function(e,t,r){try{var i=n.readFileSync(e,"utf8");i.indexOf("﻿")===0&&(i=i.substring(1)),t(i)}catch(s){r(s)}};else if(d.env==="xhr"||!d.env&&t.createXhr())t.get=function(e,n,r,i){var s=t.createXhr(),o;s.open("GET",e,!0);if(i)for(o in i)i.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),i[o]);d.onXhr&&d.onXhr(s,e),s.onreadystatechange=function(t){var i,o;s.readyState===4&&(i=s.status,i>399&&i<600?(o=new Error(e+" HTTP status: "+i),o.xhr=s,r(o)):n(s.responseText),d.onXhrComplete&&d.onXhrComplete(s,e))},s.send(null)};else if(d.env==="rhino"||!d.env&&typeof Packages!="undefined"&&typeof java!="undefined")t.get=function(e,t){var n,r,i="utf-8",s=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),u=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),i)),a="";try{n=new java.lang.StringBuffer,r=u.readLine(),r&&r.length()&&r.charAt(0)===65279&&(r=r.substring(1)),r!==null&&n.append(r);while((r=u.readLine())!==null)n.append(o),n.append(r);a=String(n.toString())}finally{u.close()}t(a)};else if(d.env==="xpconnect"||!d.env&&typeof Components!="undefined"&&Components.classes&&Components.interfaces)r=Components.classes,i=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in r,t.get=function(e,t){var n,o,u,a={};s&&(e=e.replace(/\//g,"\\")),u=new FileUtils.File(e);try{n=r["@mozilla.org/network/file-input-stream;1"].createInstance(i.nsIFileInputStream),n.init(u,1,0,!1),o=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(i.nsIConverterInputStream),o.init(n,"utf-8",n.available(),i.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),o.readString(n.available(),a),o.close(),n.close(),t(a.value)}catch(f){throw new Error((u&&u.path||"")+": "+f)}};return t}),bdyt_define("text!template/bdyt-index.html",[],function(){return'<div class="content-wrapper" style=\'display:none\'>\n        <div class="button-wrapper">\n            <span class="bdlogo"></span>\n            <span class="label">相关图集推荐</span>\n            <a href="##" class="close" act_name="close"></a>\n        </div>\n        <div class="main-wrapper">\n            <a href="##" class="button-slide left" act_name="turn" act_type="left"><span class="left"><div></div></span></a>\n            <a href="##" class="button-slide right" act_name="turn" act_type="right"><span class="right"><div></div></span></a>\n            <ul class="img-list slide-main">\n                <% _.each(data,function(value,key,list){ %>\n                <%if(key<10){%>\n                <li class="img-container">\n                <a href="<%=value.page_url%>" act_name="gallery" clk_pos="<%=key%>" src-title="<%= value.page_title %>" class="bdyt-img-item <%if(value.fruit_type == 3){%>bdyt-img-search-border<%}%>" fruit_type="<%=value.fruit_type%>" rid="<%= value.rid%>" target="_blank">\n                    <img src="<%= value.thumbnail_url %>" org-src="<%= value.first_img_url %>" bdyt_gallery_id="<%= value.gallery_id %>" bdyt_page_url="<%= value.page_url %>" bdyt_rele_type = "<%= value.rele_type %>" />\n                    <div rec_layer_index class="title-flow-layer" src-title="<%= value.page_title %>"><span><%= value.page_title %></span></div>\n                    <!--植入广告"推广"图标-->\n                    <% if(value.fruit_type == 2){%>\n                    <span class="bdyt-ad-icon" img_id="<%= value.img_id%>"> 推广 </span>\n                    <%}%>\n                    <!--图搜"热图"图标-->\n                    <% if(value.fruit_type == 3){%>\n                    <div class="bdyt-img-search-icon"></div>\n                    <%}%>\n                </a>\n                </li>\n                <%}%>\n                <% }) %>\n            </ul>\n        </div>\n</div>\n'}),bdyt_define("text!template/bdyt-index-head.html",[],function(){return'<div class="rec-flow-layer bdyt-bind-click-item" act_name="img" clk_pos=-1 href="#">\n    <div class="head-wrapper">\n        <a act_name="gallery" clk_pos=-1 href="#"></a>\n    </div>\n</div>\n'}),bdyt_define("text!template/bdyt-bottom-content.html",[],function(){return'<div class="bdyt-bottom-content-wrapper" style=\'display:block\'>\n    <a href="javascript:void(0);" class="bdyt-bottom-content-wrapper-btn" hidefocus=true mod_id="index_bottom_rec" act_name="toggle" act_type="up" if_first="1"></a>\n    <div class="animation-wrapper">\n        <div class="button-wrapper">\n            <span class="bdlogo"></span>\n            <span class="label">相关图集推荐</span>\n            <a href="##" class="close" act_name="close"></a>\n        </div>\n        <div class="main-wrapper">\n            <a href="javascript:void(0);" class="button-slide left fr-left" act_name="turn" act_type="left"><span class="left"><div></div></span></a>\n            <a href="javascript:void(0);" class="button-slide right" act_name="turn" act_type="right"><span class="right"><div></div></span></a>\n            <ul class="img-list slide-main">\n                <% _.each(data,function(value,key,list){ %>\n                <%if(key<20){%>\n                <li class="img-container">\n                <a href="<%=value.page_url%>" act_name="gallery" clk_pos="<%=key%>" src-title="<%= value.page_title %>" class="bdyt-img-item <%if(value.fruit_type == 3){%>bdyt-img-search-border<%}%>" fruit_type="<%=value.fruit_type%>" rid="<%= value.rid%>" >\n                    <img src="<%= value.thumbnail_url %>" org-src="<%= value.first_img_url %>" bdyt_gallery_id="<%= value.gallery_id %>" bdyt_page_url="<%= value.page_url %>" bdyt_rele_type = "<%= value.rele_type %>" />\n                    <div rec_layer_index class="title-flow-layer" src-title="<%= value.page_title %>"><span><%= value.page_title %></span></div>\n                    <!--植入广告"推广"图标-->\n                    <% if(fruit_type == 2){%>\n                    <span class="bdyt-ad-icon" img_id="<%= value.img_id%>"> 推广 </span>\n                    <%}%>\n                    <% if(value.fruit_type == 3){%>\n                        <div class="bdyt-img-search-icon"></div>\n                    <%}%>\n                </a>\n                </li>\n                <%}%>\n                <% }) %>\n            </ul>\n        </div>\n    </div>\n</div>\n'}),bdyt_define("css!css-style/bdyt-index-sprite",[],function(){}),bdyt_define("views/bdyt-index",["jquery","underscore","backbone","utils/template-helper","utils/css-helper","utils/detail-slide","utils/bottom-detail-slide","text!template/bdyt-index.html","text!template/bdyt-index-head.html","text!template/bdyt-bottom-content.html","css!css-style/bdyt-index-sprite.css"],function(e,t,n,r,i,s,o,u,a,f){r.createTplElem("tpl-bdyt-index",u),r.createTplElem("tpl-bdyt-head",a),r.createTplElem("tpl-bdyt-bottom-content",f);var l=n.View.extend({el:e(".bdyt-layer"),events:{},initialize:function(){this.dispFrameWork()},no_img_btn_flag:0,sign:0,kg:0,t:e(document).scrollTop(),p:e(document).scrollTop(),plate_img_num:0,getimgsetmin_cache:{},cur_layer_index:0,hover_lock:{},scroll_lock:0,data_max_retry:-3,mouse_in_first_img:!1,fr_img_has_disp_log:!1,page_id:"index",mod_id:"index",log_id:0,third_id:0,mouse_hover_tip:{},legal_size_img_list:[],legal_size_img_dom_list:[],confirmed_page_url:"",ad_click:function(t){t&&t.preventDefault(),t&&t.stopPropagation();var n=e(t.currentTarget);return window.bdYuntu.ad_js2.ad_click({ad_id:n.attr("rid"),ad_url:encodeURIComponent(n.attr("href")),log_id:window.bdYuntu.layerLogId}),!1},checkPlateLegal:function(e){var t=e.width(),n=e.height();return t>=250&&n>=180&&t/n<=5?!0:!1},adjustAllLayer:function(){for(var t=1;t<=this.cur_layer_index;t++){var n=e("img[rec_layer_index ="+t+"]"),r=e(".rec-flow-layer[rec_layer_index ="+t+"]");n.length>0&&r.length>0&&this.adjustLayerByImg(n,r)}},adjustLayerByImg:function(e,t){var n=e.offset(),r=e.height(),i=e.width(),s=120,o=parseInt(e.css("padding-top"))||0,u=parseInt(e.css("padding-left"))||0,a=parseInt(e.css("border-top"))||0,f=parseInt(e.css("border-left"))||0;t.css({top:n.top+o+a,left:n.left+u+f,width:i,height:r})},addOneHeadIcon:function(n,r){if(!n)return!1;var i=e(t.template(e("#tpl-bdyt-head").html(),{}));if(i.length>0){var s=++this.cur_layer_index;this.adjustLayerByImg(n,i),e(".bdyt-index").append(i),this.hover_lock[s]=0,i.attr("rec_layer_index",s),n.attr("rec_layer_index",s),n.attr("act_name","img"),n.attr("clk_pos",-1)}},getImgUrl:function(e,t){var n=this.absoluteUrl(e,t);return n=this.normalizeUrl(n),n},getPageUrl:function(e){if(!e)return"";if(this.confirmed_page_url)return this.confirmed_page_url;var t=e||document.location.href;return t=t.replace(/#[^/]*$/,""),t=t.replace(/\?.*$/,""),t=t.replace(/\/$/,""),t=this.normalizeUrl(t),t},absoluteUrl:function(e,t){if(!e)return"";if(!t)return e;if(window.location.protocol&&0==e.indexOf(window.location.protocol))return e;if(0==e.indexOf("//"))return window.location.protocol?window.location.protocol+e:t.replace(/^([^:]+):.*$/,"$1")+":"+e;if(0==e.indexOf("/"))return window.location.protocol&&window.location.host?window.location.protocol+"//"+window.location.host+e:t.replace(/^(.*:\/\/[^\/]+).*$/,"$1")+e;if(0==e.indexOf("../")){n=t.lastIndexOf("/",t.length),t=t.substring(0,n);while((n=t.lastIndexOf("/",t.length))>=0&&0==e.indexOf("../"))t=t.substring(0,n),e=e.substr(3);return t+"/"+e}if(0==e.indexOf("./")){var n=t.lastIndexOf("/");return n>=0?t.substring(0,n+1)+e.substr(1):t+e}var n=t.lastIndexOf("/");return n>=0?t.substring(0,n+1)+e:t+e},normalizeUrl:function(e){if(typeof e=="string"){var t="://",n="",r="",i="",s=-1,o=-1;(s=e.indexOf(t))>0&&(n=e.substring(0,s).toLowerCase(),o=s+t.length,(s=e.indexOf("/",o))>0&&(r=e.substring(o,s).toLowerCase(),s<e.length-1&&(i=e.substring(s).replace(/\/\//g,"/")))),n&&r&&i&&(e=n+t+r+i)}return e},addOneRecLayer:function(n,r,i){function g(n,r,i){var o=e("img[rec_layer_index ="+r+"]");if(!o)return!1;if(!i)return!1;n.getimgsetmin_cache[r]=i.data;var u=e(t.template(e("#tpl-bdyt-index").html(),i)),a=e(".rec-flow-layer[rec_layer_index ="+r+"]");a.append(u),n.adjustLayerByImg(o,a);var f=a.find(".slide-main"),l=50,c=110,h=Math.floor((o.width()-l)/c),p=new s({dom:f,cps:h}),d=a.find(".button-slide.left");d.click(function(e){e.preventDefault(),p.isFirst()?p.slideToLast():p.prev()});var v=a.find(".button-slide.right");return v.click(function(e){e.preventDefault(),p.isLast()?p.slideToFirst():p.next()}),n.dispOneRecLayer(r),!0}var o=new Date/1,u=this,a=e(".rec-flow-layer[rec_layer_index ="+n+"]"),f=e("img[rec_layer_index ="+n+"]");if(f.length<=0)return;var l=f.attr("bdyt_page_url")||this.getPageUrl(document.location.href),c=f.attr("org-src")||f.attr("src"),h=this.getImgUrl(c,l),p=f.width(),d=48,v=110,m=Math.round((p-d)/v);if(f.length<=0)return!1;e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/getimgsetmin",data:{page_url:l,img_url:h,page_id:u.page_id,mod_id:u.mod_id,log_id:o,third_id:u.third_id,rec_layer_index:n,no_disp_log:r,site_id:window.bdYuntu.globalLog.site_id,expect_gallery_num:m},dataType:"jsonp",success:function(e,t){e.gallery_id&&(f.attr("bdyt_gallery_id",e.gallery_id),a.find(".head-wrapper a,.head-right-wrapper a").attr("bdyt_gallery_id",e.gallery_id)),e.img_id&&(f.attr("bdyt_img_id",e.img_id),a.attr("bdyt_img_id",e.img_id));if(e.data&&e.data.length>0){var s=!0;i||(s=g(u,n,e)),r||PDC.mark("c_indexListShow"),s&&(a.attr("has_rec_data",1),a.attr("log_id",o),f.attr("log_id",o))}else{var l=a.attr("has_rec_data")||0;l--,a.attr("has_rec_data",l)}}})},addBottomRec:function(){function d(n,r){if(!r)return!1;var i=e(t.template(e("#tpl-bdyt-bottom-content").html(),r)),o=e(".bdyt-index");o.append(i),bottom_layer=e(".bdyt-bottom-content-wrapper"),bottom_layer.attr("rec_layer_index",0),n.getimgsetmin_cache[0]=r.data;var u=bottom_layer.find(".slide-main"),a=50,f=110,l=Math.floor((e(window).width()-a)/f),c=new s({dom:u,cps:l}),h=bottom_layer.find(".button-slide.left"),p=bottom_layer.find(".button-slide.right");return h.click(function(e){e.preventDefault(),c.prev(),c.isFirst()&&h.addClass("fr-left"),p.removeClass("fr-right")}),p.click(function(e){e.preventDefault(),c.next(),c.isLast()&&p.addClass("fr-right"),h.removeClass("fr-left")}),e(window).on("resize",function(t){c.options.cps=Math.floor((e(window).width()-a)/f)}),!0}var n=0,r=this,i=e(window).height(),o=e(document.body).height(),u=new Date/1,a=r.confirmed_page_url,f="null",l=6,c=48,h=110,p=Math.round((e(window).width()-c)/h);e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/getimgsetmin",data:{page_url:a,img_url:f,page_id:r.page_id,mod_id:r.mod_id,log_id:u,third_id:r.third_id,rec_layer_index:0,site_id:window.bdYuntu.globalLog.site_id,expect_gallery_num:p,req_type:l},dataType:"jsonp",success:function(t,s){ret=d(r,t);if(ret){var a=e(".bdyt-bottom-content-wrapper-btn");a.attr("log_id",u),a.attr("site_id",window.bdYuntu.globalLog.site_id);if(i>=o){r.dispBottomRecLayer();var f="<a mod_id='index_bottom_rec' act_name='scroll' act_type='show' if_first=1 log_id="+u+" site_id="+window.bdYuntu.globalLog.site_id+"></a>";r.addClickLog(f),r.sign=1,n=1}}}}),e(document).delegate(".bdyt-index .img-container a","click",function(t){t.preventDefault(),t.stopPropagation();if(e(this).attr("fruit_type")==2)return r.ad_click(t);if(e(this).attr("fruit_type")==3)return window.open(e(this).attr("href"));var n=e(this).find("img"),i=n.attr("bdyt_gallery_id"),s=n.attr("bdyt_page_url")||r.getPageUrl(document.location.href),o=r.getImgUrl(n.attr("org-src")||n.attr("src"),s),u=r.findRecLayerIndex(e(this)),a=e(this).attr("fruit_type")==2?r.getimgsetmin_cache[u]:undefined;return!i||!s||!o?!1:(window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:s,img_url:o,gallery_id:i,isFromIndex:!0,getimgsetmin_cache:a}),!1)}),e(window).mousewheel(function(t,n){r.t=e(document).scrollTop()}),e(window).scroll(function(t){if(r.no_img_btn_flag==1||r.kg==1)return;var i=e(document).scrollTop();r.p=i;if(r.t<r.p){r.dispBottomRecLayer();if(r.sign==0){if(n==0){var s="<a mod_id='index_bottom_rec' act_name='scroll' act_type='show' if_first=1 log_id="+u+" site_id="+window.bdYuntu.globalLog.site_id+"></a>";n=1}else var s="<a mod_id='index_bottom_rec' act_name='scroll' act_type='show' log_id="+u+" site_id="+window.bdYuntu.globalLog.site_id+"></a>";r.addClickLog(s),r.sign=1}}else{r.hideBottomRecLayer();if(r.sign==1){var s="<a mod_id='index_bottom_rec' act_name='scroll' act_type='hidden' log_id="+u+" site_id="+window.bdYuntu.globalLog.site_id+"></a>";r.addClickLog(s),r.sign=0}}setTimeout(function(){r.t=r.p},0)}),e(document).delegate(".bdyt-index .button-wrapper a.close","click",function(t){t.preventDefault();var n=e(".bdyt-bottom-content-wrapper");n&&n.remove()}),e(document).delegate(".bdyt-index .bdyt-bottom-content-wrapper-btn","click",function(t){var n=e(t.target);n.hasClass("bdyt-index-foot-layer-close")?(r.hideBottomRecLayer(),r.addClickLog(e(t.target)),n.attr("if_first",0),r.no_img_btn_flag=1):(r.dispBottomRecLayer(),r.addClickLog(e(t.target)),r.no_img_btn_flag=1)})},dispBottomRecLayer:function(){this.dispBottomRecContent()},dispBottomRecContent:function(){var t=this,n=e(".bdyt-bottom-content-wrapper"),r=n.find(".animation-wrapper"),i=e(".bdyt-bottom-content-wrapper-btn");r.length>0&&(t.kg=1,r.slideDown(500,function(){i.addClass("bdyt-index-foot-layer-close"),i.attr("act_type","down"),t.kg=0}))},hideBottomRecLayer:function(){this.hideBottomRecContent()},hideBottomRecContent:function(){var t=this,n=e(".bdyt-bottom-content-wrapper"),r=n.find(".animation-wrapper"),i=e(".bdyt-bottom-content-wrapper-btn");r.length>0&&(t.kg=1,r.slideUp(500,function(){r.hide(),i.removeClass("bdyt-index-foot-layer-close"),i.attr("act_type","up"),t.kg=0}))},removeOneRecLayer:function(t){var n=e(".bdyt-index [rec_layer_index ="+t+"]");n.remove();var r=e("img[rec_layer_index ="+t+"]");r.removeAttr("rec_layer_index")},hideOneRecLayer:function(e){this.hideOneIcon(e),this.hideOneRecContent(e)},hideOneIcon:function(t){var n=e(".bdyt-index [rec_layer_index ="+t+"] .head-wrapper a");n.removeClass("head-wrapper-hover")},hideOneRecContent:function(t){var n=e(".bdyt-index [rec_layer_index ="+t+"]"),r=n.find(".content-wrapper");r.length>0&&r.stop(!0,!0).slideUp(200)},dispOneRecLayer:function(t){var n=e(".bdyt-index [rec_layer_index ="+t+"]"),r=e("img[rec_layer_index ="+t+"]");n.length>0&&r.length>0&&this.adjustLayerByImg(r,n),this.dispOneRecIcon(t),this.dispOneRecContent(t)},dispOneRecIcon:function(t){var n=e(".bdyt-index [rec_layer_index ="+t+"] .head-wrapper a");n.addClass("head-wrapper-hover")},dispOneRecContent:function(t){var n=e(".bdyt-index [rec_layer_index ="+t+"]"),r=n.find(".content-wrapper");r.length>0&&r.stop(!0,!0).slideDown(200)},changeImgTitle:function(t){var n;typeof t=="number"||typeof t=="string"?n=e("img[rec_layer_index ="+t+"]"):n=t;if(n.length>0){var r=n.attr("title")||"";n.removeAttr("title"),n.attr("src-title","点击看套图"),n.attr("src_title",r)}},unChangeImgTitle:function(t){var n=e("img[rec_layer_index ="+t+"]"),r=n.attr("title")||"";if(n.length>0){var r=n.attr("src_title")||"";n.attr("title",r)}},addClickLog:function(t){t=e(t);var n=this,r={},i=["site_id","page_id","mod_id","log_id","act_name","clk_pos","act_type","bdyt_gallery_id","bdyt_rele_type","bdyt_img_id","third_id","rec_layer_index","if_first","fruit_type"],s=function(e){if(e=="log_id"||e=="bdyt_img_id"||e=="rec_layer_index")return t.closest("["+e+"]").attr(e);var r=t.attr(e)||t.find("["+e+"]").attr(e)||n[e]||window.bdYuntu.globalLog[e];return r};e(i).each(function(e,t){var n=s(t);r[t]=n}),e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/clicklog",data:r,dataType:"jsonp"})},bindEvent:function(t){t=t||{};var n=this,r=t.ad_switch;if(r){var i=e("<style>.bdyt.bdyt-index .rec-flow-layer{cursor:default;}</style>");e("body").append(i)}window.bdYuntu.events.on("bdyt-index:resize",n.adjustAllLayer,n),e(document).delegate(".bdyt-layer-sidebar-hot-rec a","mousedown",function(t){n.addClickLog(e(this))}),e(document).delegate(".bdyt-index a,.bdyt-bind-click-item","click",function(t){n.addClickLog(e(this))}),e(document).on("DOMNodeInserted",function(t){if(window.bdYuntu.switchOldKeyDown)return;t.stopPropagation();var r=e(t.target);r&&r.closest(".bdyt").length==0&&r.find("img").length>0&&e(t.target).find("img").each(function(t,r){var i=e(r);if(!n.checkPlateLegal(i))return!1;var s={},o=n.getPageUrl(document.location.href);s.img_url=n.getImgUrl(i.attr("org-src")||i.attr("src"),o),s.img_width=i.width(),s.img_height=i.height(),n.legal_size_img_list.push(s),e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/checkplatedatalegal",data:{page_url:o,page_id:"third",third_id:n.third_id,plate_img_num:n.plate_img_num,site_id:window.bdYuntu.globalLog.site_id,img_list:[s]},dataType:"jsonp",success:function(e){e&&e.img_if_fruit_list.length>0&&e.img_if_fruit_list[0]==1&&(n.addOneHeadIcon(i),n.plate_img_num++,PDC.mark("c_indexButtonShow"))}})})}),e(document).on("DOMNodeRemoved",function(t){if(window.bdYuntu.switchOldKeyDown)return;t.stopPropagation();var r=e(t.target);r&&r.closest(".bdyt").length==0&&r.find("img").length>0&&r.find("img").each(function(t,r){var i=e(r),s=i.attr("rec_layer_index");s&&n.removeOneRecLayer(s)})}),e("img").on("load",function(t){var r=e(this),i=r.attr("rec_layer_index"),s=n.getPageUrl(document.location.href);setTimeout(function(){if(i)if(!n.checkPlateLegal(r))n.removeOneRecLayer(i),n.plate_img_num--,e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/checkplatedatalegal",data:{page_url:s,page_id:"third",third_id:n.third_id,plate_img_num:n.plate_img_num,site_id:window.bdYuntu.globalLog.site_id},dataType:"jsonp"});else{var t=e(".rec-flow-layer[rec_layer_index ="+i+"]");n.adjustLayerByImg(r,t)}else{if(!n.checkPlateLegal(r))return!1;var o={};o.img_url=n.getImgUrl(r.attr("org-src")||r.attr("src"),s),o.img_width=r.width(),o.img_height=r.height(),n.legal_size_img_list.push(o),e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/checkplatedatalegal",data:{page_url:s,page_id:"third",third_id:n.third_id,plate_img_num:n.plate_img_num,site_id:window.bdYuntu.globalLog.site_id,img_list:[o]},dataType:"jsonp",success:function(e){e&&e.img_if_fruit_list.length>0&&e.img_if_fruit_list[0]==1&&(n.addOneHeadIcon(r),n.plate_img_num++,PDC.mark("c_indexButtonShow"))}})}},100)}),e(document).delegate(".bdyt-index .rec-flow-layer","mouseover",function(t){t.preventDefault(),t.stopPropagation();var r=n.findRecLayerIndex(e(this));if(r){PDC.mark("c_indexHover");var i=e(".rec-flow-layer[rec_layer_index ="+r+"]");r==1&&(n.mouse_in_first_img=!0,n.fr_img_has_disp_log||(n.fr_img_has_disp_log=!0,n.addOneRecLayer(1,0,1)));if(i.length<=0)return!1;var s=i.attr("has_rec_data")||0;if(s>0)n.dispOneRecLayer(r);else{if(!(s>n.data_max_retry))return!1;n.addOneRecLayer(r)}}}),r||e(document).delegate(".bdyt-index .rec-flow-layer","mousemove",function(t){t.preventDefault(),t.stopPropagation();var r=t.clientY+e(document).scrollTop(),i=t.clientX+e(document).scrollLeft();n.mouse_hover_tip.html("查看套图"),n.mouse_hover_tip.offset({top:r+10,left:i+10}),n.mouse_hover_tip.show()}),e(document).delegate(".bdyt-index .content-wrapper","mousemove",function(e){e.preventDefault(),e.stopPropagation(),n.mouse_hover_tip.hide()}),e(document).delegate(".bdyt-index .rec-flow-layer","mouseleave",function(t){if(t&&e(t.relatedTarget).closest("#bdyt_mouse_hover_tip").length>0)return!1;var r=n.findRecLayerIndex(e(this));r==1&&(n.mouse_in_first_img=!1),n.hideOneRecLayer(r),n.mouse_hover_tip.hide()}),r?(e(document).delegate(".bdyt-index .img-container a","click",function(e){e.stopPropagation()}),e(document).delegate(".bdyt-index .head-wrapper a","click",function(t){t.preventDefault(),t.stopPropagation();var r=n.findRecLayerIndex(e(this)),i=e("img[rec_layer_index ="+r+"]"),s=i.attr("bdyt_gallery_id"),o=i.attr("bdyt_img_id"),u=i.attr("bdyt_page_url")||n.getPageUrl(document.location.href),a=n.getImgUrl(i.attr("org-src")||i.attr("src"),u);if(!s||!u||!a)return!1;window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:u,img_url:a,gallery_id:s,img_id:o,isFromIndex:!0,getimgsetmin_cache:n.getimgsetmin_cache[r]})})):(e(document).delegate(".bdyt-index .head-wrapper a,.bdyt-index .rec-flow-layer","click",function(t){t.preventDefault(),t.stopPropagation();var r=n.findRecLayerIndex(e(this)),i=e("img[rec_layer_index ="+r+"]"),s=i.attr("bdyt_gallery_id"),o=i.attr("bdyt_img_id"),u=i.attr("bdyt_page_url")||n.getPageUrl(document.location.href),a=n.getImgUrl(i.attr("org-src")||i.attr("src"),u);if(!s||!u||!a)return!1;window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:u,img_url:a,gallery_id:s,img_id:o,isFromIndex:!0,getimgsetmin_cache:n.getimgsetmin_cache[r]})}),e(document).delegate(".bdyt-index .img-container a","click",function(t){t.preventDefault(),t.stopPropagation();if(e(this).attr("fruit_type")==2)return n.ad_click(t);if(e(this).attr("fruit_type")==3)return window.open(e(this).attr("href"));var r=e(this).find("img"),i=r.attr("bdyt_gallery_id"),s=r.attr("bdyt_page_url")||n.getPageUrl(document.location.href),o=n.getImgUrl(r.attr("org-src")||r.attr("src"),s),u=n.findRecLayerIndex(e(this)),a=e(this).attr("fruit_type")==2?n.getimgsetmin_cache[u]:undefined;return!i||!s||!o?!1:(window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:s,img_url:o,gallery_id:i,isFromIndex:!0,getimgsetmin_cache:a}),!1)})),e(document).delegate(".bdyt-index .content-wrapper","click",function(e){e.preventDefault(),e.stopPropagation()}),e(document).delegate(".bdyt-index .button-wrapper a.close","click",function(t){t.preventDefault();var r=n.findRecLayerIndex(e(this));r&&n.removeOneRecLayer(r)}),e(document).scroll(function(e){n.scroll_lock&&clearTimeout(n.scroll_lock),n.scroll_lock=setTimeout(function(){n.adjustAllLayer.call(n)},100)})},findRecLayerIndex:function(t){var n=0;if(t.attr("rec_layer_index"))n=t.attr("rec_layer_index");else{var r=e(t).closest("[rec_layer_index]");r.length<=0&&(r=e(t).find("[rec_layer_index]")),n=r.attr("rec_layer_index")||0}return n},dispFrameWork:function(){function u(){r.addOneRecLayer(1,1),setTimeout(function(){r.mouse_in_first_img||r.hideOneRecLayer(1)},2e3)}function a(t,n){n.length>0&&e(r.legal_size_img_dom_list).each(function(t,i){n[t]&&r.addOneHeadIcon(e(i))})}function f(e,t){var n=document.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=function(){if(n.readyState=="loaded"||n.readyState=="complete")n.onreadystatechange=null,t()}:n.onload=function(){t()},n.src=e,document.body.appendChild(n)}var t=e('<div class="bdyt bdyt-index"></div>');t.css({position:"absolute",width:"100%"}),t.offset({top:0,left:0});var n=e('<div id="bdyt_mouse_hover_tip">点击看套图</div>');e("body").append(n),e("body").append(t),this.mouse_hover_tip=e("#bdyt_mouse_hover_tip");var r=this;r.log_id=new Date/1,r.third_id=r.log_id,window.bdYuntu.globalLog.third_id=r.log_id;var i=e("img"),s=i.attr("bdyt_page_url")||r.getPageUrl(document.location.href),o=i.attr("bdyt_page_url")||document.location.href;r.plate_img_num=0,i.each(function(t,n){if(r.checkPlateLegal(e(n))){r.plate_img_num++;var i={};i.img_url=r.getImgUrl(e(n).attr("org-src")||e(n).attr("src"),s),i.img_width=e(n).width(),i.img_height=e(n).height(),r.legal_size_img_list.push(i),r.legal_size_img_dom_list.push(e(n))}}),e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/checkplatedatalegal",data:{page_url:s,src_page_url:o,page_id:"third",plate_img_num:r.plate_img_num,third_id:r.third_id,site_id:window.bdYuntu.globalLog.site_id,img_list:r.legal_size_img_list},dataType:"jsonp",success:function(t,n){t&&t.errno==0&&(t.img_if_fruit_list&&t.img_if_fruit_list.length>0&&(a(t.data,t.img_if_fruit_list),PDC.mark("c_indexButtonShow"),u()),t.page_url&&(r.confirmed_page_url=t.page_url||s),r.bindEvent(t));if(t&&t.errno==2){r.mod_id="index_bottom_rec",r.confirmed_page_url=t.page_url||s;var i="<div style='overflow:hidden;clear:both;'></div>";e(document.body).append(i),r.addBottomRec(),e(document).delegate(".animation-wrapper a,.bdyt-layer-sidebar-hot-rec a","mousedown",function(t){r.addClickLog(e(this))})}}});var l=function(){window.bdYuntu.ad_js2=window.bdYuntu.ad_js2||new window.bdyt_ad("bdyt-layer-stream",{req_type:2,third_id:window.bdYuntu.globalLog.third_id,plate_url:encodeURIComponent(window.location.href),referrer:encodeURIComponent(document.referrer)||"",prod_id:"ad_yuntu",ad_type:"yun_ad_stream",clk_type:0})};f("http://tuijian.yuntu.baidu.com/static/yuntu-ad/loader.js",l)}});return l}),bdyt_define("text!template/bdyt-ending.html",[],function(){return'<div class="bdyt bdyt-ending">\n    <div class="bdyt-ending-wrap">\n        <a href="##" class="bdyt-ending-btn-close" act_name="close"></a>\n        <div class="bdyt-ending-left">\n            <div class="bdyt-ending-head-wrap">\n                <h3 class="title"><%= page_title%></h1>\n                <h3 class="heading">已阅读完毕</h1>\n            </div>\n            <ul class="bdyt-ending-img-list">\n                <% _.each(data,function(value,key,list){ %>\n                <% if(key>=1 &&key<3){%>\n                <li class="bdyt-ending-img-item">\n                <a href="##" class="bdyt-ending-img-big" act_name="gallery" clk_pos="<%=key%>">\n                    <img src="<%= value.thumbnail_url %>" bdyt_gallery_id="<%= value.gallery_id %>" bdyt_page_url="<%= value.page_url %>" bdyt_rele_type = "<%= value.rele_type %>" title="<%= value.page_title %>"/>\n                    <span class="bdyt-ending-img-mask"><%= value.page_title %></span>\n                </a>\n                </li>\n                <%}%>\n                <% if(key>=3 &&key<6){%>\n                <li class="bdyt-ending-img-item">\n                <a href="##" class="bdyt-ending-img-medium" act_name="gallery" clk_pos="<%=key%>">\n                    <img src="<%= value.thumbnail_url %>" bdyt_gallery_id="<%= value.gallery_id %>" bdyt_page_url="<%= value.page_url %>" bdyt_rele_type = "<%= value.rele_type %>" title="<%= value.page_title %>"/>\n                    <span class="bdyt-ending-img-mask"><%= value.page_title %></span>\n                </a>\n                </li>\n                <%}%>\n                <% }) %>\n            </ul>\n        </div>\n        <div class="bdyt-ending-right">\n            <li class=" bdyt-ending-review">\n            <a href="##" class=" bdyt-ending-btn" act_name="review">重新浏览</a>\n            </li>\n            <%value = data[0]%>\n            <li class="bdyt-ending-img-last">\n            <a href="##" class="bdyt-ending-img-item" act_name="next" clk_pos="0">\n                <img src="<%= value.thumbnail_url %>" bdyt_gallery_id="<%= value.gallery_id %>" bdyt_page_url="<%= value.page_url %>" bdyt_rele_type = "<%= value.rele_type %>" title="<%= value.page_title %>"/>\n                <span class="bdyt-ending-img-mask"><%= value.page_title %></span>\n                <span class="bdyt-ending-btn bdyt-ending-next ">下一图集</span>\n            </a>\n            </li>\n        </div>\n    </div>\n</div>\n'}),bdyt_define("css!css-style/bdyt-ending-sprite",[],function(){}),bdyt_define("views/bdyt-ending",["jquery","underscore","backbone","utils/template-helper","utils/css-helper","utils/detail-slide","text!template/bdyt-ending.html","css!css-style/bdyt-ending-sprite.css"],function(e,t,n,r,i,s,o){r.createTplElem("tpl-bdyt-ending",o);var u=n.View.extend({el:e(".bdyt-layer"),events:{},page_id:"ending",mod_id:"ending",log_id:0,third_id:0,initialize:function(){window.bdYuntu.events.on("bdyt-ending:render",this.render,this),window.bdYuntu.events.on("bdyt-ending:resize",this.resize,this),window.bdYuntu.events.on("bdyt-ending:review",this.review,this),window.bdYuntu.events.on("bdyt-ending:next",this.next,this),this.bindEvent()},last_data:{},resize:function(){var t=e(".bdyt-ending");t&&t.css({width:e(window).width(),height:e(window).height()})},addClickLog:function(t){t=e(t);var n=this,r={},i=["site_id","page_id","mod_id","third_id","log_id","act_name","clk_pos","act_type","bdyt_gallery_id","bdyt_rele_type"],s=function(e){var r=t.attr(e)||t.find("["+e+"]").attr(e)||n[e]||window.bdYuntu.globalLog[e];return r};e(i).each(function(e,t){var n=s(t);r[t]=n}),e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/clicklog",data:r,dataType:"jsonp"})},add:function(n,r){var i=e(t.template(e("#tpl-bdyt-ending").html(),n));if(!(i.length>0)){var s=e(".bdyt-ending");s.length>0&&s.detach();var o=r.last_data;return window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:o.page_url,gallery_id:o.gallery_id,img_url:o.thumbnail_url}),!0}e("body").append(i),e(".bdyt-ending").css({width:e(window).width(),height:e(window).height()}),r.last_data=n.data[0]},bindEvent:function(){var t=this;e(document).delegate(".bdyt-ending a","mousedown",function(n){n.preventDefault(),t.addClickLog(e(this))}),e(document).delegate(".bdyt-ending-btn-close","click",function(t){t.preventDefault(),e(".bdyt-ending").detach(),window.bdYuntu.endingShowNext=!0}),e(document).delegate(".bdyt-ending-review a","click",function(t){t.preventDefault(),e(".bdyt-ending").detach(),window.bdYuntu.events.trigger("bdyt-layer-main:renderFirst")}),e(document).delegate(".bdyt-ending-img-item","click",function(t){t.preventDefault(),e(".bdyt-ending").detach();var n=e(this).find("img");window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:n.attr("bdyt_page_url"),gallery_id:n.attr("bdyt_gallery_id"),img_url:n.attr("src")})})},review:function(t){e(".bdyt-ending").detach(),window.bdYuntu.events.trigger("bdyt-layer-main:renderFirst")},next:function(t){var n=e(".bdyt-ending-img-last").find("img");e(".bdyt-ending").detach(),window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:n.attr("bdyt_page_url"),gallery_id:n.attr("bdyt_gallery_id"),img_url:n.attr("src")})},render:function(t){var n=this;this.log_id=new Date/1,this.third_id=t.third_id,t.site_id=window.bdYuntu.globalLog.site_id,t.page_id=this.page_id,t.mod_id=this.mod_id,t.log_id=this.log_id;if(window.bdYuntu.endingShowNext){var r=e(".bdyt-ending");r.length>0&&r.detach();var i=this.last_data;return window.bdYuntu.events.trigger("bdyt-layer:render",{page_url:i.page_url,gallery_id:i.gallery_id,img_url:i.thumbnail_url}),!0}e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/getimgsetmin",data:t,dataType:"jsonp",success:function(e,r){if(e.data&&e.data.length>=6){e.page_title=t.page_title;for(var i in e.data)e.data[i].fruit_type==2&&e.data.splice(i,1);var s=n.add(e,n)}}})}});return u}),bdyt_define("utils/log",[],function(){function e(e){var t="_rpLog-"+(new Date).getTime(),n=new Image;window[t]=n,n.onload=n.onerror=function(){window[t]=null},n.src=e+"&_="+t,n=null}function t(e,t){var n=e||{},r;for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function n(n,r,i){var s={},o=s,u=[],a,f=n;f.charAt(f.length-1)!=="?"&&(f+="?");for(var l=1,c=arguments.length;l<c;l++)Object.prototype.toString.call(arguments[l])==="[object Object]"&&(o=t(o,arguments[l]));for(var a in o)u.push(a+"="+o[a]);e(f+u.join("&")),Object.prototype.toString.call(arguments[arguments.length-1])==="[object Function]"&&arguments[arguments.length-1].call()}return{send:n}}),bdyt_define("log/bdyt-layer",["jquery","utils/log"],function(e,t){function s(){var t=window.bdYuntu.collections.bdytLayerMain.toJSON()[0]&&window.bdYuntu.collections.bdytLayerMain.toJSON()[0].data.gallery_id||0;return{bdyt_rele_type:"",bdyt_img_id:e(".bdyt-layer-main-bd-list-item").attr("data-img-id"),bdyt_gallery_id:t,log_id:window.bdYuntu.layerLogId}}var n={page_id:"layer"},r=window.bdYuntu.globalLog,i=window.bdYuntu.logUrl;return e("body").on("click",".bdyt-layer-main-hd-tool-download",function(o){var u=e(this).attr("href");t.send(i,r,n,s(),{mod_id:"layer_hd",act_name:"download",clk_url:encodeURIComponent(u)})}),{send:function(e){t.send(i,r,n,s(),e)}}}),bdyt_define("text!template/bdyt-layer.html",[],function(){return'    <div class="bdyt-layer-bd">\r\n        <div class="bdyt-layer-main-wrap">\r\n            <div class="bdyt-layer-main">\r\n                <div class="bdyt-layer-main-hd">\r\n                    <div class="bdyt-layer-main-hd-tool">\r\n                        <!-- <a href="#" class="bdyt-layer-main-hd-tool-share bds_more">分享</a> -->\r\n                        <a href="" target="_blank" class="bdyt-layer-main-hd-tool-download" download>下载</a>\r\n                        <a href="" target="_blank" class="bdyt-layer-main-hd-tool-ori" mod_id="layer_hd">查看原文<span class="bdyt-layer-simsun">&gt;&gt;</span></a>\r\n                    </div>\r\n                    <h2 class="bdyt-layer-main-hd-title">\r\n                        <a class="bdyt-layer-main-hd-title-link" mod_id="layer_hd" href="" title="" target="_blank"></a>\r\n                    </h2>\r\n                </div>\r\n                <div class="bdyt-layer-main-bd">\r\n                        <!--<a class="bdyt-layer-main-bd-list-prev"></a>\r\n                        <a class="bdyt-layer-main-bd-list-next"></a>-->\r\n                    <ul class="bdyt-layer-main-bd-list">\r\n                    </ul>\r\n                    <div class="bdyt-layer-main-bd-detail">\r\n                    </div>\r\n                    <div class="bdyt-layer-main-bd-pagger-wrapper-prev bdyt-layer-main-bd-pagger-wrapper">\r\n                        <a href="#" class="bdyt-layer-main-bd-prev"></a>\r\n                        <a href="#" class="bdyt-layer-main-bd-tip bdyt-layer-main-bd-tip-prev">上一图集</a>\r\n                    </div>\r\n                    <div class="bdyt-layer-main-bd-pagger-wrapper-next bdyt-layer-main-bd-pagger-wrapper">\r\n                        <a href="#" class="bdyt-layer-main-bd-next"></a>\r\n                        <a href="#" class="bdyt-layer-main-bd-tip bdyt-layer-main-bd-tip-next">下一图集</a>\r\n                    </div>\r\n                </div>\r\n                <div class="bdyt-layer-main-ft">\r\n                    <div class="bdyt-layer-main-ft-list-wrap">\r\n                        <div class="bdyt-layer-main-ft-list-wrap-inner">\r\n                            <ul class="bdyt-layer-main-ft-list"></ul>\r\n                        </div>\r\n                    </div>\r\n                    <a href="#" class="bdyt-layer-main-ft-prev"></a>\r\n                    <a href="#" class="bdyt-layer-main-ft-next"></a>\r\n                    <a href="#" class="bdyt-layer-main-ft-switch"></a>\r\n                </div>\r\n                <div id="bdyt-layer-main-ad"></div>\r\n            </div>\r\n        </div>\r\n        <div class="bdyt-layer-sidebar">\r\n            <div class="bdyt-layer-sidebar-rec">\r\n                <div class="bdyt-layer-sidebar-rec-title">推荐图集</div>\r\n                <ul class="bdyt-layer-sidebar-rec-list"></ul>\r\n                <div class="bdyt-layer-sidebar-rec-pager"></div>\r\n            </div>\r\n            <div class="bdyt-layer-sidebar-hot-rec"></div>\r\n            <div id="bdyt-layer-sidebar-ad" ></div>\r\n            <a href="http://yuntu.baidu.com" target="_blank" class="bdyt-layer-sidebar-rec-link">百度云图强力驱动</a>\r\n        </div>\r\n    </div>\r\n    <a href="#" class="bdyt-layer-close"></a>\r\n    <script src="http://tuijian.yuntu.baidu.com/static/yuntu-ad/loader.js" id="bdyt_ad_js"></script>\r\n'}),bdyt_define("text!template/bdyt-layer-sidebar-hot-rec.html",[],function(){return'<div class="bdyt-layer-hot-top"></div>\n<div class="bdyt-layer-sidebar-hot-top">今日热图</div>\n\n<% _.each(data,function(value,key,list){ %>\n<%key++;%>\n<div class="bdyt-layer-sidebar-hot-rec-<%= key %>" num="<%= key%>">\n    <a target="_blank" href="<%= value.page_url%>">\n        <img src="<%= value.thumbnail_url%>" class="bdyt-layer-sidebar-hot-img-<%= key%> <%if(key == 1){%>down<%}%>" clk_pos="<%= key%>" act_name="hot_img" mod_id="layer_sidebar_img_search"/>\n    </a>\n    <div class="bdyt-hot-num-<%= key%>"></div>\n    <a target="_blank" class="bdyt-layer-sidebar-hot-title-<%= key%>" num="<%= key%>" href="<%= value.page_url%>" clk_pos="<%= key%>" act_name="hot_img" mod_id="layer_sidebar_img_search"><%= value.page_title%></a>\n</div>\n<% }) %>\n<div class="bdyt-layer-hot-bottom"></div>\n'}),bdyt_define("utils/img-helper",[],function(){function e(e,t,n){e.length&&(e=e[0]);var r=t/e.offsetWidth,i=n/e.offsetWidth,s;r<1&&i<1&&(s=Math.max(r,i),e.style.width=e.offsetWidth*s+"px",e.style.height=e.offsetHeight*s+"px"),e.style.marginTop=(n-e.offsetHeight)/2+"px",e.style.marginLeft=(t-e.offsetWidth)/2+"px"}function t(e,t,n){e.length&&(e=e[0]);var r=e.offsetWidth/e.offsetHeight,i=t/n;if(e.offsetWidth>t||e.offsetHeight>n)r>i?(e.style.height=n+"px",e.style.width=n*r+"px"):(e.style.width=t+"px",e.style.width=t/r+"px");e.style.marginTop=(n-e.offsetHeight)/2+"px",e.style.marginLeft=(t-e.offsetWidth)/2+"px"}function n(e,t,n){e.length&&(e=e[0]);var r=e.offsetWidth/e.offsetHeight,i=t/n;if(e.offsetWidth>t||e.offsetHeight>n)r>i?(e.style.width=t+"px",e.style.height=t/r+"px"):(e.style.height=n+"px",e.style.width=n*r+"px");e.style.marginTop=(n-e.offsetHeight)/2+"px",e.style.marginLeft=(t-e.offsetWidth)/2+"px"}return{fillImg:e,coverImg:t,containImg:n}}),bdyt_define("collections/bdyt-layer-main",["underscore","backbone"],function(e,t){var n=t.Collection.extend({sync:function(e,n,r){return r.timeout=1e4,r.dataType="jsonp",t.sync(e,n,r)},getData:function(){return this.toJSON()[0]?this.toJSON()[0].data:{}},getList:function(){var e=this.getData();return e.img_list||[]},setListItemNum:function(){var t=this;e.each(this.getList(),function(e,n,r){t.getList()[n].num=n+1})},getListItem:function(e){return this.getList()[e-1]},getListLength:function(){return this.getList().length},getListLastImgUrl:function(){return this.getList()[this.getListLength()-1].img_url},getListImgUrl:function(e){return this.getList()[e-1].img_url},getPageUrl:function(e){var t="";return e==0?(t=this.getData().page_url,encodeURIComponent(t)):(t=this.getListItem(e).page_url||this.toJSON()[0].data.page_url||"",t)},getFruitType:function(){return this.getData().fruit_type||1},getRid:function(){return this.getData().rid||"0"},getPageTitle:function(){return this.getData().page_title||""},getGalleryId:function(){return this.getData().gallery_id||""},getImgNum:function(){return this.getData().img_num||0}});return n}),bdyt_define("text!template/bdyt-layer-main-bd-list-item.html",[],function(){return'<li class="bdyt-layer-main-bd-list-item" data-num="<%= num %>" data-img-id="<%= img_id %>">\r\n    <img src="<%= display_img_url||img_url %>" alt="" data-ori-width="<%= img_width %>" data-ori-height="<%= img_height %>" style="width:<%= img_width %>px;height:<%= img_height %>px;" class="bdyt-layer-main-bd-list-item-img" title="查看原文">\r\n</li> \r\n'}),bdyt_define("text!template/bdyt-layer-main-bd-detail.html",[],function(){return'<div class="bdyt-layer-main-bd-detail-content">\r\n    <span class="bdyt-layer-main-bd-detail-num-current"><%= num %></span>/<span class="bdyt-layer-main-bd-detail-num-all"><%= length %></span>\r\n    <span><%= content_txt||page_title%></span>\r\n    <% if(fruit_type == 2){%>\r\n        <a href="<%= page_url%>" rid="<%= rid%>" target="_blank" class="bdyt-layer-main-bd-detail-ad-link" mod_id="layer_ft" fruit_type="<%= fruit_type%>">去看看</a>\r\n    <%}%>\r\n    <% if(fruit_type != 2){%>\r\n        <a href="<%= page_url%>" rid="<%= rid%>" target="_blank" class="bdyt-layer-main-bd-detail-src-article" mod_id="layer_ft">查看原文>></a>\r\n    <%}%>\r\n</div>\r\n'}),bdyt_define("text!template/bdyt-layer-main-ft-list-item.html",[],function(){return'<% for(var i = 0; i < length; i++) { %>\r\n    <li class="bdyt-layer-main-ft-list-item<% if( i+1 == num) { %> bdyt-layer-main-ft-list-item-current<% } %>" data-num="<%= i+1 %>">\r\n        <a href="#" title="" class="bdyt-layer-main-ft-list-link" data-num="<%= i+1 %>" data-img-id="<%= img_list[i].img_id%>">\r\n            <!--<div class="<% if( i+1 != num) { %> bdyt-layer-main-ft-list-float<% } %>"></div>-->\r\n            <img src="<%= img_list[i].thumbnail_url%>" alt="">\r\n        </a>\r\n    </li>\r\n<% } %>\r\n<% if( gallery_num < rec_list_len ){%>\r\n    <li class="bdyt-layer-main-ft-list-item bdyt-layer-main-ft-list-item-add" data-num="<%= newLength %>">\r\n        <a href="#" class="bdyt-layer-main-ft-list-item-next-link" title="" data-num="<%= newLength %>">\r\n            <span class="bdyt-layer-main-ft-list-item-next">下一图集</span>\r\n            <img class="bdyt-layer-main-ft-list-item-next-img" src="" alt="">\r\n        </a>\r\n    </li>\r\n<% } %>\r\n'}),bdyt_define("text!template/bdyt-layer-main-bd-list.html",[],function(){return'<ul id="bdyt-layer-main-bd-list" class="bdyt">\r\n    <% _.each(data,function(value,index,list){ %>\r\n    <li class="bdyt-layer-main-bd-list-item" data-num="<%= value.num %>" data-img-id="<%= value.img_id %>">\r\n        <a class="bdyt-layer-main-bd-list-item-link" data-ori-width="<%= value.img_width %>" data-ori-height="<%= value.img_height %>" style="width:<%= value.img_width %>px; height:<%= value.img_height %>px;">\r\n                <!--植入广告"推广"图标-->\r\n                <% if(fruit_type == 2){%>\r\n                    <span class="bdyt-ad-icon" img_id="<%= value.img_id%>"> 推广 </span>\r\n                <%}%>\r\n                <img org-src="<%= value.display_img_url||value.img_url %>" alt=""  class="bdyt-layer-main-bd-list-item-img" src-title="查看原文"/ href="<%= value.page_url||page_url%>" mod_id="layer_bd" rid="<%= rid%>" fruit_type="<%= fruit_type%>">\r\n        </a>\r\n    </li> \r\n    <% }) %>\r\n</ul>\r\n'}),bdyt_define("views/bdyt-layer-main",["jquery","underscore","backbone","utils/template-helper","utils/img-helper","utils/css-helper","log/bdyt-layer","collections/bdyt-layer-main","text!template/bdyt-layer-main-bd-list-item.html","text!template/bdyt-layer-main-bd-detail.html","text!template/bdyt-layer-main-ft-list-item.html","text!template/bdyt-layer-main-bd-list.html"],function(e,t,n,r,i,s,o,u,a,f,l,c){r.createTplElem("tpl-bdyt-layer-main-bd-list-item",a),r.createTplElem("tpl-bdyt-layer-main-bd-detail",f),r.createTplElem("tpl-bdyt-layer-main-ft-list-item",l),r.createTplElem("tpl-bdyt-layer-main-bd-list",c);var h=n.View.extend({el:".bdyt-layer-main",events:{"click .bdyt-layer-main-bd-prev,.bdyt-layer-main-bd-tip-prev,.bdyt-layer-main-bd-list-prev":"goPrevImg","click .bdyt-layer-main-bd-next,.bdyt-layer-main-bd-tip-next,.bdyt-layer-main-bd-list-next":"goNextImg","click .bdyt-layer-main-ft-list-link":"renderMainItemFromFt","click .bdyt-layer-main-ft-list-item-next-link":"freshMain","click .bdyt-layer-main-ft-prev":"ftListSlidePrev","click .bdyt-layer-main-ft-next":"ftListSlideNext","click .bdyt-layer-main-ft-switch":"switchFt","click .bdyt-layer-main-hd-tool-ori,.bdyt-layer-main-hd-title-link,.bdyt-layer-main-bd-list-item img,.bdyt-layer-main-bd-detail-ad-link,.bdyt-layer-main-bd-detail-src-article":"openSrcArticle","mousemove .bdyt-layer-main-bd-list-item-img":"showHoverTip","mouseleave .bdyt-layer-main-bd-list-item-img":"hideHoverTip"},ad_click:function(t){t&&t.preventDefault(),t&&t.stopPropagation();var n=e(t.currentTarget);return window.bdYuntu.ad_js2.ad_click({ad_id:n.attr("rid"),ad_url:encodeURIComponent(n.attr("href")),log_id:window.bdYuntu.layerLogId}),!1},ad_change:function(e){window.bdYuntu.ad_js2.ad_change({ad_id:e.attr("rid"),ad_url:encodeURIComponent(e.attr("href")),log_id:window.bdYuntu.layerLogId})},initialize:function(){var e=this;window.bdYuntu.events.off("bdyt-layer-main:renderNew"),window.bdYuntu.events.on("bdyt-layer-main:renderNew",this.renderNew,this),window.bdYuntu.events.off("bdyt-layer-main:renderFirst"),window.bdYuntu.events.on("bdyt-layer-main:renderFirst",this.renderFirst,this),window.bdYuntu.events.off("bdyt-layer-main:goNextImg"),window.bdYuntu.events.on("bdyt-layer-main:goNextImg",this.goNextImg,this),window.bdYuntu.events.off("bdyt-layer-main:goPrevImg"),window.bdYuntu.events.on("bdyt-layer-main:goPrevImg",this.goPrevImg,this),window.bdYuntu.events.off("bdyt-layer-main:removeKeybordTip"),window.bdYuntu.events.on("bdyt-layer-main:removeKeybordTip",this.removeKeybordTip,this),window.bdYuntu.events.off("bdyt-layer-main-bd-list-item:resizeBdImg"),window.bdYuntu.events.on("bdyt-layer-main-bd-list-item:resizeBdImg",this.resizeBdImg,this),window.bdYuntu.events.off("bdyt-layer-main:resizeLayerMain"),window.bdYuntu.events.on("bdyt-layer-main:resizeLayerMain",this.resizeLayerMain,this),window.bdYuntu.events.off("bdyt-layer-main-ft-list:renderPager"),window.bdYuntu.events.on("bdyt-layer-main-ft-list:renderPager",this.renderPager,this),window.bdYuntu.collections.bdytLayerMain=new u,this.collection=window.bdYuntu.collections.bdytLayerMain,this.setLayerMainBdHeight()},showNumLimit:9999999999999,ftItemWidth:95,bdDetailHeight:40,ajaxUrl:"http://tuijian.yuntu.baidu.com/yuntu/getimgsetmax",setLayerMainBdHeight:function(){var t=window.bdYuntu.css.layerWidth,n=window.bdYuntu.css.layerHeight,r;return r=n-e(".bdyt-layer-main-hd").height()-e(".bdyt-layer-main-ft").height(),s.createStyleElem("css-bdyt-layer-main-bd-wh",".bdyt-layer-main-bd{height:"+r+"px}"),this},resizeLayerMain:function(){this.setLayerMainBdHeight()},renderNew:function(n,r){var i=this;window.bdYuntu.endingShowNext=!1,setTimeout(function(){window.bdYuntu.status.mainFetchDone==0&&(window.bdYuntu.isBdSliding=!1)},1e3),this.collection.fetch({url:this.ajaxUrl+"?gallery_id="+n.gallery_id+"&img_id="+n.img_id+"&page_id=layer&mod_id=layer_bd&log_id="+window.bdYuntu.layerLogId+"&third_id="+window.bdYuntu.globalLog.third_id+"&site_id="+window.bdYuntu.globalLog.site_id}).complete(function(){window.bdYuntu.isBdSliding=!1,window.bdYuntu.status.mainFetchDone=!0;var s=r===undefined?i.collection.getImgNum():i.collection.getListLength();s||(s=1),n.isFromIndex&&(window.bdYuntu.firstImgNum=s),i.collection.setListItemNum();var o=i.collection.getList(),u=i.collection.getPageUrl(0),a=i.collection.getFruitType(),f=i.collection.getRid(),l=i.collection.getListImgUrl(1),c={data:o,page_url:u,fruit_type:a,rid:f},h=e("#bdyt-layer-main-bd-list");h.length>0&&h.remove();var p=t.template(e("#tpl-bdyt-layer-main-bd-list").html(),c);e("body").append(p),i.render(s),window.bdYuntu.ad_js4&&window.bdYuntu.ad_js4.renderNew({log_id:window.bdYuntu.layerLogId,page_url:u,img_url:l})})},getCookie:function(e){var t=document.cookie.split("; ");for(var n=0;n<t.length;n++){var r=t[n].split("=");if(r[0]==e)return unescape(r[1])}},addCookie:function(e,t,n,r,i){var s=e+"="+escape(t);if(n!=""){var o=new Date;o.setTime(o.getTime()+n*24*3600*1e3),s+=";expires="+o.toGMTString()}r!=""&&(s+=";path="+r),i!=""&&(s+=";domain="+i),document.cookie=s},delCookie:function(e){var t=new Date;t.setTime(t.getTime()-1e4),document.cookie=e+"=a; expires="+t.toGMTString()},checkIfDispKeybordTip:function(){var e=Boolean(this.getCookie("bdyt_keybord_tip"));return e},renderKeybordTip:function(){var t=e(".bdyt-layer-main-bd-key-tip"),n=this;if(t.length>0)return!1;var r=e('<span class="bdyt-layer-main-bd-key-tip">用键盘试试:)</span>');e(".bdyt-layer-main-bd-pagger-wrapper-next").append(r),r.fadeIn(300),setTimeout(function(){n.removeKeybordTip()},5e3)},removeKeybordTip:function(){var t=e(".bdyt-layer-main-bd-key-tip");t.length>0&&(t.fadeOut(300),this.addCookie("bdyt_keybord_tip",1,365,"/",""))},renderFirst:function(){window.bdYuntu.count.galleryNum=0,this.renderNew({gallery_id:window.bdYuntu.firstGalleryId,img_id:window.bdYuntu.firstImgId,img_num:window.bdYuntu.firstImgNum})},render:function(e){var e=e||1;this.renderBdItem(e),window.bdYuntu.status.sidebarFetchDone&&window.bdYuntu.events.trigger("bdyt-layer-sidebar-rec-list:render",{itemNum:window.bdYuntu.count.galleryNum})},renderTitle:function(){return e(".bdyt-layer-main-hd-title a").html(this.collection.getPageTitle()),this},renderUrl:function(t){return e(".bdyt-layer-main-hd-tool-ori").attr("href",this.collection.getPageUrl(t)),e(".bdyt-layer-main-hd-tool-ori").attr("rid",this.collection.getRid()),e(".bdyt-layer-main-hd-tool-ori").attr("fruit_type",this.collection.getFruitType()),e(".bdyt-layer-main-hd-title a").attr("href",this.collection.getPageUrl(t)),e(".bdyt-layer-main-hd-title a").attr("rid",this.collection.getRid()),e(".bdyt-layer-main-hd-title a").attr("fruit_type",this.collection.getFruitType()),e(".bdyt-layer-main-hd-tool-download").attr("href",this.collection.getListImgUrl(t)),this},showHoverTip:function(t){t.preventDefault();var n=t.clientY,r=t.clientX;e("#bdyt_mouse_hover_tip").html(e(t.target).attr("src-title")),e("#bdyt_mouse_hover_tip").css({top:n+10,left:r+10}),e("#bdyt_mouse_hover_tip").show()},hideHoverTip:function(t){e("#bdyt_mouse_hover_tip").hide()},showPN:function(t){var n=this;t.preventDefault();var r=e(".bdyt-layer-main-bd").css("width"),i=parseInt(t.clientX),s=parseInt(Math.floor(parseInt(r)/2));i<=s?e(".bdyt-layer-main-bd-list").css("cursor","help"):e(".bdyt-layer-main-bd-list").css("cursor","move")},changeOpcaBig:function(t){t.preventDefault();var n=t.target;e(n).css("opacity","1")},changeOpcaLittle:function(t){t.preventDefault();var n=t.target;e(n).css("opacity","0.5")},changeBackground:function(t){t.preventDefault();var n=t.currentTarget;e(n).css("background-color","rgba(0, 0, 0, 0.1)")},recoverBackground:function(t){t.preventDefault();var n=t.currentTarget;e(n).css("background-color","rgba(0,0,0,0.9)")},freshMain:function(e){e.preventDefault();var t=e.target;++window.bdYuntu.count.galleryNum;var n=window.bdYuntu.collections.bdytLayerSidebarRecList.getListGalleryId(window.bdYuntu.count.galleryNum);this.renderNew({gallery_id:n});var r=e.currentTarget.getAttribute("data-num"),i=e.currentTarget.getAttribute("data-img-id");o.send({mod_id:"layer_ft",act_name:"next_gallery_clk",clk_pos:r})},renderBdItem:function(t){var t=t||1;this.renderTitle(t),this.renderUrl(t),++window.bdYuntu.count.showedNum,this.renderBdItemImg(t),this.renderBdIntro(t),this.renderPager(t);var n=this.collection.getPageUrl(0),r=this.collection.getListImgUrl(t);window.bdYuntu.ad_js3&&window.bdYuntu.ad_js3.renderNew({log_id:window.bdYuntu.layerLogId,page_url:n,img_url:r});var i=+e(".bdyt-layer-main-bd-list-item").attr("data-num");return window.bdYuntu.count.galleryNum==0&&i==1?e(".bdyt-layer-main-bd-pagger-wrapper-prev").hide():e(".bdyt-layer-main-bd-pagger-wrapper-prev").show(),e(".bdyt-layer-main-bd-tip").hide(),i==this.collection.getListLength()&&e(".bdyt-layer-main-bd-tip-next").show(),i==1&&window.bdYuntu.count.galleryNum!=0&&e(".bdyt-layer-main-bd-tip-prev").show(),this},getImgItemDom:function(t){t--;var n={},r={},i="";for(var s=t-2;s<=t+2;s++){n=e("#bdyt-layer-main-bd-list li")[s];if(typeof n=="undifined")continue;r=e(n).find("img"),r.length>0&&!r.attr("src")&&(i=r.attr("org-src"),r.attr("src",i))}var o=e("#bdyt-layer-main-bd-list li")[t],u=e(o).clone(!0);return u.insertAfter(o),o},renderBdItemImg:function(t){var n=this.getImgItemDom(t);e(".bdyt-layer-main-bd-list").html(n),this.containImg(),e(n).find(".bdyt-ad-icon").length>0&&this.ad_change(e(n).find("img"));if(e(n).find(".bdyt-ad-icon").length>0)return this},resizeBdImg:function(){var t=e(".bdyt-layer-main-bd-list-item").attr("data-num"),n=this.getImgItemDom(t);return e(".bdyt-layer-main-bd-list").html(n),this.containImg(),this},containImg:function(){i.containImg(e(".bdyt-layer-main-bd-list-item-link"),e(".bdyt-layer-main-bd-list-item").width(),e(".bdyt-layer-main-bd-list-item").height()-this.bdDetailHeight)},renderBdIntro:function(n){var r=this.collection.getListItem(n),i=t.extend({},r,{page_title:this.collection.getPageTitle(),length:this.collection.getListLength(),fruit_type:this.collection.getFruitType(),rid:this.collection.getRid()}),s=t.template(e("#tpl-bdyt-layer-main-bd-detail").html(),i);return e(".bdyt-layer-main-bd-detail").html(s),this},renderPager:function(n){var r=window.bdYuntu.count.galleryNum,i=r+1,n=n||+e(".bdyt-layer-main-bd-list-item").attr("data-num"),o=+this.collection.getListLength(),u=o+1,a=window.bdYuntu.collections.bdytLayerSidebarRecList&&window.bdYuntu.collections.bdytLayerSidebarRecList.getListLength()||12,f={img_list:this.collection.getList(),length:o,num:n,newLength:u,gallery_num:r,rec_list_len:a};o+=1;var l=e(".bdyt-layer-main-ft").width()-e(".bdyt-layer-main-ft-prev").width()-e(".bdyt-layer-main-ft-next").width(),c=o*this.ftItemWidth,h=Math.floor(l/this.ftItemWidth);window.bdYuntu.count.ftFullShowNum=h;var p=Math.ceil(l/this.ftItemWidth);window.bdYuntu.count.ftInSightNum=p;var d=Math.round(h/2),v=d;d>o&&(v=o);var m=h-v;s.createStyleElem("css-bdyt-layer-main-ft-list",".bdyt-layer-main-ft-list{width:"+c+"px;}");var g=t.template(e("#tpl-bdyt-layer-main-ft-list-item").html(),f);e(".bdyt-layer-main-ft-list").html(g);var y=window.bdYuntu.collections.bdytLayerSidebarRecList&&window.bdYuntu.collections.bdytLayerSidebarRecList.getListItem(i);return y&&window.bdYuntu.count.galleryNum+1<=a&&(window.bdYuntu.collections&&window.bdYuntu.status.sidebarFetchDone?e(".bdyt-layer-main-ft-list-item-next-img").attr("src",y.first_thumbnail_url||y.thumbnail_url):setTimeout(function(){window.bdYuntu.collections&&window.bdYuntu.status.sidebarFetchDone&&e(".bdyt-layer-main-ft-list-item-next-img").attr("src",y.first_thumbnail_url||y.thumbnail_url)},300)),o>h?n>v&&n<o-m?e(".bdyt-layer-main-ft-list").css({"margin-left":-this.ftItemWidth*(n-v)}):n>=o-m?e(".bdyt-layer-main-ft-list").css({"margin-left":-c+l+11}):e(".bdyt-layer-main-ft-list").css({"margin-left":0}):e(".bdyt-layer-main-ft-list").css({"margin-left":0}),this.checkFtListSlideDisable(),this},goPrevImg:function(t){t&&t.preventDefault(),this.checkIfDispKeybordTip()||this.renderKeybordTip();if(window.bdYuntu.isBdSliding)return;var n=+e(".bdyt-layer-main-bd-list-item").attr("data-num"),r=n-1;if(n<=1){if(window.bdYuntu.count.galleryNum>1){--window.bdYuntu.count.galleryNum;var i=window.bdYuntu.collections.bdytLayerSidebarRecList.getListGalleryId(window.bdYuntu.count.galleryNum);window.bdYuntu.isBdSliding=!0,this.renderNew({gallery_id:i},!0)}else{if(window.bdYuntu.count.galleryNum!==1)return;--window.bdYuntu.count.galleryNum,window.bdYuntu.isBdSliding=!0,this.renderNew({gallery_id:window.bdYuntu.firstGalleryId,img_id:window.bdYuntu.firstImgId},!0)}o.send({mod_id:"layer_bd",act_name:"turn",act_type:"left"})}else this.renderBdItem(n-1),o.send({mod_id:"layer_bd",act_name:"turn",act_type:"left",clk_pos:r})},goNextImg:function(t){t&&t.preventDefault(),this.checkIfDispKeybordTip()||this.renderKeybordTip();if(window.bdYuntu.isBdSliding)return;var n=+e(".bdyt-layer-main-bd-list-item").attr("data-num"),r=n+1;if(n<this.collection.getListLength())this.renderBdItem(n+1),o.send({mod_id:"layer_bd",act_name:"turn",act_type:"right",clk_pos:r});else{if(window.bdYuntu.count.showedNum<=this.showNumLimit)if(window.bdYuntu.count.galleryNum+1<=window.bdYuntu.collections.bdytLayerSidebarRecList.getListLength()){++window.bdYuntu.count.galleryNum;var i=window.bdYuntu.collections.bdytLayerSidebarRecList.getListGalleryId(window.bdYuntu.count.galleryNum);window.bdYuntu.isBdSliding=!0,this.renderNew({gallery_id:i})}else e(".bdyt-ending").length||window.bdYuntu.events.trigger("bdyt-ending:render",{img_url:this.collection.getListLastImgUrl(),page_url:this.collection.getPageUrl(n),page_title:this.collection.getPageTitle(),third_id:window.bdYuntu.globalLog.third_id});else window.bdYuntu.count.showedNum=0;o.send({mod_id:"layer_bd",act_name:"turn",act_type:"right"})}},renderMainItemFromFt:function(e){e.preventDefault();var t=+e.currentTarget.getAttribute("data-num"),n=e.currentTarget.getAttribute("data-img-id");o.send({mod_id:"layer_ft",act_name:"img",clk_pos:t,bdyt_img_id:n}),this.renderBdItem(t)},ftListSlidePrev:function(t){t.preventDefault(),o.send({mod_id:"layer_ft",act_name:"turn",act_type:"left"});var n=this;if(this.collection.getListLength()>window.bdYuntu.count.ftFullShowNum&&!window.bdYuntu.isFtSliding){var r=parseInt(e(".bdyt-layer-main-ft-list").css("margin-left")),i=e(".bdyt-layer-main-ft-list-wrap-inner").width(),i=e(".bdyt-layer-main-ft-list-wrap").width()-e(".bdyt-layer-main-ft-prev").width()-e(".bdyt-layer-main-ft-next").width(),s=e(".bdyt-layer-main-ft-list").width(),u;r==-(s-i-11)?u=Math.min(0,-(this.collection.getListLength()-window.bdYuntu.count.ftFullShowNum*2)*this.ftItemWidth):u=Math.min(0,r+window.bdYuntu.count.ftFullShowNum*this.ftItemWidth),window.bdYuntu.isFtSliding=!0,e(".bdyt-layer-main-ft-list").animate({"margin-left":u},400,function(){window.bdYuntu.isFtSliding=!1,n.checkFtListSlideDisable()})}},ftListSlideNext:function(t){t.preventDefault(),o.send({mod_id:"layer_ft",act_name:"turn",act_type:"right"});var n=this;if(this.collection.getListLength()>window.bdYuntu.count.ftFullShowNum&&!window.bdYuntu.isFtSliding){var r=parseInt(e(".bdyt-layer-main-ft-list").css("margin-left")),i=e(".bdyt-layer-main-ft-list-wrap-inner").width(),i=e(".bdyt-layer-main-ft-list-wrap").width()-e(".bdyt-layer-main-ft-prev").width()-e(".bdyt-layer-main-ft-next").width(),s=e(".bdyt-layer-main-ft-list").width(),u=Math.max(-(s-i-11),r-window.bdYuntu.count.ftFullShowNum*this.ftItemWidth);window.bdYuntu.isFtSliding=!0,e(".bdyt-layer-main-ft-list").animate({"margin-left":u},400,function(){window.bdYuntu.isFtSliding=!1,n.checkFtListSlideDisable()})}},checkFtListSlideDisable:function(){e(".bdyt-layer-main-ft-prev").removeClass("bdyt-layer-main-ft-prev-disable"),e(".bdyt-layer-main-ft-next").removeClass("bdyt-layer-main-ft-next-disable");var t=parseInt(e(".bdyt-layer-main-ft-list").css("margin-left")),n=e(".bdyt-layer-main-ft-list-wrap-inner").width(),n=e(".bdyt-layer-main-ft-list-wrap").width()-e(".bdyt-layer-main-ft-prev").width()-e(".bdyt-layer-main-ft-next").width(),r=e(".bdyt-layer-main-ft-list").width();this.collection.getListLength()<=window.bdYuntu.count.ftFullShowNum&&(e(".bdyt-layer-main-ft-prev").addClass("bdyt-layer-main-ft-prev-disable"),e(".bdyt-layer-main-ft-next").addClass("bdyt-layer-main-ft-next-disable")),t==0&&e(".bdyt-layer-main-ft-prev").addClass("bdyt-layer-main-ft-prev-disable"),t==-(r-n-11)&&e(".bdyt-layer-main-ft-next").addClass("bdyt-layer-main-ft-next-disable")},openSrcArticle:function(t){t&&t.preventDefault();var n=e(t.target);if(n.attr("fruit_type")==2)return this.ad_click(t);var r=n.attr("href"),i=n.attr("mod_id");o.send({mod_id:i,clk_url:encodeURIComponent(r),act_name:"src_article"}),window.open(r)},switchFt:function(t){t&&t.preventDefault();var n=e(t.target);n.hasClass("bdyt-layer-main-ft-switch-close")?(o.send({mod_id:"layer_ft",act_name:"turn",act_type:"up"}),n.removeClass("bdyt-layer-main-ft-switch-close"),e(".bdyt-layer-main-ft").add(".bdyt-layer-main-ft-next").add(".bdyt-layer-main-ft-prev").css({height:"100px"}),e(".bdyt-layer-main-ft-list-wrap").height("100%"),this.setLayerMainBdHeight(),this.containImg()):(o.send({mod_id:"layer_ft",act_name:"turn",act_type:"down"}),n.addClass("bdyt-layer-main-ft-switch-close"),e(".bdyt-layer-main-ft").add(".bdyt-layer-main-ft-list-wrap").add(".bdyt-layer-main-ft-next").add(".bdyt-layer-main-ft-prev").css({height:"0"}),this.setLayerMainBdHeight(),this.containImg())}});return h}),bdyt_define("text!template/bdyt-layer-sidebar-rec-item.html",[],function(){return'<% for(var i = 0; i < length; i++) { %>\r\n    <li class="bdyt-layer-sidebar-rec-item<% if(listData[i].num==currentItemNum) {%> bdyt-layer-sidebar-rec-item-current<% } %>">\r\n    <a href="#" class="bdyt-layer-sidebar-rec-item-link"  data-gallery-id="<%= listData[i].gallery_id %>" data-num="<%= listData[i].num %>" data-rele-type="<%= listData[i].rele_type %>">\r\n        <!--植入广告"推广"图标-->\r\n        <!--\r\n        <% if(listData[i].fruit_type == 2){%>\r\n        <span class="bdyt-ad-icon"> 推广 </span>\r\n        <%}%>\r\n        -->\r\n        <img src="<%= listData[i].thumbnail_url %>" alt="<%= listData[i].page_title %>" class="bdyt-layer-sidebar-rec-item-img" data-img-id="<%= listData[i].img_id %>">\r\n        <div class="bdyt-layer-sidebar-rec-item-title" src-title="<%= listData[i].page_title %>">\r\n                <p class="bdyt-layer-sidebar-rec-item-title-inner">\r\n                    <%= listData[i].page_title %>\r\n                </p>\r\n            </div>\r\n        </a>\r\n    </li>\r\n<% } %>\r\n'}),bdyt_define("text!template/bdyt-layer-sidebar-rec-pager-item.html",[],function(){return'<% if(allPageNum > 1) { %>\r\n    <% for(var i = 1; i <= allPageNum; i++) { %>\r\n        <a href="#" class="bdyt-layer-sidebar-rec-pager-item<% if(i==pageNum) {%> bdyt-layer-sidebar-rec-pager-item-current<% } %>" data-num="<%= i %>"><%= i %></a>\r\n    <% } %>\r\n<% } %>'}),bdyt_define("models/bdyt-layer-sidebar-rec-item",["backbone"],function(e){var t=e.Model.extend({defaults:{title:"",thumbnail_url:""}});return t}),bdyt_define("collections/bdyt-layer-sidebar-rec-list",["underscore","backbone","models/bdyt-layer-sidebar-rec-item"],function(e,t,n){var r=t.Collection.extend({model:n,sync:function(e,n,r){return r.timeout=1e4,r.dataType="jsonp",t.sync(e,n,r)},getData:function(){var e=[];this.toJSON()[0]?e=this.toJSON()[0].data:this.getimgsetmin_cache&&(e=this.getimgsetmin_cache);var t=[],n={};for(var r in e)n=e[r],n.fruit_type!=3&&t.push(n);return t},getList:function(){return this.getData()},getListLength:function(){var e=this.getData();return e.length},getListPerPage:function(t,n){var r=this,i=this.getListLength();return e.filter(this.getList(),function(e,r){var s=(t-1)*n+1,o=i>t*n?t*n:i;return r>=s-1&&r<=o-1})},getAllPageNum:function(e){return Math.ceil(this.getListLength()/e)},setListItemNum:function(){var t=this;e.each(this.getList(),function(e,n,r){t.getList()[n].num=n+1})},getListItem:function(e){var t=this.getList();if(t)return this.getList()[e-1]},getListGalleryId:function(e){return this.getListItem(e).gallery_id}});return r}),bdyt_define("views/bdyt-layer-sidebar-rec",["jquery","underscore","backbone","utils/template-helper","log/bdyt-layer","text!template/bdyt-layer-sidebar-rec-item.html","text!template/bdyt-layer-sidebar-rec-pager-item.html","collections/bdyt-layer-sidebar-rec-list"],function(e,t,n,r,i,s,o,u){r.createTplElem("tpl-bdyt-layer-sidebar-rec-item",s),r.createTplElem("tpl-bdyt-layer-sidebar-rec-pager-item",o);var a=n.View.extend({el:".bdyt-layer-sidebar-rec",events:{"click .bdyt-layer-sidebar-rec-item-link":"freshMain","click .bdyt-layer-sidebar-rec-pager-item":"freshSidebarRec"},initialize:function(){window.bdYuntu.events.off("bdyt-layer-sidebar-rec-list:render"),window.bdYuntu.events.on("bdyt-layer-sidebar-rec-list:render",this.render,this),window.bdYuntu.events.off("bdyt-layer-sidebar-rec-list:renderNew"),window.bdYuntu.events.on("bdyt-layer-sidebar-rec-list:renderNew",this.renderNew,this),window.bdYuntu.events.off("bdyt-layer-sidebar-rec-list:renderList"),window.bdYuntu.events.on("bdyt-layer-sidebar-rec-list:renderList",this.renderList,this),window.bdYuntu.collections.bdytLayerSidebarRecList=new u,this.collection=window.bdYuntu.collections.bdytLayerSidebarRecList},itemPerPage:4,ajaxUrl:"http://tuijian.yuntu.baidu.com/yuntu/getimgsetmin",renderNew:function(e){var t=this;return e.isFromIndex&&e.getimgsetmin_cache?(this.collection.getimgsetmin_cache=e.getimgsetmin_cache,window.bdYuntu.status.sidebarFetchDone=!0,t.render({itemNum:0,pageNum:1})):this.collection.fetch({url:this.ajaxUrl+"?page_url="+e.page_url+"&img_url="+encodeURIComponent(e.img_url)+"&page_id=layer&mod_id=layer_sidebar_rec&log_id="+window.bdYuntu.layerLogId+"&callback=?"+"&third_id="+window.bdYuntu.globalLog.third_id+"&site_id="+window.bdYuntu.globalLog.site_id}).complete(function(){window.bdYuntu.status.sidebarFetchDone=!0,t.render({itemNum:0,pageNum:1})}),this},render:function(e){var t,n,r;return e.itemNum!==0&&!e.itemNum?t=window.bdYuntu.count.galleryNum:t=e.itemNum,e.pageNum?n=e.pageNum:n=t===0?1:Math.ceil(t/this.itemPerPage),e.isFade?r=!0:r=!1,this.renderList(t,n,r),this.renderPager(n,r),this},renderList:function(n,r,i){var s=this.collection.getListPerPage(r,this.itemPerPage);this.collection.setListItemNum();var o=t.template(e("#tpl-bdyt-layer-sidebar-rec-item").html(),{listData:s,length:s.length,currentItemNum:n});return i?e(".bdyt-layer-sidebar-rec-list").hide().html(o).fadeIn():e(".bdyt-layer-sidebar-rec-list").html(o),this},renderPager:function(n,r){var n=n||1,i={allPageNum:this.collection.getAllPageNum(this.itemPerPage),pageNum:n},s=t.template(e("#tpl-bdyt-layer-sidebar-rec-pager-item").html(),i);return r?e(".bdyt-layer-sidebar-rec-pager").hide().html(s).fadeIn():e(".bdyt-layer-sidebar-rec-pager").html(s),this},freshSidebarRec:function(e){e.preventDefault();var t=+e.target.getAttribute("data-num");return this.render({itemNum:window.bdYuntu.count.galleryNum,pageNum:t,isFade:!0}),i.send({mod_id:"layer_sidebar_rec",act_name:"pagger",clk_pos:t}),this},freshMain:function(e){e.preventDefault();var t=e.currentTarget.getAttribute("data-gallery-id"),n=e.currentTarget.getAttribute("data-num"),r=e.currentTarget.getAttribute("data-rele-type");return i.send({mod_id:"layer_sidebar_rec",act_name:"gallery",clk_pos:n,bdyt_gallery_id:t,bdyt_rele_type:r}),window.bdYuntu.count.galleryNum=+n,window.bdYuntu.events.trigger("bdyt-layer-main:renderNew",{gallery_id:t,img_num:1,which_num:n}),this}});return a}),bdyt_define("css!css-style/bdyt-layer-sprite",[],function(){}),bdyt_define("views/bdyt-layer",["jquery","underscore","backbone","utils/template-helper","utils/css-helper","log/bdyt-layer","text!template/bdyt-layer.html","text!template/bdyt-layer-sidebar-hot-rec.html","views/bdyt-layer-main","views/bdyt-layer-sidebar-rec","css!css-style/bdyt-layer-sprite.css"],function(e,t,n,r,i,s,o,u,a,f){r.createTplElem("tpl-bdyt-layer",o),r.createTplElem("tpl-bdyt-layer-hot",u);var l=n.View.extend({el:".bdyt-layer",events:{"click .bdyt-layer-close":"closeLayer","mouseover .bdyt-layer-sidebar-hot-title-1,.bdyt-layer-sidebar-hot-title-2,.bdyt-layer-sidebar-hot-title-3":"changeContent"},initialize:function(){window.bdYuntu.events.off("bdyt-layer:render"),window.bdYuntu.events.on("bdyt-layer:render",this.render,this),window.bdYuntu.events.off("bdyt-layer:renderContent"),window.bdYuntu.events.on("bdyt-layer:renderContent",this.renderContent,this),window.bdYuntu.events.off("bdyt-layer:resizeLayer"),window.bdYuntu.events.on("bdyt-layer:resizeLayer",this.resizeLayer,this)},if_ok:0,setLayerWH:function(){var t=document,n=t.documentElement.clientHeight==document.documentElement.scrollHeight?t.body.clientHeight:t.documentElement.clientHeight,r=e(window).width(),s=t.getElementsByTagName("body")[0],o,u;if(e(s).css("position")==="relative"||e(s).css("position")==="absolute"||e(s).css("position")==="fixed"){var a=i.getElemMBP(s,"margin"),f=i.getElemMBP(s,"border");o=r-a.left-a.right-f.left-f.right,u=n-a.top-a.bottom-f.top-f.bottom}else o=r,u=n;return i.createStyleElem("css-bdyt-layer-wh",".bdyt-layer{width:"+o+"px;height:"+u+"px;}"),window.bdYuntu.css.layerWidth=o,window.bdYuntu.css.layerHeight=u,this},resizeLayer:function(){this.setLayerWH()},render:function(n){e("body").addClass("bdyt-overflow-x-hidden"),window.bdYuntu.globalOldKeyDown||(window.bdYuntu.globalOldKeyDown=window.onkeydown||document.onkeydown||!1),window.bdYuntu.globalOldKeyDown&&(document.onkeydown=function(){},window.onkeydown=function(){}),window.bdYuntu.switchOldKeyDown=!0,this.$el.show(),this.setLayerWH(),window.bdYuntu.views.bdytLayerMainView&&window.bdYuntu.views.bdytLayerMainView.remove&&window.bdYuntu.views.bdytLayerSidebarRecView.remove(),window.bdYuntu.views.bdytLayerSidebarRecView&&window.bdYuntu.views.bdytLayerSidebarRecView.remove&&window.bdYuntu.views.bdytLayerSidebarRecView.remove();var r=t.template(e("#tpl-bdyt-layer").html(),{});e(".bdyt-layer").html(r),e.ajax({url:"http://tuijian.yuntu.baidu.com/yuntu/imgsearch",data:{page_url:n.page_url,img_url:n.img_url,expect_gallery_num:3,page_id:"layer"},dataType:"jsonp",success:function(n){if(n&&n.data&&n.data.length>0){var r=t.template(e("#tpl-bdyt-layer-hot").html(),n);e(".bdyt-layer-sidebar-hot-rec").append(r)}}}),this.resetGlobal();if(!n){var n={gallery_id:"-2595131846127404561",page_url:"http://photo.zhulong.com/proj/detail1022.html",img_url:"http://static.zhulong.com/photo/small/200604/05/1022_0_0_560_0.jpg",img_id:"-3792921652824789121"};return}return window.bdYuntu.layerLogId=+(new Date),window.bdYuntu.firstGalleryId=n.gallery_id,window.bdYuntu.firstImgId=n.img_id,window.bdYuntu.views.bdytLayerMainView=new a,window.bdYuntu.views.bdytLayerMainView.renderNew(n),window.bdYuntu.views.bdytLayerSidebarRecView=new f,window.bdYuntu.views.bdytLayerSidebarRecView.renderNew(n),this},renderContent:function(e){return},changeContent:function(t){var n=this;t&&t.preventDefault();var r=e(t.target),i=3,s=r.attr("num");if(e(".bdyt-layer-sidebar-hot-img-"+s).hasClass("down"))return;if(n.if_ok==1)return;n.if_ok=1;for(var o=1;o<=i;o++)if(e(".bdyt-layer-sidebar-hot-img-"+o).hasClass("down")&&o!=s)var u=o;e(".bdyt-layer-sidebar-hot-title-"+s).css({"background-color":"black",opacity:"0.6",color:"#ffffff"}),e(".bdyt-layer-sidebar-hot-rec-"+s).animate({height:"120px"},300),e(".bdyt-layer-sidebar-hot-img-"+s).animate({height:"120px",opacity:"1"},300,function(){e(".bdyt-layer-sidebar-hot-img-"+s).addClass("down")}),e(".bdyt-layer-sidebar-hot-rec-"+u).animate({height:"26px"},300),e(".bdyt-layer-sidebar-hot-img-"+u).animate({height:"0px",opacity:"0"},300,function(){n.if_ok=0,e(".bdyt-layer-sidebar-hot-img-"+u).removeClass("down")}),e(".bdyt-layer-sidebar-hot-title-"+u).css({"background-color":"#444",opacity:"1",color:"#dcdcdc"})},closeLayer:function(t){e("body").removeClass("bdyt-overflow-x-hidden"),t.preventDefault(),window.bdYuntu.globalOldKeyDown&&(document.onkeydown=window.bdYuntu.globalOldKeyDown,window.onkeydown=window.bdYuntu.globalOldKeyDown,window.bdYuntu.switchOldKeyDown=!1),s.send({mod_id:"layer_hd",act_name:"close"}),this.resetGlobal(),this.$el.hide()},resetGlobal:function(){window.bdYuntu.firstGalleryId=0,window.bdYuntu.firstImgId=0,window.bdYuntu.count.galleryNum=0,window.bdYuntu.status.mainFetchDone=!1,window.bdYuntu.status.sidebarFetchDone=!1,window.bdYuntu.collections={},window.bdYuntu.isFtSliding=!1;var t=e("#bdyt-layer-main-bd-list");t.remove()}});return l}),bdyt_define("views/app",["jquery","underscore","backbone","views/bdyt-index","views/bdyt-ending","views/bdyt-layer"],function(e,t,n,r,i,s){var o=n.View.extend({el:e(window),events:{resize:t.debounce(function(){window.bdYuntu.events.trigger("bdyt-layer:resizeLayer"),window.bdYuntu.events.trigger("bdyt-index:resize"),window.bdYuntu.events.trigger("bdyt-ending:resize"),window.bdYuntu.events.trigger("bdyt-layer-main:resizeLayerMain"),window.bdYuntu.events.trigger("bdyt-layer-main-bd-list-item:resizeBdImg"),window.bdYuntu.events.trigger("bdyt-layer-main-ft-list:renderPager")},500)},initialize:function(){e("body").append('<div class="bdyt bdyt-layer" style="display:none;"></div>'),e(document).ready(function(){new r,new s,new i,e(document).keydown(function(t){if(!window.bdYuntu.switchOldKeyDown)return!0;t.keyCode==39&&!window.bdYuntu.isKeydown?(window.bdYuntu.isKeydown=!0,e(".bdyt-ending").length?window.bdYuntu.events.trigger("bdyt-ending:next"):window.bdYuntu.events.trigger("bdyt-layer-main:goNextImg")):t.keyCode==37&&!window.bdYuntu.isKeydown&&(window.bdYuntu.isKeydown=!0,e(".bdyt-ending").length?window.bdYuntu.events.trigger("bdyt-ending:review"):window.bdYuntu.events.trigger("bdyt-layer-main:goPrevImg"))}),e(document).keyup(function(e){if(!window.bdYuntu.switchOldKeyDown)return!0;e.keyCode==39?window.bdYuntu.isKeydown=!1:e.keyCode==37&&(window.bdYuntu.isKeydown=!1)})})}});return o}),bdyt_require(["utils/pdc","css!css-style/bdyt-base.css","global","views/app"],function(e,t,n,r){new r}),bdyt_define("main",function(){}),function(e){var t=document,n="appendChild",r="styleSheet",i=t.createElement("style");i.type="text/css",t.getElementsByTagName("head")[0][n](i),i[r]?i[r].cssText=e:i[n](t.createTextNode(e))}(" .bdyt, .bdyt * {box-sizing:content-box; margin:0; padding:0; float:none; clear:none; overflow:hidden; word-wrap:normal; border:0; background:none; width:auto; height:auto; max-width:none; min-width:none; max-height:none; min-height:none; border-radius:0; box-shadow:none; transition:none; font: 12px/1.5 Helvetica, Arial, \\5b8b\\4f53, sans-serif; text-shadow:none; text-decoration:none; text-align:left; text-indent:0;} .bdyt table {border-collapse: collapse; border-spacing: 0;} .bdyt img {border: 0; display: block;} .bdyt ol, .bdyt ul {list-style: none;} .bdyt li {display: block; list-style: none;} .bdyt h1, .bdyt h2, .bdyt h3, .bdyt h4 {font-size: 100%;} .bdyt i, .bdyt em {font-style: normal; font-weight: normal;} .bdyt button, .bdyt input, .bdyt select, .bdyt textarea {font: 12px/1.5 Helvetica, Arial, \\5b8b\\4f53, sans-serif;} .bdyt .clearfix:after {content: ''; display: block; clear: both; height: 0;} .bdyt .clearfix {zoom: 1;} .bdyt-index {z-index: 2147483645;} .bdyt-layer {z-index: 2147483647;} .bdyt-ending {z-index: 2147483647;} #bdyt_mouse_hover_tip{display:none; position:fixed; z-index: 2147483647; border: 1px solid #000; padding: 2px 5px 3px 5px; white-space:nowrap; background: #ffffe1; color: #000; border:1px solid #ccc; border-radius:2px;} *html{background-image:url(css-style/about:blank);background-attachment:fixed;} div.bdyt-index{overflow:visible;} .bdyt-index .rec-flow-layer{position:absolute; overflow:visible; cursor:url(http://static.yuntu.baidu.com/1201/img/bdyt-index/big.cur),auto; cursor:url(http://static.yuntu.baidu.com/1201/img/bdyt-index/big_ie.cur),auto \\9; background-image: url('http://static.yuntu.baidu.com/1201/img/bdyt-base/null.png');} .bdyt-index .content-wrapper{position:absolute; left:0px; bottom:0px; height:120px; width:100%; overflow:visible; display:none; background: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-index-bg.png') repeat 0 0; transition: box-shadow .255s; -moz-transition: box-shadow .255s; -webkit-transition: box-shadow .255s; cursor:default;} .bdyt-index .bdyt-bottom-content-wrapper{position:fixed; overflow:visible; bottom:0px; _position:absolute; _bottom:0px; _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight- this.offsetHeight-(parseInt(this.currentStyle.marginBottom,10)||0))); width:100%;} .bdyt-index .content-wrapper:hover{box-shadow:0 0 8px black; transition: box-shadow .255s; -moz-transition: box-shadow .255s; -webkit-transition: box-shadow .255s;} .bdyt-index .head-wrapper{position:absolute; top:10px; left:10px; width:80px; height:24px;} .bdyt-index .head-wrapper a{display:block; width:100%; height:24px; background :url('http://static.yuntu.baidu.com/1201/css-style/bdyt-index-btn-show-layer.png') no-repeat 0 0; opacity:0.5; filter:alpha(opacity=50); cursor:pointer; transition: opacity .255s; -moz-transition: opacity .255s; -webkit-transition: opacity .255s;} .bdyt-index .head-wrapper a:hover{opacity:1.0; filter:none; background :url('http://static.yuntu.baidu.com/1201/css-style/bdyt-index-btn-show-layer.png') no-repeat -80px 0;} .bdyt-index .head-wrapper a.head-wrapper-hover{opacity:1.0; filter:none; transition: opacity .255s; -moz-transition: opacity .255s; -webkit-transition: opacity .255s;} .head-right-wrapper {position:absolute; top:0px; right:-22px; width:22px;} .head-right-wrapper a {padding: 20px 0px 5px 0px; font-weight: bold; text-align: center; color: white; background-image: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-index-show-layer-img.png); _background-image: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-index-show-layer-img_ie6.png); _filter:alpha(opacity:100); background-repeat: no-repeat; background-color: rgb(184, 0, 15);} .head-right-wrapper a:hover {background-color: rgb(250, 9, 9); color: white; text-decoration: none;} .bdyt-index .rec-flow-layer .button-wrapper,.bdyt-index .bdyt-bottom-content-wrapper .button-wrapper{position:relative; width:100%; height:15px; overflow:hidden; padding-top:5px;} .bdyt-index .button-wrapper span{height:100%; overflow:hidden;} .bdyt-index .button-wrapper a{height:100%; overflow:hidden;} .bdyt-index .button-wrapper .bdlogo{float:left; width:14px; margin-left:13px;background-repeat: no-repeat;} .bdyt-index .button-wrapper .label{float:left; margin-left:5px; color:white; font:bold 12px/17px SimSun;} .bdyt-index .button-wrapper .close{float:right; cursor:pointer; width:10px; margin-right:10px;background-repeat: no-repeat;} .bdyt-index .button-wrapper .close:hover{float:right; width:10px; height:100%;background-repeat: no-repeat;} .bdyt-index .rec-flow-layer .main-wrapper,.bdyt-index .bdyt-bottom-content-wrapper .main-wrapper{position:absolute; width:100%; height:82px; overflow:hidden; margin:10px 0px 0px;} .bdyt-index .main-wrapper .button-slide{position:relative; width:23px; height:80px; border:1px solid #000; background-color:#292929; cursor:pointer; z-index:1;} .bdyt-index .button-slide span{width:22px; height:78px; border:1px solid #313131; position:relative;} .bdyt-index .main-wrapper .left{float:left; border-left:none;} .bdyt-index .main-wrapper .right{float:right; border-right:none;} .bdyt-index .button-slide div{position:absolute; top:50%; left:50%; margin-top:-8px; margin-left:-5px; width:11px; height:16px;} .bdyt-index .button-slide .left div{background-repeat: no-repeat;} .bdyt-index .button-slide .left:hover div{zoom:1;background-repeat: no-repeat;} .bdyt-index .button-slide .right div{background-repeat: no-repeat;} .bdyt-index .button-slide .right:hover div{zoom:1;background-repeat: no-repeat;} .bdyt-index .rec-flow-layer .img-list,.bdyt-index .bdyt-bottom-content-wrapper .img-list{position:absolute; left:24px; top:0px; height:80px; width:9999px;} .bdyt-index .rec-flow-layer .img-container,.bdyt-index .bdyt-bottom-content-wrapper .img-container{float:left; width:100px; height:80px; border:1px solid #222; margin-left:8px; _display:inline;} .bdyt-index .rec-flow-layer a,.bdyt-index .bdyt-bottom-content-wrapper a{position:relative; width:100%; height:100%; display:block;} .bdyt-index .img-container a,.bdyt-index .bdyt-bottom-content-wrapper .img-container a{width:98px; height:77px; border:1px solid #333; _zoom: 1;} .bdyt-index .img-container a:hover,.bdyt-index .bdyt-bottom-content-wrapper .img-container a:hover{border:1px solid #ff9900; text-decoration:none;} .bdyt-index .img-container a.bdyt-img-search-border:hover{border:1px solid #fa5353;} .bdyt-index .rec-flow-layer img,.bdyt-index .bdyt-bottom-content-wrapper img{width:100%; height:100%;} .bdyt-index .title-flow-layer::before{content: 'test'; display: inline-block; vertical-align: middle; width: 0; height: 100%; overflow:hidden;} .bdyt-index .rec-flow-layer .title-flow-layer,.bdyt-index .bdyt-bottom-content-wrapper .title-flow-layer{position: absolute; bottom: 0px; left: 0px; width: 100%; height:20px; line-height: 20px; overflow: hidden; font-size:0; background-color:rgba(0,0,0,0.8); background-color:#000\\9; filter:alpha(opacity=80); -webkit-transition: height 0.3s ease; -moz-transition: height 0.3s ease; -ms-transition: height 0.3s ease; -o-transition: height 0.3s ease; transition: height 0.3s ease;} .bdyt-index .rec-flow-layer .title-flow-layer span,.bdyt-index .bdyt-bottom-content-wrapper .title-flow-layer span{text-indent: 5px; text-align:center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; color:#fff; display:inline-block; vertical-align:middle; width:100%;} .bdyt-index .bdyt-img-item{display:block; position:relative;} .bdyt .bdyt-ad-icon{position:absolute; top:0; right:0; font:12px/12px 'Arial Normal','Arial'; color:#444; padding:3px 5px; border:1px solid #e4e4e4; background-color:#f2f2f2;} .bdyt .bdyt-img-search-icon{position:absolute; top:0; right:0; width:27px; height:27px; background:url('http://static.yuntu.baidu.com/1201/img/bdyt-index/hot-icon.png') repeat 0 0;} .bdyt-index .rec-flow-layer .bdyt-img-item:hover .title-flow-layer,.bdyt-index .bdyt-bottom-content-wrapper .bdyt-img-item:hover .title-flow-layer{height:100%;} .bdyt-index .rec-flow-layer .bdyt-img-item:hover span,.bdyt-index .bdyt-bottom-content-wrapper .bdyt-img-item:hover span{white-space: normal; text-overflow: initial;} .bdyt-index .bdyt-bottom-content-wrapper .animation-wrapper{position:relative; width:100%; height:120px; display:none; left:0; bottom:0; background: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-index-bg.png') repeat 0 0; transition: box-shadow .255s; -moz-transition: box-shadow .255s; -webkit-transition: box-shadow .255s;} .bdyt-index .bdyt-bottom-content-wrapper .animation-wrapper:hover{} .bdyt-index .bdyt-bottom-content-wrapper .bdyt-bottom-content-wrapper-btn{height:23px; position:relative; width:130px; background-position:0px -3px; background-repeat:no-repeat; top:0; left:50%; margin-left:-75px;} .bdyt-index .bdyt-bottom-content-wrapper-btn:hover{background-position:0px -81px; color:white;} .bdyt-index .bdyt-bottom-content-wrapper .bdyt-index-foot-layer-close{background-position:0px -54px;} .bdyt-index .bdyt-bottom-content-wrapper .bdyt-index-foot-layer-close:hover{background-position:0px -28px;} .bdyt-index .button-wrapper .bdlogo{background-position:-9px -81px}.bdyt-index .button-wrapper .close{background-position:-23px -81px}.bdyt-index .button-wrapper .close:hover{background-position:-34px -81px}.bdyt-index .button-slide .left div{background-position:0px -145px}.bdyt-index .button-slide .left:hover div{background-position:-11px -145px}.bdyt-index .button-slide .right div,.bdyt{background-position:-22px -145px}.bdyt-index .button-slide .right:hover div{background-position:-33px -145px} .bdyt-index .fr-left:hover .left div{background-position:0px -145px;} .bdyt-index .fr-right:hover .right div{background-position:-22px -145px;} .bdyt-index .button-wrapper .bdlogo,.bdyt-index .button-wrapper .close,.bdyt-index .button-wrapper .close:hover,.bdyt-index .button-slide .left div,.bdyt-index .button-slide .left:hover div,.bdyt-index .button-slide .right div,.bdyt-index .button-slide .right:hover div{background-image: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-index-sprite_z.png'); _background-image: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-index-sprite_z_ie6.png');} .bdyt-index .bdyt-bottom-content-wrapper .bdyt-bottom-content-wrapper-btn,.bdyt-index .bdyt-bottom-content-wrapper .bdyt-index-foot-layer-close{background-image:url('http://static.yuntu.baidu.com/1201/img/bdyt-index/bdyt-index-content-wrapper.png');*/ _background-image:url('http://static.yuntu.baidu.com/1201/img/bdyt-index/bdyt-index-content-wrapper_ie6.png');*/} .bdyt-ending{position: fixed; _position: absolute; top: 0; _top:expression(eval(document.documentElement.scrollTop)); left: 0; _left:expression(eval(document.documentElement.scrollLeft)); width:0; height:0; background:rgba(0,0,0,0.8); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000,endColorstr=#cc000000);zoom:1; background-color: #333\\9; _zoom:1;} .bdyt-ending a {text-decoration: none!important;} :root .bdyt-ending{filter:none\\9;} .bdyt-ending .bdyt-ending-wrap{position:relative; top:50%; left:50%; margin-top:-250px; margin-left:-450px; padding:20px; width:870px; height:460px; overflow:visible; background-color:#111111; color:white;} .bdyt-ending-wrap a{cursor:pointer;} .bdyt-ending-btn-close{display:block; position:absolute; top:-24px; right:-24px; width:48px; height:48px; background-repeat: no-repeat;} .bdyt-ending-btn-close:hover{background-repeat: no-repeat;} .bdyt-ending-wrap div{float:left;} .bdyt-ending-left{width:708px; height:100%; position:relative;} .bdyt-ending-head-wrap{height:30px;} .bdyt-ending-head-wrap h3{float:left; font: bold 18px/30px Microsoft Yahei; color:white;} .bdyt-ending-head-wrap .title{line-height:35px;} .bdyt-ending-head-wrap .heading{font-size:24px; margin-left:20px; padding-left:25px;background-repeat: no-repeat;} .bdyt-ending-img-list{position:absolute; left:0; bottom:0;} .bdyt-ending-img-item{float:left; margin-right:3px; margin-bottom:2px; overflow:visible;} .bdyt-ending-img-item a{display:block; position:relative; transition: .255s; -moz-transition: .255s; -webkit-transition: .255s;} .bdyt-ending-img-item a:hover{opacity:0.8; filter:alpha(opacity=80); transition: .255s; -moz-transition: .255s; -webkit-transition: .255s;} .bdyt-ending-img-item img{display:block; width:100%; height:100%;} .bdyt-ending-img-big{width:351px; height:240px;} .bdyt-ending-img-medium{width:233px; height:162px;} .bdyt-ending-img-mask{position:absolute; left:0px; bottom:0px; width:100%; height:24px; text-align:center; color:white; font:14px/24px Microsoft YaHei, Hiragino Sans GB W3, Tahoma, Arial; background-color:rgba(0,0,0,0.6); background-color:#000\\9; filter:alpha(opacity=60); white-space: nowrap; text-overflow: ellipsis; text-decoration:none;} .bdyt-ending .bdyt-ending-right{width:140px; margin-left:18px; height:100%;} .bdyt-ending-right li{display:block;} .bdyt-ending-right a{display:block;} .bdyt-ending .bdyt-ending-btn{color:#aaa;} .bdyt-ending .bdyt-ending-btn:hover{color:#fff; text-decoration:none;} .bdyt-ending .bdyt-ending-review {margin-top:10px;} .bdyt-ending .bdyt-ending-review a{color:#aaa; display:inline; margin-left:30px; padding-left:23px; font:14px/16px Microsoft YaHei, Hiragino Sans GB W3, Tahoma, Arial; background-repeat: no-repeat;} .bdyt-ending-review a:hover{background-repeat: no-repeat;} .bdyt-ending-img-last a:hover .bdyt-ending-next{color:#fff; text-decoration:none;background-repeat: no-repeat;} .bdyt-ending-img-last{overflow:visible; margin-top:170px;} .bdyt-ending-img-last a{text-decoration: none; display:block; position:relative; transition: .255s; -moz-transition: .255s; -webkit-transition: .255s; zoom: 1; overflow: visible; width: 140px; height: 140px;} .bdyt-ending-img-last .bdyt-ending-img-mask {top: 80px;} .bdyt-ending-img-last a:hover{opacity:0.8; filter:alpha(opacity=80); transition: .255s; -moz-transition: .255s; -webkit-transition: .255s; zoom: 1; overflow: visible;} .bdyt-ending-next {position:absolute; top: 100px; left:0; width:115px; margin-left:25px; margin-top:20px; font:18px/20px 'Microsoft Yahei'; background-repeat: no-repeat;} .bdyt-ending-img-last a:hover .bdyt-ending-next {visibility: visible; overflow: visible; zoom:1;} .bdyt-ending-img-last img{display:block; width:140px; height:100px;} .bdyt-ending-btn-close{background-position:0px 0px}.bdyt-ending-btn-close:hover{background-position:0px -98px}.bdyt-ending-head-wrap .heading{background-position:-24px -188px}.bdyt-ending-review a{background-position:-28px -263px}.bdyt-ending-review a:hover{background-position:-28px -328px}span.bdyt-ending-next{background-position:39px -392px}.bdyt-ending-img-last a:hover .bdyt-ending-next{background-position:39px -460px} .bdyt-ending-btn-close,.bdyt-ending-btn-close:hover,.bdyt-ending-head-wrap .heading,.bdyt-ending-review a,.bdyt-ending-review a:hover,span.bdyt-ending-next,.bdyt-ending-img-last a:hover .bdyt-ending-next{background-image: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-ending-sprite_z.png); _background-image: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-ending-sprite_z_ie6.png);} .bdyt-layer {position: fixed; _position: absolute; top: 0; _top:expression(eval(document.documentElement.scrollTop)); left: 0; _left:expression(eval(document.documentElement.scrollLeft)); background-color: #000; overflow: hidden; z-index: 2147483647;} .bdyt-layer a {text-decoration: none;} .bdyt .bdyt-layer-simsun {font-family: simsun;} .bdyt-layer-bd {width: 100%; height: 100%; overflow: hidden; *zoom: 1;} .bdyt-layer-main-wrap {width: 100%; height: 100%; float: left;} .bdyt-layer-main {position:relative; height: 100%; margin-right: 310px; background-color: #262626;} .bdyt .bdyt-layer-main-hd {background-color: #000; height: 50px; color: #F4F4F4; overflow: hidden; *zoom: 1;} .bdyt .bdyt-layer-main-hd-title {padding-left: 40px; overflow: hidden; padding-right: 10px;} .bdyt .bdyt-layer-main-hd-title a {font: 700 16px/50px 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft YaHei', sans-serif; color: #F4F4F4; word-wrap: break-word;} .bdyt .bdyt-layer-main-hd-title a:hover {text-decoration: underline;} .bdyt .bdyt-layer-main-hd-tool {float: right; margin-right: 49px; margin-top: 10px;} .bdyt .bdyt-layer-main-hd-tool a {display: inline-block; font-size: 14px; height: 24px; line-height: 24px; text-align: center; border: 1px solid #303030; background-color: #1A1A1A; color: #989898; margin-right: 10px;} .bdyt .bdyt-layer-main-hd-tool a:hover {background-color: #242424; color: #EEE;} .bdyt .bdyt-layer-main-hd-tool-share {padding: 0 15px 0 37px; background-repeat: no-repeat;} .bdyt .bdyt-layer-main-hd-tool-share:hover {background-repeat: no-repeat;} .bdyt .bdyt-layer-main-hd-tool-download {padding: 0 15px 0 37px; background-repeat: no-repeat;} .bdyt .bdyt-layer-main-hd-tool-download:hover {background-repeat: no-repeat;} .bdyt .bdyt-layer-main-hd-tool-ori {padding: 0 10px;} .bdyt .bdyt-layer-main-bd {position: relative; background: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-loading.gif') no-repeat center center;} .bdyt .bdyt-layer-main-bd-list {padding: 0 60px; height: 100%;} .bdyt .bdyt-layer-main-bd-list-item-link {position:relative; display:block;} .bdyt .bdyt-layer-main-bd-list-item {display: block; height: 100%; width: 100%;} .bdyt .bdyt-layer-main-bd-list-item img{display: block; height: 100%; width: 100%; cursor:pointer;} .bdyt .bdyt-layer-main-bd-list-prev {display: block; zoom: 1; width: 50%; height: 100%; position: absolute; left: 0px; cursor: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-sprite-prev.png),auto; cursor: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-sprite-prev.ico),auto \\9;} .bdyt .bdyt-layer-main-bd-list-next {display: block; zoom: 1; position: absolute; width: 50%; height: 100%; right: 0px; cursor: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-sprite-next.png),auto; cursor: url(http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-sprite-next.ico),auto \\9;} .bdyt .bdyt-layer-main-bd-detail {position: absolute; left: 0; bottom: 0; height: 40px; width: 100%; color: #9A9A9A; background:rgba(0,0,0,0.5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000); zoom:1; overflow: hidden;} :root .bdyt-layer-main-bd-detail{filter:none\\9;} .bdyt .bdyt-layer-main-bd-detail-content {text-align: center; line-height: 24px; height: 24px; overflow: hidden; padding: 0 10px; color: white;} .bdyt .bdyt-layer-main-bd-detail-num-current{color: #E60012; margin-right: 3px;} .bdyt .bdyt-layer-main-bd-detail-src-article{color: #E60012; margin-left: 10px;} .bdyt a.bdyt-layer-main-bd-detail-src-article:hover {color: #E60012; text-decoration:underline;} .bdyt .bdyt-layer-main-bd-detail-num-all {margin-left: 3px; margin-right: 3px;} .bdyt .bdyt-layer-main-bd-pagger-wrapper-prev {position: absolute; top: 50%; left: 0; margin-top: -36px; width: 144px; height: 72px;} .bdyt .bdyt-layer-main-bd-prev {width: 72px; height: 72px; background-repeat: no-repeat; float:left;} .bdyt .bdyt-layer-main-bd-pagger-wrapper-next {overflow:visible; position: absolute; top: 50%; right: 0; margin-top: -36px; width: 144px; height: 72px;} .bdyt .bdyt-layer-main-bd-next {width: 72px; height: 72px; background-repeat: no-repeat; float:right;} .bdyt .bdyt-layer-main-ft {height: 100px; background-color: #000; position: relative; overflow: visible;} .bdyt .bdyt-layer-main-ft-list-wrap {position:relative; float: left; width: 100%; height: 100px; overflow: hidden;} .bdyt .bdyt-layer-main-ft-list-wrap-inner {overflow:hidden; margin: 0 63px; height: 100%; padding: 8px 0; position:relative;} .bdyt .bdyt-layer-main-ft-list-item {width: 80px; height: 80px; border: 2px solid #292929; margin-right: 11px; float: left; background-color: #eee;} .bdyt .bdyt-layer-main-ft-list-item-current img {opacity:1 !important; filter:alpha(opacity:99) !important;} .bdyt .bdyt-layer-main-ft-list-link {position:relative; width: 80px; height: 80px; display: block; background:rgba(0,0,0,0.9);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#e5000000,endColorstr=#e5000000);zoom:1;} .bdyt .bdyt-layer-main-ft-list-link:hover {background:rgba(0,0,0,0.1);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#19000000,endColorstr=#19000000);zoom:1;} .bdyt .bdyt-layer-main-ft-list-link:hover img {opacity: 0.9; filter:alpha(opacity:90);} .bdyt .bdyt-layer-main-ft-list-link img {height: 80px; margin-left: -10px; opacity: 0.5; filter:alpha(opacity:50);} .bdyt-layer-main-ft-list-item-next-img {height: 80px; margin-left: -10px;} .bdyt .bdyt-layer-main-ft-list-item-current {border: 2px solid #FF9900;} .bdyt .bdyt-layer-main-ft-prev {position:relative; z-index:1; float: left; width: 63px; height: 100px; margin-left: -100%; background-repeat: no-repeat;} .bdyt .bdyt-layer-main-ft-prev-disable {cursor: default; float: left; width: 63px; margin-left: -100%; background-repeat: no-repeat;} .bdyt .bdyt-layer-main-ft-next {position:relative; z-index:1; float: left; width: 63px; height: 100px; margin-left: -63px; background-repeat: no-repeat; _background-color: #000;} .bdyt .bdyt-layer-main-ft-next-disable {cursor: default; float: left; width: 63px; margin-left: -63px; background-repeat: no-repeat;} .bdyt .bdyt-layer-main-ft-switch {display: block; position: absolute; top: -13px; left: 50%; margin-left: -46px; width: 93px; height: 13px; background-repeat: no-repeat; _clear: both;} .bdyt .bdyt-layer-main-ft-switch:hover {background-repeat: no-repeat;} .bdyt .bdyt-layer-main-ft-switch-close {display: block; position: absolute; top: -13px; left: 50%; margin-left: -46px; width: 93px; height: 13px; background-repeat: no-repeat;} .bdyt .bdyt-layer-main-ft-switch-close:hover {background-repeat: no-repeat;} .bdyt .bdyt-layer-sidebar {width: 310px; height: 100%; float: left; margin-left: -310px; background-color: #444; position:relative;} .bdyt .bdyt-layer-sidebar-top {height: 64px; background-color: #000;} .bdyt .bdyt-layer-sidebar-rec {padding: 20px; padding-bottom:0;} #bdyt-layer-main-bd-list{display:none;} #bdyt-layer-main-ad{position:absolute; top:50px; left:0; width:100%; height:35px; overflow:visible; background:transparent;} #bdyt-layer-sidebar-ad{width:310px; background:transparent;} .bdyt .bdyt-layer-main-bd-detail-ad-link{margin-left:20px; padding:1px 1em; color:white; font: 13px/20px 'Arial Normal','Arial'; border:1px solid #f00; border-radius:3px; background-color:#fd3f3f; background:-webkit-gradient(linear,left top,left bottom ,from(#fd3f3f),to(#ea0505)); background:-moz-linear-gradient(top,#fd3f3f,#ea0505); background:-o-linear-gradient(top,#fd3f3f,#ea0505); background:-ms-linear-gradient(#fd3f3f 0%,#ea0505 100%);} .bdyt .bdyt-layer-main-bd-detail-ad-link:hover{background-color:#ea0505; background:-webkit-gradient(linear,left top,left bottom ,from(#ea0505),to(#fd3f3f)); background:-moz-linear-gradient(top,#ea0505,#fd3f3f); background:-o-linear-gradient(top,#ea0505,#fd3f3f); background:-ms-linear-gradient(#ea0505 0%,#fd3f3f 100%);} .bdyt .bdyt-layer-sidebar-rec-link {position:absolute; bottom:0; right:0; padding:0px 20px 10px 0px; color: #989898; cursor:pointer; font-size:12px;} .bdyt .bdyt-layer-sidebar-rec-link:hover {color:#fff; text-decoration:underline;} .bdyt .bdyt-layer-sidebar-rec-title {font-size: 14px; line-height: 14px; line-height: 17px\\9; color: #989898; margin-bottom: 15px;} .bdyt .bdyt-layer-sidebar-rec-list {margin-right: -10px; width: 280px; overflow: hidden; *zoom: 1; *margin-bottom: 10px;} .bdyt .bdyt-layer-sidebar-rec-item {margin: 0 10px 10px 0; float: left; overflow: hidden; border: 1px solid #444;} .bdyt .bdyt-layer-sidebar-rec-item-current {border: 1px solid #FF9900;} .bdyt .bdyt-layer-sidebar-rec-item-link {display: block; position: relative; width: 128px; height: 98px; color: #FFF; _zoom: 1;} .bdyt .bdyt-layer-sidebar-rec-item-link:hover .bdyt-layer-sidebar-rec-item-title {height: 100%; _zoom: 1;} .bdyt .bdyt-layer-sidebar-rec-item-link:hover .bdyt-layer-sidebar-rec-item-title-inner {white-space: normal; text-overflow: initial;} .bdyt .bdyt-layer-sidebar-rec-item-title::before{content: 'test'; display: inline-block; vertical-align: middle; width: 0; height: 100%; overflow:hidden;} .bdyt .bdyt-layer-sidebar-rec-item-title {font-size:0; position: absolute; left: 0; bottom: 0; width: 100%; height: 20px; line-height: 20px; overflow: hidden; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000); background-color: rgba(0, 0, 0, 0.8); -webkit-transition: height 0.3s ease; -moz-transition: height 0.3s ease; -ms-transition: height 0.3s ease; -o-transition: height 0.3s ease; transition: height 0.3s ease;} .bdyt .bdyt-layer-sidebar-rec-item-title-inner {text-indent: 5px; text-align:center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; color:#fff; display:inline-block; vertical-align:middle; width:100%;} .bdyt .bdyt-layer-sidebar-rec-item-title:not([dummy]) {filter: progid:DXImageTransform.Microsoft.gradient(enabled='false');} .bdyt-layer-sidebar-rec-item-img {width: 130px; height: 100px;} .bdyt-layer-sidebar-rec-pager {overflow: hidden; *zoom: 1;} .bdyt .bdyt-layer-sidebar-rec-pager-item {float: left; width: 20px; height: 20px; line-height: 20px; text-align: center; color: #FFF; margin-right: 5px; border-radius: 50%; text-indent: -1px; font-weight: 700;} .bdyt .bdyt-layer-sidebar-rec-pager-item-current {background-color: #E60012;} .bdyt .bdyt-layer-close {display: block; position: absolute; top: -8px; right: 310px; width: 60px; height: 60px; background-repeat: no-repeat;} .bdyt .bdyt-layer-close:hover {background-repeat: no-repeat;} .bdyt .bdyt-layer-main-hd-tool-share {background-position:-58px 2px} .bdyt .bdyt-layer-main-hd-tool-share:hover {background-position:-58px -68px} .bdyt .bdyt-layer-main-hd-tool-download {background-position:-58px -138px} .bdyt .bdyt-layer-main-hd-tool-download:hover {background-position:-58px -208px} .bdyt .bdyt-layer-main-bd-prev {background-position:-23px -280px} .bdyt .bdyt-layer-main-bd-next {background-position:-21px -523px;} .bdyt .bdyt-layer-main-bd-pagger-wrapper:hover .bdyt-layer-main-bd-prev{background-position:-21px -402px;} .bdyt .bdyt-layer-main-bd-pagger-wrapper:hover a.bdyt-layer-main-bd-frg{background-position:-23px -280px; cursor:default;} .bdyt .bdyt-layer-main-bd-pagger-wrapper:hover .bdyt-layer-main-bd-next{background-position:-21px -646px;} .bdyt .bdyt-layer-main-bd-pagger-wrapper:hover .bdyt-layer-main-bd-tip{color:white; background-color:rgba(0,0,0,0.8);} .bdyt .bdyt-layer-main-bd-tip-prev{float:left; padding-right:10px;} .bdyt .bdyt-layer-main-bd-tip-next{float:right; padding-left:10px;} @-webkit-keyframes tip-animation{from {width:0px;} to {width:62px;}} .bdyt .bdyt-layer-main-bd-tip{color:#9A9A9A; height:72px; width: 62px; background:none; font : bold 14px/72px Simsun; text-align:center; display:none; -webkit-animation: tip-animation .2s; -moz-animation: tip-animation .2s; -ms-animation: tip-animation .2s; -o-animation: tip-animation .2s; animation: tip-animation .2s;} .bdyt-layer-main-ft-list-item-next:hover{background-color: rgba(0, 0, 0, 0.1); color: white; text-decoration: none;} .bdyt-layer-main-ft-list-item-next{display:block; font : bold 12px/16px Simsun; text-align:center; position: absolute; color: white; text-decoration: none; padding:32px 0px 0px 0px; width: 80px; height: 80px; cursor: pointer; background-color: rgba(0, 0, 0, 0.7);} .bdyt .bdyt-layer-main-bd-key-tip{display:none; position:absolute; top:-100px; right:0px; width:110px; height:30px; background:url(http://static.yuntu.baidu.com/1201/img/bdyt-layer/keybord-tip.gif) no-repeat; background-color: #444; text-align: center; font-size:14px; line-height: 30px; padding-top: 65px; color: #FFF;} .bdyt .bdyt-layer-main-ft-prev {background-position:-56px -727px} .bdyt .bdyt-layer-main-ft-prev-disable {background-position:-56px -795px} .bdyt .bdyt-layer-main-ft-next {background-position:-56px -863px} .bdyt .bdyt-layer-main-ft-next-disable {background-position:-56px -931px} .bdyt .bdyt-layer-main-ft-switch {background-position:0px -1040px} .bdyt .bdyt-layer-main-ft-switch:hover {background-position:0px -1103px} .bdyt .bdyt-layer-main-ft-switch-close {background-position:0px -1166px} .bdyt .bdyt-layer-main-ft-switch-close:hover {background-position:0px -1229px} .bdyt .bdyt-layer-sidebar-hot-rec {margin: 20px 0px 0px 20px; width:270px; padding:1px 0px 1px 0px;} .bdyt .bdyt-layer-hot-top,.bdyt .bdyt-layer-hot-bottom{height:1px; background-color:#4f4f4f;} .bdyt .bdyt-layer-hot-bottom{margin-top:10px;} .bdyt .bdyt-layer-sidebar-hot-top {height:35px; line-height:35px; color:#989898; font-size:14px;} .bdyt .bdyt-layer-sidebar-hot-rec-1,.bdyt .bdyt-layer-sidebar-hot-rec-2,.bdyt .bdyt-layer-sidebar-hot-rec-3 {position:relative; height:100%;} .bdyt .bdyt-layer-sidebar-hot-rec-2,.bdyt .bdyt-layer-sidebar-hot-rec-3 {height:26px;} .bdyt .bdyt-layer-sidebar-hot-img-1,.bdyt .bdyt-layer-sidebar-hot-img-2,.bdyt .bdyt-layer-sidebar-hot-img-3 {width:200px;} .bdyt .bdyt-layer-sidebar-hot-img-1 {height:120px;opacity:1;} .bdyt .bdyt-layer-sidebar-hot-img-2,.bdyt .bdyt-layer-sidebar-hot-img-3 {height:26px;opacity:0;} .bdyt .bdyt-layer-sidebar-hot-title-1,.bdyt .bdyt-layer-sidebar-hot-title-2,.bdyt .bdyt-layer-sidebar-hot-title-3 {width:200px; position:absolute; bottom:0px; height:26px; font:normal 12px/26px SimSun; text-overflow: ellipsis; white-space:nowrap; overflow:hidden; text-align:left; color:#dcdcdc; text-indent:26px;} .bdyt .bdyt-layer-sidebar-hot-title-1 {background-color:black; opacity:0.6; filter:alpha(opacity:80); color:#ffffff; zoom:1; _zoom:1;} .bdyt .bdyt-hot-num-1,.bdyt .bdyt-hot-num-2,.bdyt .bdyt-hot-num-3 {width:25px; height:26px; position:absolute; bottom:0px; z-index:1; background-repeat:no-repeat; background-image:url('http://static.yuntu.baidu.com/1201/img/bdyt-layer/bdyt-hot-rec-num.png'); _background-image:url('http://static.yuntu.baidu.com/1201/img/bdyt-layer/bdyt-hot-rec-num_ie6.png');} .bdyt .bdyt-hot-num-1 {background-position:0px 0px;} .bdyt .bdyt-hot-num-2 {background-position:0px -26px;} .bdyt .bdyt-hot-num-3 {background-position:0px -50px;} .bdyt .bdyt-layer-sidebar-hot-btn-1,.bdyt .bdyt-layer-sidebar-hot-btn-2,.bdyt .bdyt-layer-sidebar-hot-btn-3 {text-align:left; margin-left:2px; font:normal 12px/26px SimSun; text-overflow: ellipsis; white-space:nowrap; overflow:hidden; position:fixed;} .bdyt .bdyt-layer-sidebar-hot-btn-1 {color:white;} .bdyt .bdyt-layer-sidebar-hot-btn-2,.bdyt .bdyt-layer-sidebar-hot-btn-3 {color:black;} .bdyt .bdyt-layer-main-hd-tool-share, .bdyt .bdyt-layer-main-hd-tool-share:hover, .bdyt .bdyt-layer-main-hd-tool-download, .bdyt .bdyt-layer-main-hd-tool-download:hover, .bdyt .bdyt-layer-main-bd-prev, .bdyt .bdyt-layer-main-bd-prev:hover, .bdyt .bdyt-layer-main-bd-next, .bdyt .bdyt-layer-main-bd-next:hover, .bdyt .bdyt-layer-main-ft-prev, .bdyt .bdyt-layer-main-ft-prev-disable, .bdyt .bdyt-layer-main-ft-next, .bdyt .bdyt-layer-main-ft-next-disable, .bdyt .bdyt-layer-main-ft-switch, .bdyt .bdyt-layer-main-ft-switch:hover, .bdyt .bdyt-layer-main-ft-switch-close, .bdyt .bdyt-layer-main-ft-switch-close:hover {background-image: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-sprite_z.png'); _background-image: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-sprite_z_ie6.png');} .bdyt-overflow-x-hidden {overflow-x:hidden;} .bdyt .bdyt-layer-close{background-position:20px 20px;} .bdyt .bdyt-layer-close:hover{background-position:20px -50px;} .bdyt .bdyt-layer-close,.bdyt .bdyt-layer-close:hover{background-image: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-close-sprite_z.png'); _background-image: url('http://static.yuntu.baidu.com/1201/css-style/bdyt-layer-close-sprite_z_ie6.png');} ");