/*
* 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('