if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(h,t){function e(t,e){return e.toUpperCase()}var d=[],u=d.slice,m=d.concat,a=d.push,o=d.indexOf,n={},i=n.toString,v=n.hasOwnProperty,g={},r="1.11.3",C=function(t,e){return new C.fn.init(t,e)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,c=/-([\da-z])/gi;function p(t){var e="length"in t&&t.length,n=C.type(t);return"function"!==n&&!C.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0>10|55296,1023&i|56320)}function i(){g()}var t,h,x,r,o,m,p,v,w,c,u,g,T,s,y,b,a,f,C,S="sizzle"+1*new Date,E=n.document,N=0,k=0,l=rt(),$=rt(),A=rt(),D=function(t,e){return t===e&&(u=!0),0},I={}.hasOwnProperty,e=[],j=e.pop,L=e.push,O=e.push,R=e.slice,H=function(t,e){for(var n=0,i=t.length;n+~]|"+M+")"+M+"*"),X=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),Q=new RegExp(W),G=new RegExp("^"+P+"$"),J={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+_+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,tt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,nt=/'|\\/g,it=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig");try{O.apply(e=R.call(E.childNodes),E.childNodes),e[E.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){L.apply(t,R.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,n,i){var o,r,s,a,l,c,u,d,p,f;if((e?e.ownerDocument||e:E)!==T&&g(e),n=n||[],a=(e=e||T).nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return n;if(!i&&y){if(11!==a&&(o=tt.exec(t)))if(s=o[1]){if(9===a){if(!(r=e.getElementById(s))||!r.parentNode)return n;if(r.id===s)return n.push(r),n}else if(e.ownerDocument&&(r=e.ownerDocument.getElementById(s))&&C(e,r)&&r.id===s)return n.push(r),n}else{if(o[2])return O.apply(n,e.getElementsByTagName(t)),n;if((s=o[3])&&h.getElementsByClassName)return O.apply(n,e.getElementsByClassName(s)),n}if(h.qsa&&(!b||!b.test(t))){if(d=u=S,p=e,f=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=m(t),(u=e.getAttribute("id"))?d=u.replace(nt,"\\$&"):e.setAttribute("id",d),d="[id='"+d+"'] ",l=c.length;l--;)c[l]=d+mt(c[l]);p=et.test(t)&&ft(e.parentNode)||e,f=c.join(",")}if(f)try{return O.apply(n,p.querySelectorAll(f)),n}catch(t){}finally{u||e.removeAttribute("id")}}}return v(t.replace(U,"$1"),e,n,i)}function rt(){var i=[];return function t(e,n){return i.push(e+" ")>x.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function st(t){return t[S]=!0,t}function at(t){var e=T.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),i=t.length;i--;)x.attrHandle[n[i]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function pt(s){return st(function(r){return r=+r,st(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in h=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},g=ot.setDocument=function(t){var e,n,l=t?t.ownerDocument||t:E;return l!==T&&9===l.nodeType&&l.documentElement?(s=(T=l).documentElement,(n=l.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),y=!o(l),h.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),h.getElementsByTagName=at(function(t){return t.appendChild(l.createComment("")),!t.getElementsByTagName("*").length}),h.getElementsByClassName=Z.test(l.getElementsByClassName),h.getById=at(function(t){return s.appendChild(t).id=S,!l.getElementsByName||!l.getElementsByName(S).length}),h.getById?(x.find.ID=function(t,e){if(void 0!==e.getElementById&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(t){var e=t.replace(it,d);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var n=t.replace(it,d);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),x.find.TAG=h.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):h.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},x.find.CLASS=h.getElementsByClassName&&function(t,e){return y?e.getElementsByClassName(t):void 0},a=[],b=[],(h.qsa=Z.test(l.querySelectorAll))&&(at(function(t){s.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+M+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||b.push("\\["+M+"*(?:value|"+_+")"),t.querySelectorAll("[id~="+S+"-]").length||b.push("~="),t.querySelectorAll(":checked").length||b.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||b.push(".#.+[+~]")}),at(function(t){var e=l.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&b.push("name"+M+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),b.push(",.*:")})),(h.matchesSelector=Z.test(f=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&at(function(t){h.disconnectedMatch=f.call(t,"div"),f.call(t,"[s!='']:x"),a.push("!=",W)}),b=b.length&&new RegExp(b.join("|")),a=a.length&&new RegExp(a.join("|")),e=Z.test(s.compareDocumentPosition),C=e||Z.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!h.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument===E&&C(E,t)?-1:e===l||e.ownerDocument===E&&C(E,e)?1:c?H(c,t)-H(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t===l?-1:e===l?1:o?-1:r?1:c?H(c,t)-H(c,e):0;if(o===r)return ct(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ct(s[i],a[i]):s[i]===E?-1:a[i]===E?1:0},l):T},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==T&&g(t),e=e.replace(X,"='$1']"),!(!h.matchesSelector||!y||a&&a.test(e)||b&&b.test(e)))try{var n=f.call(t,e);if(n||h.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,d),t[3]=(t[3]||t[4]||t[5]||"").replace(it,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return J.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Q.test(n)&&(e=m(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=l[t+" "];return e||(e=new RegExp("(^|"+M+")"+t+"("+M+"|$)"))&&l(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(t){var e=ot.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===o:"!="===i?e!==o:"^="===i?o&&0===e.indexOf(o):"*="===i?o&&-1(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function w(t,n,i){if(C.isFunction(n))return C.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return C.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(x.test(n))return C.filter(n,t,i);n=C.filter(n,t)}return C.grep(t,function(t){return 0<=C.inArray(t,n)!==i})}C.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?C.find.matchesSelector(i,t)?[i]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e)[^>]*|#([\w-]*))$/;(C.fn.init=function(t,e){var n,i;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==T.ready?T.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this));if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:E.exec(t))||!n[1]&&e)return!e||e.jquery?(e||T).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:S,!0)),b.test(n[1])&&C.isPlainObject(e))for(n in e)C.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((i=S.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return T.find(t);this.length=1,this[0]=i}return this.context=S,this.selector=t,this}).prototype=C.fn,T=C(S);var N=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.extend({dir:function(t,e,n){for(var i=[],o=t[e];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!C(o).is(n));)1===o.nodeType&&i.push(o),o=o[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),C.fn.extend({has:function(t){var e,n=C(t,this),i=n.length;return this.filter(function(){for(e=0;e
a",g.leadingWhitespace=3===e.firstChild.nodeType,g.tbody=!e.getElementsByTagName("tbody").length,g.htmlSerialize=!!e.getElementsByTagName("link").length,g.html5Clone="<:nav>"!==S.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),g.appendChecked=t.checked,e.innerHTML="",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="",g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){g.noCloneEvent=!1}),e.cloneNode(!0).click()),null==g.deleteExpando){g.deleteExpando=!0;try{delete e.test}catch(t){g.deleteExpando=!1}}}(),function(){var t,e,n=S.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(g[t+"Bubbles"]=e in h)||(n.setAttribute(e,"t"),g[t+"Bubbles"]=!1===n.attributes[e].expando);n=null}();var X=/^(?:input|select|textarea)$/i,Q=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,J=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Z(){return!1}function tt(){try{return S.activeElement}catch(t){}}function et(t){var e=nt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}C.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,u,d,p,f,h,m,v=C._data(t);if(v){for(n.handler&&(n=(l=n).handler,o=l.selector),n.guid||(n.guid=C.guid++),(s=v.events)||(s=v.events={}),(u=v.handle)||((u=v.handle=function(t){return typeof C===R||t&&C.event.triggered===t.type?void 0:C.event.dispatch.apply(u.elem,arguments)}).elem=t),a=(e=(e||"").match(D)||[""]).length;a--;)f=m=(r=Y.exec(e[a])||[])[1],h=(r[2]||"").split(".").sort(),f&&(c=C.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=C.event.special[f]||{},d=C.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:h.join(".")},l),(p=s[f])||((p=s[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,h,u)||(t.addEventListener?t.addEventListener(f,u,!1):t.attachEvent&&t.attachEvent("on"+f,u))),c.add&&(c.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,d):p.push(d),C.event.global[f]=!0);t=null}},remove:function(t,e,n,i,o){var r,s,a,l,c,u,d,p,f,h,m,v=C.hasData(t)&&C._data(t);if(v&&(u=v.events)){for(c=(e=(e||"").match(D)||[""]).length;c--;)if(f=m=(a=Y.exec(e[c])||[])[1],h=(a[2]||"").split(".").sort(),f){for(d=C.event.special[f]||{},p=u[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=p.length;r--;)s=p[r],!o&&m!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(p.splice(r,1),s.selector&&p.delegateCount--,d.remove&&d.remove.call(t,s));l&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,h,v.handle)||C.removeEvent(t,f,v.handle),delete u[f])}else for(f in u)C.event.remove(t,f+e[c],n,i,!0);C.isEmptyObject(u)&&(delete v.handle,C._removeData(t,"events"))}},trigger:function(t,e,n,i){var o,r,s,a,l,c,u,d=[n||S],p=v.call(t,"type")?t.type:t,f=v.call(t,"namespace")?t.namespace.split("."):[];if(s=c=n=n||S,3!==n.nodeType&&8!==n.nodeType&&!J.test(p+C.event.triggered)&&(0<=p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),r=p.indexOf(":")<0&&"on"+p,(t=t[C.expando]?t:new C.Event(p,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=f.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:C.makeArray(e,[t]),l=C.event.special[p]||{},i||!l.trigger||!1!==l.trigger.apply(n,e))){if(!i&&!l.noBubble&&!C.isWindow(n)){for(a=l.delegateType||p,J.test(a+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(n.ownerDocument||S)&&d.push(c.defaultView||c.parentWindow||h)}for(u=0;(s=d[u++])&&!t.isPropagationStopped();)t.type=1]","i"),rt=/^\s+/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,at=/<([\w:]+)/,lt=/\s*$/g,mt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:g.htmlSerialize?[0,"",""]:[1,"X
","
"]},vt=et(S).appendChild(S.createElement("div"));function gt(t,e){var n,i,o=0,r=typeof t.getElementsByTagName!==R?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==R?t.querySelectorAll(e||"*"):void 0;if(!r)for(r=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||C.nodeName(i,e)?r.push(i):C.merge(r,gt(i,e));return void 0===e||e&&C.nodeName(t,e)?C.merge([t],r):r}function yt(t){V.test(t.type)&&(t.defaultChecked=t.checked)}function bt(t,e){return C.nodeName(t,"table")&&C.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function xt(t){return t.type=(null!==C.find.attr(t,"type"))+"/"+t.type,t}function wt(t){var e=ft.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Tt(t,e){for(var n,i=0;null!=(n=t[i]);i++)C._data(n,"globalEval",!e||C._data(e[i],"globalEval"))}function Ct(t,e){if(1===e.nodeType&&C.hasData(t)){var n,i,o,r=C._data(t),s=C._data(e,r),a=r.events;if(a)for(n in delete s.handle,s.events={},a)for(i=0,o=a[n].length;i")?r=t.cloneNode(!0):(vt.innerHTML=t.outerHTML,vt.removeChild(r=vt.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(i=gt(r),a=gt(t),s=0;null!=(o=a[s]);++s)i[s]&&St(o,i[s]);if(e)if(n)for(a=a||gt(t),i=i||gt(r),s=0;null!=(o=a[s]);s++)Ct(o,i[s]);else Ct(t,r);return 0<(i=gt(r,"script")).length&&Tt(i,!l&>(t,"script")),i=a=o=null,r},buildFragment:function(t,e,n,i){for(var o,r,s,a,l,c,u,d=t.length,p=et(e),f=[],h=0;h")+u[2],o=u[0];o--;)a=a.lastChild;if(!g.leadingWhitespace&&rt.test(r)&&f.push(e.createTextNode(rt.exec(r)[0])),!g.tbody)for(o=(r="table"!==l||lt.test(r)?""!==u[1]||lt.test(r)?0:a:a.firstChild)&&r.childNodes.length;o--;)C.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(C.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=p.lastChild}else f.push(e.createTextNode(r));for(a&&p.removeChild(a),g.appendChecked||C.grep(gt(f,"input"),yt),h=0;r=f[h++];)if((!i||-1===C.inArray(r,i))&&(s=C.contains(r.ownerDocument,r),a=gt(p.appendChild(r),"script"),s&&Tt(a),n))for(o=0;r=a[o++];)pt.test(r.type||"")&&n.push(r);return a=null,p},cleanData:function(t,e){for(var n,i,o,r,s=0,a=C.expando,l=C.cache,c=g.deleteExpando,u=C.event.special;null!=(n=t[s]);s++)if((e||C.acceptData(n))&&(r=(o=n[a])&&l[o])){if(r.events)for(i in r.events)u[i]?C.event.remove(n,i):C.removeEvent(n,i,r.handle);l[o]&&(delete l[o],c?delete n[a]:typeof n.removeAttribute!==R?n.removeAttribute(a):n[a]=null,d.push(o))}}}),C.fn.extend({text:function(t){return z(this,function(t){return void 0===t?C.text(this):this.empty().append((this[0]&&this[0].ownerDocument||S).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||bt(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=bt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?C.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||C.cleanData(gt(n)),n.parentNode&&(e&&C.contains(n.ownerDocument,n)&&Tt(gt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&C.cleanData(gt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&C.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return z(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(it,""):void 0;if(!("string"!=typeof t||ut.test(t)||!g.htmlSerialize&&ot.test(t)||!g.leadingWhitespace&&rt.test(t)||mt[(at.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(st,"<$1>");try{for(;n")).appendTo(e.documentElement))[0].contentWindow||Et[0].contentDocument).document).write(),e.close(),n=$t(t,e),Et.detach()),kt[t]=n),n}g.shrinkWrapBlocks=function(){return null!=Nt?Nt:(Nt=!1,(e=S.getElementsByTagName("body")[0])&&e.style?(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),typeof t.style.zoom!==R&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(S.createElement("div")).style.width="5px",Nt=3!==t.offsetWidth),e.removeChild(n),Nt):void 0);var t,e,n};var Dt,It,jt=/^margin/,Lt=new RegExp("^("+B+")(?!px)[a-z%]+$","i"),Ot=/^(top|right|bottom|left)$/;function Rt(e,n){return{get:function(){var t=e();if(null!=t)return t?void delete this.get:(this.get=n).apply(this,arguments)}}}h.getComputedStyle?(Dt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):h.getComputedStyle(t,null)},It=function(t,e,n){var i,o,r,s,a=t.style;return s=(n=n||Dt(t))?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==s||C.contains(t.ownerDocument,t)||(s=C.style(t,e)),Lt.test(s)&&jt.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0===s?s:s+""}):S.documentElement.currentStyle&&(Dt=function(t){return t.currentStyle},It=function(t,e,n){var i,o,r,s,a=t.style;return null==(s=(n=n||Dt(t))?n[e]:void 0)&&a&&a[e]&&(s=a[e]),Lt.test(s)&&!Ot.test(e)&&(i=a.left,(r=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=i,r&&(o.left=r)),void 0===s?s:s+""||"auto"}),function(){var t,e,n,o,r,s,a;if((t=S.createElement("div")).innerHTML="
a",e=(n=t.getElementsByTagName("a")[0])&&n.style){function i(){var t,e,n,i;(e=S.getElementsByTagName("body")[0])&&e.style&&(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=r=!1,a=!0,h.getComputedStyle&&(o="1%"!==(h.getComputedStyle(t,null)||{}).top,r="4px"===(h.getComputedStyle(t,null)||{width:"4px"}).width,(i=t.appendChild(S.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",a=!parseFloat((h.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="
t
",(i=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),e.removeChild(n))}e.cssText="float:left;opacity:.5",g.opacity="0.5"===e.opacity,g.cssFloat=!!e.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===t.style.backgroundClip,g.boxSizing=""===e.boxSizing||""===e.MozBoxSizing||""===e.WebkitBoxSizing,C.extend(g,{reliableHiddenOffsets:function(){return null==s&&i(),s},boxSizingReliable:function(){return null==r&&i(),r},pixelPosition:function(){return null==o&&i(),o},reliableMarginRight:function(){return null==a&&i(),a}})}}(),C.swap=function(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in o=n.apply(t,i||[]),e)t.style[r]=s[r];return o};var Ht=/alpha\([^)]*\)/i,_t=/opacity\s*=\s*([^)]*)/,Mt=/^(none|table(?!-c[ea]).+)/,Ft=new RegExp("^("+B+")(.*)$","i"),Pt=new RegExp("^([+-])=("+B+")","i"),qt={position:"absolute",visibility:"hidden",display:"block"},Wt={letterSpacing:"0",fontWeight:"400"},Bt=["Webkit","O","Moz","ms"];function Ut(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=Bt.length;o--;)if((e=Bt[o]+n)in t)return e;return i}function zt(t,e){for(var n,i,o,r=[],s=0,a=t.length;s
a",ee=Zt.getElementsByTagName("a")[0],ne=(te=S.createElement("select")).appendChild(S.createElement("option")),Kt=Zt.getElementsByTagName("input")[0],ee.style.cssText="top:1px",g.getSetAttribute="t"!==Zt.className,g.style=/top/.test(ee.getAttribute("style")),g.hrefNormalized="/a"===ee.getAttribute("href"),g.checkOn=!!Kt.value,g.optSelected=ne.selected,g.enctype=!!S.createElement("form").enctype,te.disabled=!0,g.optDisabled=!ne.disabled,(Kt=S.createElement("input")).setAttribute("value",""),g.input=""===Kt.getAttribute("value"),Kt.value="t",Kt.setAttribute("type","radio"),g.radioValue="t"===Kt.value;var pe=/\r/g;C.fn.extend({val:function(n){var i,t,o,e=this[0];return arguments.length?(o=C.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=o?n.call(this,t,C(this).val()):n)?e="":"number"==typeof e?e+="":C.isArray(e)&&(e=C.map(e,function(t){return null==t?"":t+""})),(i=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):e?(i=C.valHooks[e.type]||C.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(pe,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:C.trim(C.text(t))}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,r="select-one"===t.type||o<0,s=r?null:[],a=r?o+1:i.length,l=o<0?a:r?o:0;l").append(C.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length};var Ke=h.document.documentElement;function Ze(t){return C.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}C.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,c=C.css(t,"position"),u=C(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),r=C.css(t,"top"),l=C.css(t,"left"),o=("absolute"===c||"fixed"===c)&&-1this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},v.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var r=i[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},v.prototype.getDefaults=function(){return v.DEFAULTS},v.prototype.getOptions=function(t){return(t=m.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},v.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},v.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},v.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},v.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e)),t instanceof m.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},v.prototype.show=function(){var t=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(r);a&&(r=r.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,u=i[0].offsetHeight;if(a){var d=r,p=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+u>p.bottom?"top":"top"==r&&l.top-up.width?"left":"left"==r&&l.left-cs.top+s.height&&(o.top=s.top+s.height-l)}else{var c=e.left-r,u=e.left+r+n;cs.right&&(o.left=s.left+s.width-u)}return o},v.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},v.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},v.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},v.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},v.prototype.enable=function(){this.enabled=!0},v.prototype.disable=function(){this.enabled=!1},v.prototype.toggleEnabled=function(){this.enabled=!this.enabled},v.prototype.toggle=function(t){var e=this;t&&((e=m(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),m(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},v.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var t=m.fn.tooltip;m.fn.tooltip=function(i){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new v(this,n)),"string"==typeof i&&e[i]())})},m.fn.tooltip.Constructor=v,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=t,this}}(jQuery),function(o){"use strict";function r(t,e){this.init("popover",t,e)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.6",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(i){return this.each(function(){var t=o(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})},o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(r){"use strict";function o(t,e){this.$body=r(document.body),this.$scrollElement=r(r(t).is(document.body)?window:t),this.options=r.extend({},o.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=r(this),e=t.data("bs.scrollspy"),n="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new o(this,n)),"string"==typeof i&&e[i]()})}o.VERSION="3.3.6",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=r(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&r(e);return n&&n.length&&n.is(":visible")&&[[n[i]().top+o,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},o.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e=o[t]&&(void 0===o[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var o=e.find("> .active"),r=n&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i(),o.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};function n(t){t.preventDefault(),e.call(a(this),"show")}a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";function n(i){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof i&&i;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof i&&e[i]()})}var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o=o.totalSlides&&(n.startSlide=o.totalSlides-1),o.currentSlide=n.startSlide),E(r[o.currentSlide]).is("img")?o.currentImage=E(r[o.currentSlide]):o.currentImage=E(r[o.currentSlide]).find("img:first"),E(r[o.currentSlide]).is("a")&&E(r[o.currentSlide]).css("display","block");var x=E("").addClass("nivo-main-image");function w(t){var e=E(".nivo-caption",i);if(""!=o.currentImage.attr("title")&&null!=o.currentImage.attr("title")){var n=o.currentImage.attr("title");"#"==n.substr(0,1)&&(n=E(n).html()),"block"==e.css("display")?setTimeout(function(){e.html(n)},t.animSpeed):(e.html(n),e.stop().fadeIn(t.animSpeed))}else e.stop().fadeOut(t.animSpeed)}x.attr("src",o.currentImage.attr("src")).show(),i.append(x),E(window).resize(function(){i.children("img").width(i.width()),x.attr("src",o.currentImage.attr("src")),x.stop().height("auto"),E(".nivo-slice").remove(),E(".nivo-box").remove()}),i.append(E('
')),w(n);var s=0;if(!n.manualAdvance&&1'+n.prevText+''+n.nextText+""),E(i).on("click","a.nivo-prevNav",function(){if(o.running)return!1;clearInterval(s),s="",o.currentSlide-=2,u(i,r,n,"prev")}),E(i).on("click","a.nivo-nextNav",function(){if(o.running)return!1;clearInterval(s),s="",u(i,r,n,"next")})),n.controlNav){o.controlNavEl=E('
'),i.after(o.controlNavEl);for(var a=0;a')}else o.controlNavEl.append(''+(a+1)+"");E("a:eq("+o.currentSlide+")",o.controlNavEl).addClass("active"),E("a",o.controlNavEl).bind("click",function(){return!o.running&&(!E(this).hasClass("active")&&(clearInterval(s),s="",x.attr("src",o.currentImage.attr("src")),o.currentSlide=E(this).attr("rel")-1,void u(i,r,n,"control")))})}function T(t,e,n){E(n.currentImage).parent().is("a")&&E(n.currentImage).parent().css("display","block"),E('img[src="'+n.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();for(var i=E('img[src="'+n.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?E('img[src="'+n.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():E('img[src="'+n.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height(),o=0;o').css({left:r*o+"px",width:t.width()-r*o+"px",height:i+"px",opacity:"0",overflow:"hidden"})):t.append(E('
').css({left:r*o+"px",width:r+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}E(".nivo-slice",t).height(i),x.stop().animate({height:E(n.currentImage).height()},e.animSpeed)}function C(t,e,n){E(n.currentImage).parent().is("a")&&E(n.currentImage).parent().css("display","block"),E('img[src="'+n.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();for(var i=Math.round(t.width()/e.boxCols),o=Math.round(E('img[src="'+n.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/e.boxRows),r=0;r').css({opacity:0,left:i*s+"px",top:o*r+"px",width:t.width()-i*s+"px"})):t.append(E('
').css({opacity:0,left:i*s+"px",top:o*r+"px",width:i+"px"})),E('.nivo-box[name="'+s+'"]',t).height(E('.nivo-box[name="'+s+'"] img',t).height()+"px");x.stop().animate({height:E(n.currentImage).height()},e.animSpeed)}function c(t){this.console&&void 0!==console.log&&console.log(t)}n.pauseOnHover&&i.hover(function(){o.paused=!0,clearInterval(s),s=""},function(){o.paused=!1,""!==s||n.manualAdvance||(s=setInterval(function(){u(i,r,n,!1)},n.pauseTime))}),i.bind("nivo:animFinished",function(){x.attr("src",o.currentImage.attr("src")),o.running=!1,E(r).each(function(){E(this).is("a")&&E(this).css("display","none")}),E(r[o.currentSlide]).is("a")&&E(r[o.currentSlide]).css("display","block"),""!==s||o.paused||n.manualAdvance||(s=setInterval(function(){u(i,r,n,!1)},n.pauseTime)),n.afterChange.call(this)});var u=function(l,t,c,e){var n=l.data("nivo:vars");if(n&&n.currentSlide===n.totalSlides-1&&c.lastSlide.call(this),(!n||n.stop)&&!e)return!1;c.beforeChange.call(this),e?("prev"===e&&x.attr("src",n.currentImage.attr("src")),"next"===e&&x.attr("src",n.currentImage.attr("src"))):x.attr("src",n.currentImage.attr("src")),n.currentSlide++,n.currentSlide===n.totalSlides&&(n.currentSlide=0,c.slideshowEnd.call(this)),n.currentSlide<0&&(n.currentSlide=n.totalSlides-1),E(t[n.currentSlide]).is("img")?n.currentImage=E(t[n.currentSlide]):n.currentImage=E(t[n.currentSlide]).find("img:first"),c.controlNav&&(E("a",n.controlNavEl).removeClass("active"),E("a:eq("+n.currentSlide+")",n.controlNavEl).addClass("active")),w(c),E(".nivo-slice",l).remove(),E(".nivo-box",l).remove();var u=c.effect,i="";"random"===c.effect&&(i=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"),void 0===(u=i[Math.floor(Math.random()*(i.length+1))])&&(u="fade")),-1!==c.effect.indexOf(",")&&(i=c.effect.split(","),void 0===(u=i[Math.floor(Math.random()*i.length)])&&(u="fade")),n.currentImage.attr("data-transition")&&(u=n.currentImage.attr("data-transition")),n.running=!0;var o=0,r=0,s="",a="",d="",p="";if("sliceDown"===u||"sliceDownRight"===u||"sliceDownLeft"===u)T(l,c,n),r=o=0,s=E(".nivo-slice",l),"sliceDownLeft"===u&&(s=E(".nivo-slice",l)._reverse()),s.each(function(){var t=E(this);t.css({top:"0px"}),r===c.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},c.animSpeed,"",function(){l.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1.0"},c.animSpeed)},100+o),o+=50,r++});else if("sliceUp"===u||"sliceUpRight"===u||"sliceUpLeft"===u)T(l,c,n),r=o=0,s=E(".nivo-slice",l),"sliceUpLeft"===u&&(s=E(".nivo-slice",l)._reverse()),s.each(function(){var t=E(this);t.css({bottom:"0px"}),r===c.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},c.animSpeed,"",function(){l.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1.0"},c.animSpeed)},100+o),o+=50,r++});else if("sliceUpDown"===u||"sliceUpDownRight"===u||"sliceUpDownLeft"===u){T(l,c,n);var f=r=o=0;s=E(".nivo-slice",l),"sliceUpDownLeft"===u&&(s=E(".nivo-slice",l)._reverse()),s.each(function(){var t=E(this);0===r?(t.css("top","0px"),r++):(t.css("bottom","0px"),r=0),f===c.slices-1?setTimeout(function(){t.animate({opacity:"1.0"},c.animSpeed,"",function(){l.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1.0"},c.animSpeed)},100+o),o+=50,f++})}else if("fold"===u)T(l,c,n),r=o=0,E(".nivo-slice",l).each(function(){var t=E(this),e=t.width();t.css({top:"0px",width:"0px"}),r===c.slices-1?setTimeout(function(){t.animate({width:e,opacity:"1.0"},c.animSpeed,"",function(){l.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({width:e,opacity:"1.0"},c.animSpeed)},100+o),o+=50,r++});else if("fade"===u)T(l,c,n),(a=E(".nivo-slice:first",l)).css({width:l.width()+"px"}),a.animate({opacity:"1.0"},2*c.animSpeed,"",function(){l.trigger("nivo:animFinished")});else if("slideInRight"===u)T(l,c,n),(a=E(".nivo-slice:first",l)).css({width:"0px",opacity:"1"}),a.animate({width:l.width()+"px"},2*c.animSpeed,"",function(){l.trigger("nivo:animFinished")});else if("slideInLeft"===u)T(l,c,n),(a=E(".nivo-slice:first",l)).css({width:"0px",opacity:"1",left:"",right:"0px"}),a.animate({width:l.width()+"px"},2*c.animSpeed,"",function(){a.css({left:"0px",right:""}),l.trigger("nivo:animFinished")});else if("boxRandom"===u)C(l,c,n),d=c.boxCols*c.boxRows,o=r=0,(p=S(E(".nivo-box",l))).each(function(){var t=E(this);r===d-1?setTimeout(function(){t.animate({opacity:"1"},c.animSpeed,"",function(){l.trigger("nivo:animFinished")})},100+o):setTimeout(function(){t.animate({opacity:"1"},c.animSpeed)},100+o),o+=20,r++});else if("boxRain"===u||"boxRainReverse"===u||"boxRainGrow"===u||"boxRainGrowReverse"===u){C(l,c,n),d=c.boxCols*c.boxRows;var h=o=r=0,m=0,v=[];v[h]=[],p=E(".nivo-box",l),"boxRainReverse"!==u&&"boxRainGrowReverse"!==u||(p=E(".nivo-box",l)._reverse()),p.each(function(){v[h][m]=E(this),++m===c.boxCols&&(m=0,v[++h]=[])});for(var g=0;g<2*c.boxCols;g++){for(var y=g,b=0;b