Template:SMTexas/JSbook
From 2014hs.igem.org
/*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m=a.document,n="2.1.0",o=function(a,b){return new o.fn.init(a,b)},p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};o.fn=o.prototype={jquery:n,constructor:o,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=o.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return o.each(this,a,b)},map:function(a){return this.pushStack(o.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},o.extend=o.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||o.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(o.isPlainObject(d)||(e=o.isArray(d)))?(e?(e=!1,f=c&&o.isArray(c)?c:[]):f=c&&o.isPlainObject(c)?c:{},g[b]=o.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},o.extend({expando:"jQuery"+(n+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===o.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isPlainObject:function(a){if("object"!==o.type(a)||a.nodeType||o.isWindow(a))return!1;try{if(a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}return!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=o.trim(a),a&&(1===a.indexOf("use strict")?(b=m.createElement("script"),b.text=a,m.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":k.call(a)},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?o.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),o.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||o.guid++,f):void 0},now:Date.now,support:l}),o.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=o.type(a);return"function"===c||o.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=><option selected=></option></select>",a.querySelectorAll("[t^=]").length&&o.push("[*^$]="+K+"*(?:|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!=]:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);o.find=t,o.expr=t.selectors,o.expr[":"]=o.expr.pseudos,o.unique=t.uniqueSort,o.text=t.getText,o.isXMLDoc=t.isXML,o.contains=t.contains;var u=o.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(o.isFunction(b))return o.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return o.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return o.filter(b,a,c);b=o.filter(b,a)}return o.grep(a,function(a){return g.call(b,a)>=0!==c})}o.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?o.find.matchesSelector(d,a)?[d]:[]:o.find.matches(a,o.grep(b,function(a){return 1===a.nodeType}))},o.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(o(a).filter(function(){for(b=0;c>b;b++)if(o.contains(e[b],this))return!0}));for(b=0;c>b;b++)o.find(a,e[b],d);return d=this.pushStack(c>1?o.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?o(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=o.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof o?b[0]:b,o.merge(this,o.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:m,!0)),v.test(c[1])&&o.isPlainObject(b))for(c in b)o.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=m.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=m,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):o.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(o):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),o.makeArray(a,this))};A.prototype=o.fn,y=o(m);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};o.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&o(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),o.fn.extend({has:function(a){var b=o(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(o.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?o(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&o.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?o.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(o(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(o.unique(o.merge(this.get(),o(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}o.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return o.dir(a,"parentNode")},parentsUntil:function(a,b,c){return o.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return o.dir(a,"nextSibling")},prevAll:function(a){return o.dir(a,"previousSibling")},nextUntil:function(a,b,c){return o.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return o.dir(a,"previousSibling",c)},siblings:function(a){return o.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return o.sibling(a.firstChild)},contents:function(a){return a.contentDocument||o.merge([],a.childNodes)}},function(a,b){o.fn[a]=function(c,d){var e=o.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=o.filter(d,e)),this.length>1&&(C[a]||o.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return o.each(a.match(E)||[],function(a,c){b[c]=!0}),b}o.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):o.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){o.each(b,function(b,c){var d=o.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&o.each(arguments,function(a,b){var c;while((c=o.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?o.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},o.extend({Deferred:function(a){var b=[["resolve","done",o.Callbacks("once memory"),"resolved"],["reject","fail",o.Callbacks("once memory"),"rejected"],["notify","progress",o.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return o.Deferred(function(c){o.each(b,function(b,f){var g=o.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&o.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?o.extend(a,d):d}},e={};return d.pipe=d.then,o.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&o.isFunction(a.promise)?e:0,g=1===f?a:o.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&o.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;o.fn.ready=function(a){return o.ready.promise().done(a),this},o.extend({isReady:!1,readyWait:1,holdReady:function(a){a?o.readyWait++:o.ready(!0)},ready:function(a){(a===!0?--o.readyWait:o.isReady)||(o.isReady=!0,a!==!0&&--o.readyWait>0||(H.resolveWith(m,[o]),o.fn.trigger&&o(m).trigger("ready").off("ready")))}});function I(){m.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),o.ready()}o.ready.promise=function(b){return H||(H=o.Deferred(),"complete"===m.readyState?setTimeout(o.ready):(m.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},o.ready.promise();var J=o.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===o.type(c)){e=!0;for(h in c)o.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,o.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(o(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};o.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=o.expando+Math.random()}K.uid=1,K.accepts=o.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,o.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(o.isEmptyObject(f))o.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,o.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{o.isArray(b)?d=b.concat(b.map(o.camelCase)):(e=o.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!o.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?o.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}o.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),o.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length; while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=o.camelCase(d.slice(5)),P(f,d,e[d]));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=o.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),o.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||o.isArray(c)?d=L.access(a,b,o.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=o.queue(a,b),d=c.length,e=c.shift(),f=o._queueHooks(a,b),g=function(){o.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:o.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),o.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?o.queue(this[0],a):void 0===b?this:this.each(function(){var c=o.queue(this,a,b);o._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&o.dequeue(this,a)})},dequeue:function(a){return this.each(function(){o.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=o.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===o.css(a,"display")||!o.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=m.createDocumentFragment(),b=a.appendChild(m.createElement("div"));b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";l.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return m.activeElement}catch(a){}}o.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=o.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof o!==U&&o.event.triggered!==b.type?o.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n&&(l=o.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=o.event.special[n]||{},k=o.extend({type:n,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&o.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),o.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n){l=o.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||o.removeEvent(a,n,r.handle),delete i[n])}else for(n in i)o.event.remove(a,n+b[j],c,d,!0);o.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,p=[d||m],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||m,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+o.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[o.expando]?b:new o.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:o.makeArray(c,[b]),n=o.event.special[q]||{},e||!n.trigger||n.trigger.apply(d,c)!==!1)){if(!e&&!n.noBubble&&!o.isWindow(d)){for(i=n.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||m)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:n.bindType||q,l=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),l&&l.apply(g,c),l=k&&g[k],l&&l.apply&&o.acceptData(g)&&(b.result=l.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||n._default&&n._default.apply(p.pop(),c)!==!1||!o.acceptData(d)||k&&o.isFunction(d[q])&&!o.isWindow(d)&&(h=d[k],h&&(d[k]=null),o.event.triggered=q,d[q](),o.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=o.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=o.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=o.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((o.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?o(e,this).index(i)>=0:o.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},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(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||m,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[o.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new o.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=m),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&o.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return o.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=o.extend(new o.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?o.event.trigger(e,null,b):o.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},o.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},o.Event=function(a,b){return this instanceof o.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.getPreventDefault&&a.getPreventDefault()?Z:$):this.type=a,b&&o.extend(this,b),this.timeStamp=a&&a.timeStamp||o.now(),void(this[o.expando]=!0)):new o.Event(a,b)},o.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z,this.stopPropagation()}},o.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){o.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!o.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.focusinBubbles||o.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){o.event.simulate(b,a.target,o.event.fix(a),!0)};o.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),o.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return o().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=o.guid++)),this.each(function(){o.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,o(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){o.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){o.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?o.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * Neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. *
- /
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
/*
* jQuery Booklet Plugin * Copyright (c) 2010 - 2014 William Grauvogel (http://builtbywill.com/) * * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * * Version : 1.4.4 * * Originally based on the work of: * 1) Charles Mangin (http://clickheredammit.com/pageflip/) */
- (function(a){a.fn.booklet=function(k,f,d){var i,c,h,g,l,e,j;if(typeof k==="string"){l=[];a(this).each(function(){i=a(this).data("booklet");if(i){c=k;h=[];if(typeof f!=="undefined"){h.push(f)}if(typeof d!=="undefined"){h.push(d)}if(i[c]){g=i[c].apply(i,h);if(typeof g!=="undefined"||g){l.push(i[c].apply(i,h))}}else{a.error('Method "'+c+'" does not exist on jQuery.booklet.')}}else{a.error('jQuery.booklet has not been initialized. Method "'+k+'" cannot be called.')}});if(l.length==1){return l[0]}else{if(l.length>0){return l}else{return a(this)}}}else{if(typeof k==="number"){return a(this).each(function(){i=a(this).data("booklet");if(i){j=k;i.gotopage(j)}else{a.error("jQuery.booklet has not been initialized.")}})}else{if(typeof c==="object"||!c){return a(this).each(function(){e=a.extend({},a.fn.booklet.defaults,k);i=a(this).data("booklet");if(i){i.destroy()}i=new b(a(this),e);i.init();return this})}}}};function b(bg,a7){var aH=bg,aI=a7,au=false,aj=false,aS=false,f=false,aR=false,Q=false,o={empty
- '',blank:'',sF:'',sB:''},aO={leftToRight:"LTR",rightToLeft:"RTL"},aN={},am={},e,a1,C,u=[],an="",az="/page/",al,ag,ae,ai,at,z,ax,t,V,aG,aF,aD,aB,ay,bd,aP,af,D,k,bb,a2,bc,be,aL,s,aU,B,a0,aZ,aq,aX,aV,x,U,T,P,O,m,l,w,aE,p,a4,Y,S,n,d,aT,aC,aK,c,a8,X,ad,ap,aw,I,K,ar,av,y,aY,E={create:"bookletcreate",start:"bookletstart",change:"bookletchange",add:"bookletadd",remove:"bookletremove"},L,a5=function(h,bi,bh){var j="",bj="",i;if(h.attr("rel")){j=h.attr("rel")}if(h.attr("title")){bj=h.attr("title")}if(h.hasClass("b-page-empty")){h.wrap('')}else{if(bh.closed&&bh.covers&&(bi==1||bi==bh.pageTotal-2)){h.wrap('')}else{if(bi%2!=0){h.wrap('')}else{h.wrap('')}}}i=h.parents(".b-page").addClass("b-page-"+bi);if(bh.pageNumbers&&!h.hasClass("b-page-empty")&&(!bh.closed||(bh.closed&&!bh.covers)||(bh.closed&&bh.covers&&bi!=1&&bi!=bh.pageTotal-2))){if(bh.direction==aO.leftToRight){t++}h.parent().append(''+t+"");if(bh.direction==aO.rightToLeft){t--}}return{index:bi,contentNode:h[0],pageNode:i[0],chapter:j,title:bj}},aQ=function(){aH.find(".b-load").children().unwrap();aH.addClass("booklet");aH.data("booklet",this);ax=aH.children().length;aI.currentIndex=0;r();a6();ba();R();v();au=true;Q=false;L={options:a.extend({},aI),index:aI.currentIndex,pages:[u[aI.currentIndex].contentNode,u[aI.currentIndex+1].contentNode]};if(aI.create){aH.off(E.create+".booklet").on(E.create+".booklet",aI.create)}aH.trigger(E.create,L)},W=function(){Q=false},H=function(){Q=true},g=function(){bf();ak();aH.removeClass("booklet");aH.removeData("booklet");au=false},r=function(){u=[];if((aH.children().length%2)!=0){if(aI.closed&&aI.covers){aH.children().last().before(o.blank)}else{aH.children().last().after(o.blank)}}if(aI.closed){a(o.empty).attr({title:aI.closedFrontTitle||"",rel:aI.closedFrontChapter||""}).prependTo(aH);aH.children().last().attr({title:aI.closedBackTitle||"",rel:aI.closedBackChapter||""});aH.append(o.empty)}aI.pageTotal=aH.children().length;t=0;if(aI.direction==aO.rightToLeft){t=aI.pageTotal;if(aI.closed){t-=2}if(aI.covers){t-=2}a(aH.children().get().reverse()).each(function(){a(this).appendTo(aH)})}if(!au){if(aI.direction==aO.leftToRight){aI.currentIndex=0}else{if(aI.direction==aO.rightToLeft){aI.currentIndex=aI.pageTotal-2}}if(!isNaN(aI.startingPage)&&aI.startingPage<=aI.pageTotal&&aI.startingPage>0){if((aI.startingPage%2)!=0){aI.startingPage--}aI.currentIndex=aI.startingPage}}aH.children().each(function(h){var j=new a5(a(this),h,aI);u.push(j)})},ba=function(){Z();aJ();N()},Z=function(){aH.find(".b-page").removeClass("b-pN b-p0 b-p1 b-p2 b-p3 b-p4").hide();if(aI.currentIndex-2>=0){aH.find(".b-page-"+(aI.currentIndex-2)).addClass("b-pN").show();aH.find(".b-page-"+(aI.currentIndex-1)).addClass("b-p0").show()}aH.find(".b-page-"+(aI.currentIndex)).addClass("b-p1").show();aH.find(".b-page-"+(aI.currentIndex+1)).addClass("b-p2").show();if(aI.currentIndex+3<=aI.pageTotal){aH.find(".b-page-"+(aI.currentIndex+2)).addClass("b-p3").show();aH.find(".b-page-"+(aI.currentIndex+3)).addClass("b-p4").show()}V=aH.find(".b-pN");aG=aH.find(".b-p0");aF=aH.find(".b-p1");aD=aH.find(".b-p2");aB=aH.find(".b-p3");ay=aH.find(".b-p4");bd=aH.find(".b-pN .b-wrap");aP=aH.find(".b-p0 .b-wrap");af=aH.find(".b-p1 .b-wrap");D=aH.find(".b-p2 .b-wrap");k=aH.find(".b-p3 .b-wrap");bb=aH.find(".b-p4 .b-wrap");a2=aH.find(".b-wrap");if(aI.shadows){aH.find(".b-shadow-f, .b-shadow-b").remove();bc=a(o.sF).css(aN.sF).appendTo(aB);be=a(o.sB).appendTo(aG).css(aN.sB)}},aJ=function(){aH.find(".b-shadow-f, .b-shadow-b, .b-p0, .b-p3").css({filter:"",zoom:""});aH.find(".b-page").removeAttr("style");a2.removeAttr("style");a2.css(aN.wrap);aP.css(aN.p0wrap);aF.css(aN.p1);aD.css(aN.p2);if(aI.closed&&aI.autoCenter&&aI.currentIndex>=aI.pageTotal-2){aD.hide()}V.css(aN.pN);aG.css(aN.p0);aB.stop().css(aN.p3);ay.css(aN.p4);if(aI.closed&&aI.autoCenter&&aI.currentIndex==0){V.css({left:0});aF.css({left:ar});aD.css({left:0});aB.css({left:K});ay.css({left:0})}if(aI.closed&&aI.autoCenter&&(aI.currentIndex==0||aI.currentIndex>=aI.pageTotal-2)){if(aI.overlays){B.width("100%")}aH.width(K)}else{if(aI.overlays){B.width("50%")}aH.width(aI.width)}aH.find(".b-page").css({filter:"",zoom:""})},ak=function(){aH.find(".b-wrap").unwrap();aH.find(".b-wrap").children().unwrap();aH.find(".b-counter, .b-page-blank, .b-page-empty, .b-shadow-f, .b-shadow-b").remove();if(aI.direction==aO.rightToLeft){a(aH.children().get().reverse()).each(function(){a(this).appendTo(aH)})}},a6=function(i){var h=false;if(i!=null&&typeof i!="undefined"){ak();bf();aI=a.extend({},aI,i);h=true;r()}if(!aI.width){aI.width=aH.width()}else{if(typeof aI.width=="string"&&aI.width.indexOf("px")!=-1){aI.width=aI.width.replace("px","")}else{if(typeof aI.width=="string"&&aI.width.indexOf("%")!=-1){ad=true;ap=aI.width;aI.width=(aI.width.replace("%","")/100)*parseFloat(aH.parent().css("width"))}}}if(!aI.height){aI.height=aH.height()}else{if(typeof aI.height=="string"&&aI.height.indexOf("px")!=-1){aI.height=aI.height.replace("px","")}else{if(typeof aI.height=="string"&&aI.height.indexOf("%")!=-1){aw=true;I=aI.height;aI.height=(aI.height.replace("%","")/100)*parseFloat(aH.parent().css("height"))}}}aH.width(aI.width);aH.height(aI.height);K=aI.width/2;ar="-"+(K)+"px";av=K/2;y=aI.height;aY=aI.speed/2;if(aI.closed&&aI.autoCenter){if(aI.currentIndex==0){aH.width(K)}else{if(aI.currentIndex>=aI.pageTotal-2){aH.width(K)}}}if(aI.shadows){aI.shadowTopFwdWidth="-"+aI.shadowTopFwdWidth+"px";aI.shadowTopBackWidth="-"+aI.shadowTopBackWidth+"px"}aI.pageTotal=aH.children(".b-page").length;if(aI.name){document.title=aI.name}else{aI.name=document.title}ac();if(au){ba()}if(aI.menu&&a(aI.menu).length>0){w=a(aI.menu);if(!w.hasClass("b-menu")){w.addClass("b-menu")}if(aI.pageSelector&&w.find(".b-selector-page").length==0){a4=a(''+(aI.currentIndex+1)+" - "+(aI.currentIndex+2)+"").appendTo(w);Y=a("
- <a href="#'+az+(ag+1)+'" id="selector-page-'+ag+'">'+n+''+S+"</a></li>").appendTo(Y);if(!aI.hash){d.find("a").on("click.booklet",function(j){j.preventDefault();if(aj||Q){return}if(aI.direction==aO.rightToLeft){a4.find(".b-current").text(a(this).find(".b-num").text());F(Math.abs(parseInt(a(this).attr("id").replace("selector-page-",""))-aI.pageTotal)-2)}else{F(parseInt(a(this).attr("id").replace("selector-page-","")))}})}}aT=Y.height();Y.css({height:0,"padding-bottom":0});a4.on("mouseenter.booklet",function(){Y.stop().animate({height:aT,paddingBottom:10},500)}).on("mouseleave.booklet",function(){Y.stop().animate({height:0,paddingBottom:0},500)})}else{if(!aI.pageSelector){w.find(".b-selector-page").remove();a4=Y=S=n=d=aT=null}}if(aI.chapterSelector&&w.find(".b-selector-chapter").length==0){aC=u[aI.currentIndex].chapter;if(aC==""){aC=u[aI.currentIndex+1].chapter}aK=a('
'+aC+"").appendTo(w);c=a("- <a href="#'+az+(ae+1)+'" id="selector-page-'+(ae)+'">'+u[ag].chapter+"</a></li>").prependTo(c)}else{a8=a('
- <a href="#'+az+(ag+1)+'" id="selector-page-'+ag+'">'+u[ag].chapter+"</a></li>").appendTo(c)}if(!aI.hash){a8.find("a").on("click.booklet",function(bh){bh.preventDefault();var j;if(aj||Q){return}if(aI.direction==aO.rightToLeft){aK.find(".b-current").text(a(this).find(".b-text").text());j=Math.abs(parseInt(a(this).attr("id").replace("selector-page-",""))-aI.pageTotal)-2}else{j=parseInt(a(this).attr("id").replace("selector-page-",""))}if(j%2!=0){j-=1}F(j)})}}}X=c.height();c.css({height:0,"padding-bottom":0});aK.on("mouseenter.booklet",function(){c.stop().animate({height:X,paddingBottom:10},500)}).on("mouseleave.booklet",function(){c.stop().animate({height:0,paddingBottom:0},500)})}else{if(!aI.chapterSelector){w.find(".b-selector-chapter").remove();aC=aK=c=a8=X=null}}}else{w=null;if(aI.menu){a(aI.menu).removeClass("b-menu")}aH.find(".b-selector").remove()}aU=aH.find(".b-controls");if(aU.length==0){aU=a('').appendTo(aH)}if(aI.manual&&a.ui){aI.overlays=false}if(P){P.off("click.booklet");P=null}if(O){O.off("click.booklet");O=null}B=aH.find(".b-overlay");if(aI.overlays&&B.length==0){aZ=a('').appendTo(aU);a0=a('').appendTo(aU);B=aH.find(".b-overlay")}else{if(!aI.overlays){B.remove();B=null}}aq=aH.find(".b-tab");if(aI.tabs&&aq.length==0){aV=a('
'+aI.previousControlText+"").appendTo(aU);aX=a(''+aI.nextControlText+"").appendTo(aU);aq=aH.find(".b-tab")}else{if(!aI.tabs){aH.css({marginTop:0});aq.remove();aq=null}}if(aI.tabs&&aq.length>0){if(aI.tabWidth){aq.width(aI.tabWidth)}if(aI.tabHeight){aq.height(aI.tabHeight)}aq.css({top:"-"+aX.outerHeight()+"px"});aH.css({marginTop:aX.outerHeight()});if(aI.direction==aO.rightToLeft){aX.html(aI.previousControlText).attr("title",aI.previousControlTitle);aV.html(aI.nextControlText).attr("title",aI.nextControlTitle)}}x=aH.find(".b-arrow");if(aI.arrows&&x.length==0){T=a('").appendTo(aU);U=a(''+aI.previousControlText+"").appendTo(aU);x=aH.find(".b-arrow");if(aI.direction==aO.rightToLeft){U.html("'+aI.nextControlText+""+aI.previousControlText+"").attr("title",aI.previousControlTitle);T.html(""+aI.nextControlText+"").attr("title",aI.nextControlTitle)}}else{if(!aI.arrows){x.remove();x=null}}m=aU.find(".b-next");l=aU.find(".b-prev");m.off(".booklet");l.off(".booklet");m.on("click.booklet",function(j){j.preventDefault();aM()});l.on("click.booklet",function(j){j.preventDefault();M()});if(aI.next&&a(aI.next).length>0){P=a(aI.next);P.on("click.booklet",function(j){j.preventDefault();aM()})}if(aI.prev&&a(aI.prev).length>0){O=a(aI.prev);O.on("click.booklet",function(j){j.preventDefault();M()})}if(aI.overlays&&aI.hovers){m.on("mouseover.booklet",function(){aW(true)}).on("mouseout.booklet",function(){ab(true)});l.on("mouseover.booklet",function(){aW(false)}).on("mouseout.booklet",function(){ab(false)})}if(aI.arrows){if(aI.arrowsHide){if(a.support.opacity){m.on("mouseover.booklet",function(){U.find("div").stop().fadeTo("fast",1)}).on("mouseout.booklet",function(){U.find("div").stop().fadeTo("fast",0)});l.on("mouseover.booklet",function(){T.find("div").stop().fadeTo("fast",1)}).on("mouseout.booklet",function(){T.find("div").stop().fadeTo("fast",0)})}else{m.on("mouseover.booklet",function(){U.find("div").show()}).on("mouseout.booklet",function(){U.find("div").hide()});l.on("mouseover.booklet",function(){T.find("div").show()}).on("mouseout.booklet",function(){T.find("div").hide()})}}else{U.find("div").show();T.find("div").show()}}a(document).on("keyup.booklet",function(j){if(j.keyCode==37&&aI.keyboard){M()}else{if(j.keyCode==39&&aI.keyboard){aM()}}});clearInterval(ai);ai=null;if(aI.hash){ao();clearInterval(ai);ai=setInterval(function(){aA()},250)}a(window).on("resize.booklet",function(){if((ad||aw)){a3()}});if(aI.auto&&aI.delay){clearInterval(at);at=setInterval(function(){if(aI.direction==aO.leftToRight){aM()}else{M()}},aI.delay);aS=true;if(aI.pause&&a(aI.pause).length>0){aE=a(aI.pause);aE.off("click.booklet").on("click.booklet",function(j){j.preventDefault();if(aS){clearInterval(at);aS=false}})}if(aI.play&&a(aI.play).length>0){p=a(aI.play);p.off("click.booklet").on("click.booklet",function(j){j.preventDefault();if(!aS){clearInterval(at);at=setInterval(function(){if(aI.direction==aO.leftToRight){aM()}else{M()}},aI.delay);aS=true}})}}else{clearInterval(at);at=null;if(aI.pause&&a(aI.pause).length>0){a(aI.pause).off("click.booklet")}aE=null;if(aI.play&&a(aI.play).length>0){a(aI.play).off("click.booklet")}p=null;aS=false}if(h){ba();R();v()}},ac=function(){aN={wrap:{left:0,width:K-(aI.pagePadding*2)-(aI.pageBorder*2),height:y-(aI.pagePadding*2)-(aI.pageBorder*2),padding:aI.pagePadding},p0wrap:{right:0,left:"auto"},p1:{left:0,width:K,height:y},p2:{left:K,width:K,opacity:1,height:y},pN:{left:0,width:K,height:y},p0:{left:0,width:0,height:y},p3:{left:K*2,width:0,height:y,paddingLeft:0},p4:{left:K,width:K,height:y},sF:{right:0,width:K,height:y},sB:{left:0,width:K,height:y}};e=10;a1=aI.hoverWidth+e;C=(aI.hoverWidth/2)+e;am={hover:{speed:aI.hoverSpeed,size:aI.hoverWidth,p2:{width:K-C},p3:{left:aI.width-a1,width:C},p3closed:{left:K-aI.hoverWidth,width:C},p3wrap:{left:e},p2end:{width:K},p2closedEnd:{width:K,left:0},p3end:{left:aI.width,width:0},p3closedEnd:{left:K,width:0},p3wrapEnd:{left:10},p1:{left:C,width:K-C},p1wrap:{left:"-"+C+"px"},p0:{left:C,width:C},p0wrap:{right:e},p1end:{left:0,width:K},p1wrapEnd:{left:0},p0end:{left:0,width:0},p0wrapEnd:{right:0}},p2:{width:0},p2closed:{width:0,left:K},p4closed:{left:K},p3in:{left:av,width:av,paddingLeft:aI.shadowBtmWidth},p3inDrag:{left:K/4,width:K*0.75,paddingLeft:aI.shadowBtmWidth},p3out:{left:0,width:K,paddingLeft:0},p3wrapIn:{left:aI.shadowBtmWidth},p3wrapOut:{left:0},p1:{left:K,width:0},p1wrap:{left:ar},p0:{left:K,width:K},p0in:{left:av,width:av},p0out:{left:K,width:K},p0outClosed:{left:0,width:K},p2back:{left:0},p0wrapDrag:{right:0},p0wrapIn:{right:aI.shadowBtmWidth},p0wrapOut:{right:0}}},a3=function(){if(!Q){if(ad){aI.width=(ap.replace("%","")/100)*parseFloat(aH.parent().css("width"));aH.width(aI.width);K=aI.width/2;ar="-"+(K)+"px";av=K/2}if(aw){aI.height=(I.replace("%","")/100)*parseFloat(aH.parent().css("height"));aH.height(aI.height);y=aI.height}ac();aJ()}},R=function(){if(aI.overlays||aI.tabs||aI.arrows){if(a.support.opacity){if(aI.currentIndex>=2&&aI.currentIndex!=0){l.fadeIn("fast").css("cursor",aI.cursor)}else{l.fadeOut("fast").css("cursor","default")}if(aI.currentIndex<aI.pageTotal-2){m.fadeIn("fast").css("cursor",aI.cursor)}else{m.fadeOut("fast").css("cursor","default")}}else{if(aI.currentIndex>=2&&aI.currentIndex!=0){l.show().css("cursor",aI.cursor)}else{l.hide().css("cursor","default")}if(aI.currentIndex<aI.pageTotal-2){m.show().css("cursor",aI.cursor)}else{m.hide().css("cursor","default")}}}},v=function(){if(aI.pageSelector){var h="";if(aI.direction==aO.rightToLeft){h=(Math.abs(aI.currentIndex-aI.pageTotal)-1)+" - "+((Math.abs(aI.currentIndex-aI.pageTotal)));if(aI.closed){if(aI.currentIndex==aI.pageTotal-2){h="1"}else{if(aI.currentIndex==0){h=aI.pageTotal-2}else{h=(Math.abs(aI.currentIndex-aI.pageTotal)-2)+" - "+((Math.abs(aI.currentIndex-aI.pageTotal)-1))}}if(aI.covers){if(aI.currentIndex==aI.pageTotal-2){h=""}else{if(aI.currentIndex==0){h=""}else{h=(Math.abs(aI.currentIndex-aI.pageTotal)-3)+" - "+((Math.abs(aI.currentIndex-aI.pageTotal)-2))}}}}}else{h=(aI.currentIndex+1)+" - "+(aI.currentIndex+2);if(aI.closed){if(aI.currentIndex==0){h="1"}else{if(aI.currentIndex==aI.pageTotal-2){h=aI.pageTotal-2}else{h=(aI.currentIndex)+"-"+(aI.currentIndex+1)}}if(aI.covers){if(aI.currentIndex==0){h=""}else{if(aI.currentIndex==aI.pageTotal-2){h=""}else{h=(aI.currentIndex-1)+"-"+(aI.currentIndex)}}}}}a(aI.menu+" .b-selector-page .b-current").text(h)}if(aI.chapterSelector){if(u[aI.currentIndex].chapter!=""){a(aI.menu+" .b-selector-chapter .b-current").text(u[aI.currentIndex].chapter)}else{if(u[aI.currentIndex+1].chapter!=""){a(aI.menu+" .b-selector-chapter .b-current").text(u[aI.currentIndex+1].chapter)}}if(aI.direction==aO.rightToLeft&&u[aI.currentIndex+1].chapter!=""){a(aI.menu+" .b-selector-chapter .b-current").text(u[aI.currentIndex+1].chapter)}else{if(u[aI.currentIndex]!=""){a(aI.menu+" .b-selector-chapter .b-current").text(u[aI.currentIndex].chapter)}}}},N=function(){var bm,h,bn,i,bi,bj,bh,bk,bl,bo,j;f=aR=aL=s=false;if(a.ui){if(aH.find(".b-page").draggable()){aH.find(".b-page").draggable("destroy").removeClass("b-grab b-grabbing")}if(aI.manual){aB.draggable({axis:"x",containment:[aH.offset().left,0,aD.offset().left+K-a1,y],drag:function(bp,bq){aL=true;aB.removeClass("b-grab").addClass("b-grabbing");bm=bq.originalPosition.left;h=bq.position.left;bn=bm-h;i=bn/bm;bi=i<0.5?i:(1-i);bj=(bi*aI.shadowBtmWidth*2)+e;bj=bn/bm>=0.5?bj-=e:bj;if(aI.shadows){bc.css({right:"-"+(aI.shadowTopFwdWidth*bi*2)+"px"});if(a.support.opacity){bc.css({opacity:bi*2})}else{bc.css({right:"auto",left:0.1*aB.width()})}}bh=C+bn/2;bh=bh>K?K:bh;bk=K-bh;if(aI.closed&&aI.autoCenter){if(aI.currentIndex==0){bl=0.5+0.5*i;bh=C+(C*i)+bn;bh=bh>K?K:bh;bk=K-bh;aD.css({left:K*i});ay.css({left:K*i});aH.width(aI.width*bl)}else{if(aI.currentIndex==aI.pageTotal-4){bl=(1-i)+0.5*i;bk=K-bh;ay.hide();aH.width(aI.width*bl)}else{aH.width(aI.width)}}}aB.width(bh);k.css({left:bj});aD.width(bk)},stop:function(){ab(false);if(i>aI.hoverThreshold){if(aI.shadows&&!a.support.opacity){bc.css({left:"auto",opacity:0})}aM();aB.removeClass("b-grab b-grabbing")}else{aL=false;aB.removeClass("b-grabbing").addClass("b-grab");bc.animate({left:"auto",opacity:0},am.hover.speed,aI.easing).css(aN.sF);if(aI.closed&&aI.autoCenter){if(aI.currentIndex==0){aD.animate({left:0},am.hover.speed,aI.easing);ay.animate({left:0},am.hover.speed,aI.easing);aH.animate({width:aI.width*0.5},am.hover.speed,aI.easing)}else{aH.animate({width:aI.width},am.hover.speed,aI.easing)}}}}});aG.draggable({axis:"x",containment:[aH.offset().left+C,0,aH.offset().left+aI.width,y],drag:function(bp,bq){s=true;aG.removeClass("b-grab").addClass("b-grabbing");bm=bq.originalPosition.left;h=bq.position.left;bn=h-bm;i=bn/(aI.width-bm);if(aI.closed&&aI.autoCenter&&aI.currentIndex==2){i=bn/(K-bm)}if(i>1){i=1}bi=i<0.5?i:(1-i);bj=(bi*aI.shadowBtmWidth*2)+e;bj=bn/bm>=0.5?bj-=e:bj;if(aI.shadows){if(a.support.opacity){be.css({opacity:bi*2})}else{be.css({left:aI.shadowTopBackWidth*bi*2})}}bh=i*(K-C)+C+bj;bo=bh-bj;j=-bo;if(aI.closed&&aI.autoCenter){if(aI.currentIndex==2){bl=(1-i)+0.5*i;bo=(1-i)*bo;j=-bo-(aI.width-(aI.width*bl));V.hide();aD.css({left:K*(1-i)});ay.css({left:K*(1-i)});aH.width(aI.width*bl)}else{if(aI.currentIndex==aI.pageTotal-2){bl=0.5+0.5*i;aH.width(aI.width*bl)}else{aH.width(aI.width)}}}bq.position.left=bo;aG.css({width:bh});aP.css({right:bj});aF.css({left:bo,width:K-bo});af.css({left:j})},stop:function(){ab(true);if(i>aI.hoverThreshold){M();aG.removeClass("b-grab b-grabbing")}else{be.animate({opacity:0},am.hover.speed,aI.easing).css(aN.sB);s=false;aG.removeClass("b-grabbing").addClass("b-grab");if(aI.closed&&aI.autoCenter){if(aI.currentIndex==2){aD.animate({left:K},am.hover.speed*2,aI.easing);ay.animate({left:K},am.hover.speed*2,aI.easing);aH.animate({width:aI.width},am.hover.speed*2,aI.easing)}else{if(aI.currentIndex==aI.pageTotal-2){aH.animate({width:aI.width*0.5},am.hover.speed,aI.easing)}}}}}});aH.find(".b-page").off("click.booklet");if(aI.hoverClick){aH.find(".b-pN, .b-p0").on("click.booklet",M).css({cursor:"pointer"});aH.find(".b-p3, .b-p4").on("click.booklet",aM).css({cursor:"pointer"})}aH.off("mousemove.booklet").on("mousemove.booklet",function(bp){bn=bp.pageX-aH.offset().left;if(bn<am.hover.size){aW(false)}else{if(bn>K-am.hover.size&&aI.currentIndex==0&&aI.autoCenter&&aI.closed){aW(true)}else{if(bn>am.hover.size&&bn<=aI.width-am.hover.size){ab(false);ab(true)}else{if(bn>aI.width-am.hover.size){aW(true)}}}}}).off("mouseleave.booklet").on("mouseleave.booklet",function(){ab(false);ab(true)})}}},ao=function(){al=J();if(!isNaN(al)&&al<=aI.pageTotal-1&&al>=0&&al!=""){if((al%2)!=0){al--}aI.currentIndex=al}else{ah(aI.currentIndex+1,aI)}an=al},aA=function(){al=J();if(!isNaN(al)&&al<=aI.pageTotal-1&&al>=0){if(al!=aI.currentIndex&&al.toString()!=an){if((al%2)!=0){al--}document.title=aI.name+aI.hashTitleText+(al+1);if(!aj){F(al);an=al}}}},J=function(){var i,h;i=window.location.hash.split("/");if(i.length>1){h=parseInt(i[2])-1;if(aI.direction==aO.rightToLeft){h=Math.abs(h+1-aI.pageTotal)}return h}else{return""}},ah=function(i,h){if(h.hash){if(h.direction==aO.rightToLeft){i=Math.abs(i-h.pageTotal)}window.location.hash=az+i}},bf=function(){if(aI.menu){a(aI.menu).removeClass("b-menu");if(aI.pageSelector){w.find(".b-selector-page").remove();a4=Y=S=n=d=aT=null}if(aI.chapterSelector){w.find(".b-selector-chapter").remove();aC=aK=c=a8=X=null}}w=null;if(P){P.off("click.booklet");P=null}if(O){O.off("click.booklet");O=null}if(m){m.off(".booklet");m=null}if(l){l.off(".booklet");l=null}aH.find(".b-selector, .b-controls").remove();clearInterval(ai);ai=null;clearInterval(at);at=null;if(aI.pause&&a(aI.pause).length>0){a(aI.pause).off("click.booklet")}aE=null;if(aI.play&&a(aI.play).length>0){a(aI.play).off("click.booklet")}p=null;q()},q=function(){if(a.ui){if(aH.find(".b-page").draggable()){aH.find(".b-page").draggable("destroy").removeClass("b-grab b-grabbing")}}aH.off(".booklet")},A=function(h,i){if(h=="start"){h=0}else{if(h=="end"){h=ax}else{if(typeof h=="number"){if(h<0||h>ax){return}}else{if(typeof h=="undefined"){return}}}}if(typeof i=="undefined"||i==""){return}ak();bf();if(aI.closed&&aI.covers&&h==ax){aH.children(":eq("+(h-1)+")").before(i)}else{if(aI.closed&&aI.covers&&h==0){aH.children(":eq("+h+")").after(i)}else{if(h==ax){aH.children(":eq("+(h-1)+")").after(i)}else{aH.children(":eq("+h+")").before(i)}}}ax=aH.children().length;L={options:a.extend({},aI),index:h,page:aH.children(":eq("+h+")")[0]};if(aI.add){aH.off(E.add+".booklet").on(E.add+".booklet",aI.add)}aH.trigger(E.add,L);r();a6();ba();R();v()},a9=function(h){if(h=="start"){h=0}else{if(h=="end"){h=ax}else{if(typeof h=="number"){if(h<0||h>ax){return}}else{if(typeof h=="undefined"){return}}}}if(aH.children(".b-page").length==2&&aH.find(".b-page-blank").length>0){return}ak();bf();if(h>=aI.currentIndex){if(h>0&&(h%2)!=0){aI.currentIndex-=2}if(aI.currentIndex<0){aI.currentIndex=0}}var i;if(aI.closed&&aI.covers&&h==ax){i=aH.children(":eq("+(h-1)+")").remove()}else{if(aI.closed&&aI.covers&&h==0){i=aH.children(":eq("+h+")").remove()}else{if(h==ax){i=aH.children(":eq("+(h-1)+")").remove()}else{i=aH.children(":eq("+h+")").remove()}}}ax=aH.children().length;L={options:a.extend({},aI),index:h,page:i[0]};if(aI.remove){aH.off(E.remove+".booklet").on(E.remove+".booklet",aI.remove)}aH.trigger(E.remove,L);i=null;r();ba();a6();R();v()},aM=function(){if(!aj&&!Q){if(aS&&aI.currentIndex+2>=aI.pageTotal){F(0)}else{F(aI.currentIndex+2)}}},M=function(){if(!aj&&!Q){if(aS&&aI.currentIndex-2<0){F(aI.pageTotal-2)}else{F(aI.currentIndex-2)}}},F=function(h){var i;if(h<aI.pageTotal&&h>=0&&!aj&&!Q){if(h>aI.currentIndex){aj=true;z=h-aI.currentIndex;aI.currentIndex=h;aI.movingForward=true;L={options:a.extend({},aI),index:h,pages:[u[h].contentNode,u[h+1].contentNode]};if(aI.start){aH.off(E.start+".booklet").on(E.start+".booklet",aI.start)}aH.trigger(E.start,L);v();if(h==aI.pageTotal-2){R()}ah(aI.currentIndex+1,aI);i=aL===true?aI.speed*(aB.width()/K):aY;G(z,true,bc,i);if(aI.closed&&aI.autoCenter&&h-z==0){aD.stop().animate(am.p2closed,aL===true?i:i*2,aI.easing);ay.stop().animate(am.p4closed,aL===true?i:i*2,aI.easing)}else{aD.stop().animate(am.p2,i,aL===true?aI.easeOut:aI.easeIn)}if(aL){aB.animate(am.p3out,i,aI.easeOut);k.animate(am.p3wrapOut,i,aI.easeOut,function(){aa()})}else{aB.stop().animate(am.p3in,i,aI.easeIn).animate(am.p3out,i,aI.easeOut);k.animate(am.p3wrapIn,i,aI.easeIn).animate(am.p3wrapOut,i,aI.easeOut,function(){aa()})}}else{if(h<aI.currentIndex){aj=true;z=aI.currentIndex-h;aI.currentIndex=h;aI.movingForward=false;L={options:a.extend({},aI),index:h,pages:[u[h].contentNode,u[h+1].contentNode]};if(aI.start){aH.off(E.start+".booklet").on(E.start+".booklet",aI.start)}aH.trigger(E.start,L);v();if(h==0){R()}ah(aI.currentIndex+1,aI);i=s===true?aI.speed*(aG.width()/K):aY;G(z,false,be,i);if(s){aF.animate(am.p1,i,aI.easeOut);af.animate(am.p1wrap,i,aI.easeOut);if(aI.closed&&aI.autoCenter&&aI.currentIndex==0){aG.animate(am.p0outClosed,i,aI.easeOut);aD.stop().animate(am.p2back,i,aI.easeOut)}else{aG.animate(am.p0,i,aI.easeOut)}aP.animate(am.p0wrapDrag,i,aI.easeOut,function(){aa()})}else{aF.animate(am.p1,i*2,aI.easing);af.animate(am.p1wrap,i*2,aI.easing);if(aI.closed&&aI.autoCenter&&aI.currentIndex==0){aG.animate(am.p0in,i,aI.easeIn).animate(am.p0outClosed,i,aI.easeOut);aD.stop().animate(am.p2back,i*2,aI.easing)}else{aG.animate(am.p0in,i,aI.easeIn).animate(am.p0out,i,aI.easeOut)}aP.animate(am.p0wrapIn,i,aI.easeIn).animate(am.p0wrapOut,i,aI.easeOut,function(){aa()})}}}}},aW=function(h){if(!Q&&((aI.hovers&&aI.overlays)||aI.manual)){if(h){if(!aj&&!f&&!aR&&!aL&&aI.currentIndex+2<=aI.pageTotal-2){aD.stop().animate(am.hover.p2,am.hover.speed,aI.easing);aB.addClass("b-grab");if(aI.closed&&aI.autoCenter&&aI.currentIndex==0){aB.stop().animate(am.hover.p3closed,am.hover.speed,aI.easing)}else{aB.stop().animate(am.hover.p3,am.hover.speed,aI.easing)}k.stop().animate(am.hover.p3wrap,am.hover.speed,aI.easing);if(aI.shadows&&!a.support.opacity){bc.css({right:"auto",left:"-40%"})}f=true}}else{if(!aj&&!aR&&!f&&!s&&aI.currentIndex-2>=0){aF.stop().animate(am.hover.p1,am.hover.speed,aI.easing);aG.addClass("b-grab");af.stop().animate(am.hover.p1wrap,am.hover.speed,aI.easing);aG.stop().animate(am.hover.p0,am.hover.speed,aI.easing);aP.stop().animate(am.hover.p0wrap,am.hover.speed,aI.easing);if(aI.shadows&&!a.support.opacity){be.css({left:-0.38*K})}aR=true}}}},ab=function(h){if(!Q&&((aI.hovers&&aI.overlays)||aI.manual)){if(h){if(!aj&&f&&!aL&&aI.currentIndex+2<=aI.pageTotal-2){if(aI.closed&&aI.autoCenter&&aI.currentIndex==0){aD.stop().animate(am.hover.p2closedEnd,am.hover.speed,aI.easing);aB.stop().animate(am.hover.p3closedEnd,am.hover.speed,aI.easing)}else{aD.stop().animate(am.hover.p2end,am.hover.speed,aI.easing);aB.stop().animate(am.hover.p3end,am.hover.speed,aI.easing)}k.stop().animate(am.hover.p3wrapEnd,am.hover.speed,aI.easing);if(aI.shadows&&!a.support.opacity){bc.css({left:"auto"})}f=false}}else{if(!aj&&aR&&!s&&aI.currentIndex-2>=0){aF.stop().animate(am.hover.p1end,am.hover.speed,aI.easing);af.stop().animate(am.hover.p1wrapEnd,am.hover.speed,aI.easing);aG.stop().animate(am.hover.p0end,am.hover.speed,aI.easing);aP.stop().animate(am.hover.p0wrapEnd,am.hover.speed,aI.easing);aR=false}}}},G=function(j,i,bh,h){if(i&&j>2){aH.find(".b-p3, .b-p4").removeClass("b-p3 b-p4").hide();aH.find(".b-page-"+aI.currentIndex).addClass("b-p3").show().stop().css(aN.p3);aH.find(".b-page-"+(aI.currentIndex+1)).addClass("b-p4").show().css(aN.p4);aH.find(".b-page-"+aI.currentIndex+" .b-wrap").show().css(aN.wrap);aH.find(".b-page-"+(aI.currentIndex+1)+" .b-wrap").show().css(aN.wrap);aB=aH.find(".b-p3");ay=aH.find(".b-p4");k=aH.find(".b-p3 .b-wrap");bb=aH.find(".b-p4 .b-wrap");if(aI.closed&&aI.autoCenter&&aI.currentIndex-j==0){aB.css({left:K});ay.css({left:0})}if(f){aB.css({left:aI.width-40,width:20,"padding-left":10})}if(aI.shadows){aH.find(".b-shadow-f").remove();bc=a(o.sF).css(aN.sF).appendTo(aB);bh=bc}}else{if(!i&&j>2){aH.find(".b-pN, .b-p0").removeClass("b-pN b-p0").hide();aH.find(".b-page-"+aI.currentIndex).addClass("b-pN").show().css(aN.pN);aH.find(".b-page-"+(aI.currentIndex+1)).addClass("b-p0").show().css(aN.p0);aH.find(".b-page-"+aI.currentIndex+" .b-wrap").show().css(aN.wrap);aH.find(".b-page-"+(aI.currentIndex+1)+" .b-wrap").show().css(aN.wrap);V=aH.find(".b-pN");aG=aH.find(".b-p0");bd=aH.find(".b-pN .b-wrap");aP=aH.find(".b-p0 .b-wrap");if(aI.closed&&aI.autoCenter){V.css({left:0})}aP.css(aN.p0wrap);if(aR){aG.css({left:10,width:40});aP.css({right:10})}if(aI.shadows){aH.find(".b-shadow-b, .b-shadow-f").remove();be=a(o.sB).appendTo(aG).css(aN.sB);bh=be}}}if(aI.closed){if(!i&&aI.currentIndex==0){V.hide()}else{if(!i){V.show()}}if(i&&aI.currentIndex>=aI.pageTotal-2){ay.hide()}else{if(i){ay.show()}}}if(aI.shadows){if(a.support.opacity){if(!aL&&!s){bh.animate({opacity:1},h,aI.easeIn)}bh.animate({opacity:0},h,aI.easeOut)}else{if(i){bh.animate({right:aI.shadowTopFwdWidth},h*2,aI.easeIn)}else{bh.animate({left:aI.shadowTopBackWidth},h*2,aI.easeIn)}}}if(aI.closed&&aI.autoCenter){if(aI.currentIndex==0){aB.hide();ay.hide();aH.animate({width:K},!aL&&!s?h*2:h,aI.easing)}else{if(aI.currentIndex>=aI.pageTotal-2){aG.hide();V.hide();aH.animate({width:K},h*2,aI.easing)}else{aH.animate({width:aI.width},h*2,aI.easing)}}}},aa=function(){ba();v();R();aj=false;L={options:a.extend({},aI),index:aI.currentIndex,pages:[u[aI.currentIndex].contentNode,u[aI.currentIndex+1].contentNode]};if(aI.change){aH.off(E.change+".booklet").on(E.change+".booklet",aI.change)}aH.trigger(E.change,L)};return{init:aQ,enable:W,disable:H,destroy:g,next:aM,prev:M,gotopage:function(h){if(typeof h==="string"){if(h=="start"){h=0}else{if(h=="end"){h=aI.pageTotal-2}else{this.gotopage(parseInt(h))}}}else{if(typeof h==="number"){if(h<0||h>=aI.pageTotal){return}}else{if(typeof h==="undefined"){return}}}if(h%2!=0){h-=1}if(aI.direction==aO.rightToLeft){h=Math.abs(h-aI.pageTotal)-2}F(h)},add:A,remove:a9,option:function(h,i){if(typeof h==="string"){if(typeof aI[h]!=="undefined"){if(typeof i!=="undefined"){aI[h]=i;a6()}else{return aI[h]}}else{a.error('Option "'+h+'" does not exist on jQuery.booklet.')}}else{if(typeof h==="object"){a6(h)}else{if(typeof h==="undefined"||!h){return a.extend({},aI)}}}}}}a.fn.booklet.defaults={name:null,width:600,height:400,speed:1000,direction:"LTR",startingPage:0,easing:"easeInOutQuad",easeIn:"easeInQuad",easeOut:"easeOutQuad",closed:false,closedFrontTitle:"Beginning",closedFrontChapter:"Beginning of Book",closedBackTitle:"End",closedBackChapter:"End of Book",covers:false,autoCenter:false,pagePadding:10,pageNumbers:true,pageBorder:0,manual:true,hovers:true,hoverWidth:50,hoverSpeed:500,hoverThreshold:0.25,hoverClick:true,overlays:false,tabs:false,tabWidth:60,tabHeight:20,nextControlText:"Next",previousControlText:"Previous",nextControlTitle:"Next Page",previousControlTitle:"Previous Page",arrows:false,arrowsHide:false,cursor:"pointer",hash:false,hashTitleText:" - Page ",keyboard:true,next:null,prev:null,auto:false,delay:5000,pause:null,play:null,menu:null,pageSelector:false,chapterSelector:false,shadows:true,shadowTopFwdWidth:166,shadowTopBackWidth:166,shadowBtmWidth:50,create:null,start:null,change:null,add:null,remove:null}})(jQuery); - <a href="#'+az+(ag+1)+'" id="selector-page-'+ag+'">'+n+''+S+"</a></li>").appendTo(Y);if(!aI.hash){d.find("a").on("click.booklet",function(j){j.preventDefault();if(aj||Q){return}if(aI.direction==aO.rightToLeft){a4.find(".b-current").text(a(this).find(".b-num").text());F(Math.abs(parseInt(a(this).attr("id").replace("selector-page-",""))-aI.pageTotal)-2)}else{F(parseInt(a(this).attr("id").replace("selector-page-","")))}})}}aT=Y.height();Y.css({height:0,"padding-bottom":0});a4.on("mouseenter.booklet",function(){Y.stop().animate({height:aT,paddingBottom:10},500)}).on("mouseleave.booklet",function(){Y.stop().animate({height:0,paddingBottom:0},500)})}else{if(!aI.pageSelector){w.find(".b-selector-page").remove();a4=Y=S=n=d=aT=null}}if(aI.chapterSelector&&w.find(".b-selector-chapter").length==0){aC=u[aI.currentIndex].chapter;if(aC==""){aC=u[aI.currentIndex+1].chapter}aK=a('