/*! fancyBox v2.1.7 fancyapps.com | fancyapps.com/fancybox/#license */ !function(e,t,n,o){var i=n("html"),a=n(e),r=n(t),s=n.fancybox=function(){s.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),c=null,d=t.createTouch!==o,h=function(e){return e&&e.hasOwnProperty&&e instanceof n},p=function(e){return e&&"string"===n.type(e)},u=function(e){return p(e)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:'',loading:'
'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(n.isPlainObject(t)||(t={}),!1!==s.close(!0)))return n.isArray(e)||(e=h(e)?n(e).get():[e]),n.each(e,function(i,a){var r,l,c,d,u,f={};"object"===n.type(a)&&(a.nodeType&&(a=n(a)),h(a)?(f={href:a.data("fancybox-href")||a.attr("href"),title:n("
").text(a.data("fancybox-title")||a.attr("title")||"").html(),isDom:!0,element:a},n.metadata&&n.extend(!0,f,a.metadata())):f=a),r=t.href||f.href||(p(a)?a:null),l=t.title!==o?t.title:f.title||"",!(d=(c=t.content||f.content)?"html":t.type||f.type)&&f.isDom&&((d=a.data("fancybox-type"))||(d=(d=a.prop("class").match(/fancybox\.(\w+)/))?d[1]:null)),p(r)&&(d||(s.isImage(r)?d="image":s.isSWF(r)?d="swf":"#"===r.charAt(0)?d="inline":p(a)&&(d="html",c=a)),"ajax"===d&&(r=(u=r.split(/\s+/,2)).shift(),u=u.shift())),c||("inline"===d?r?c=n(p(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):f.isDom&&(c=a):"html"===d?c=r:d||r||!f.isDom||(d="inline",c=a)),n.extend(f,{href:r,type:d,content:c,title:l,selector:u}),e[i]=f}),s.opts=n.extend(!0,{},s.defaults,t),t.keys!==o&&(s.opts.keys=!!t.keys&&n.extend({},s.defaults.keys,t.keys)),s.group=e,s._start(s.opts.index)},cancel:function(){var e=s.coming;e&&!1===s.trigger("onCancel")||(s.hideLoading(),e&&(s.ajaxLoad&&s.ajaxLoad.abort(),s.ajaxLoad=null,s.imgPreload&&(s.imgPreload.onload=s.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),s.coming=null,s.current||s._afterZoomOut(e)))},close:function(e){s.cancel(),!1!==s.trigger("beforeClose")&&(s.unbindEvents(),s.isActive&&(s.isOpen&&!0!==e?(s.isOpen=s.isOpened=!1,s.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),s.wrap.stop(!0,!0).removeClass("fancybox-opened"),s.transitions[s.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),s._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(s.player.timer)},n=function(){t(),s.current&&s.player.isActive&&(s.player.timer=setTimeout(s.next,s.current.playSpeed))},o=function(){t(),r.unbind(".player"),s.player.isActive=!1,s.trigger("onPlayEnd")};!0===e||!s.player.isActive&&!1!==e?s.current&&(s.current.loop||s.current.index=i.index?"next":"prev"],s.router=n||"jumpto",i.loop&&(0>e&&(e=i.group.length+e%i.group.length),e%=i.group.length),i.group[e]!==o&&(s.cancel(),s._start(e)))},reposition:function(e,t){var o,i=s.current,a=i?i.wrap:null;a&&(o=s._getPosition(t),e&&"scroll"===e.type?(delete o.position,a.stop(!0,!0).animate(o,200)):(a.css(o),i.pos=n.extend({},i.dim,o)))},update:function(e){var t=e&&e.originalEvent&&e.originalEvent.type,n=!t||"orientationchange"===t;n&&(clearTimeout(c),c=null),s.isOpen&&!c&&(c=setTimeout(function(){var o=s.current;o&&!s.isClosing&&(s.wrap.removeClass("fancybox-tmp"),(n||"load"===t||"resize"===t&&o.autoResize)&&s._setDimension(),"scroll"===t&&o.canShrink||s.reposition(e),s.trigger("onUpdate"),c=null)},n&&!d?0:300))},toggle:function(e){s.isOpen&&(s.current.fitToView="boolean"===n.type(e)?e:!s.current.fitToView,d&&(s.wrap.removeAttr("style").addClass("fancybox-tmp"),s.trigger("onUpdate")),s.update())},hideLoading:function(){r.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var e,t;s.hideLoading(),e=n(s.opts.tpl.loading).click(s.cancel).appendTo("body"),r.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),s.cancel())}),s.defaults.fixed||(t=s.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x})),s.trigger("onLoading")},getViewport:function(){var t=s.current&&s.current.locked||!1,n={x:a.scrollLeft(),y:a.scrollTop()};return t&&t.length?(n.w=t[0].clientWidth,n.h=t[0].clientHeight):(n.w=d&&e.innerWidth?e.innerWidth:a.width(),n.h=d&&e.innerHeight?e.innerHeight:a.height()),n},unbindEvents:function(){s.wrap&&h(s.wrap)&&s.wrap.unbind(".fb"),r.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var e,t=s.current;t&&(a.bind("orientationchange.fb"+(d?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),s.update),(e=t.keys)&&r.bind("keydown.fb",function(i){var a=i.which||i.keyCode,r=i.target||i.srcElement;if(27===a&&s.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||r&&(r.type||n(r).is("[contenteditable]"))||n.each(e,function(e,r){return 1l.clientWidth||l.clientHeight&&l.scrollHeight>l.clientHeight),r=n(r).parent();0!==o&&!l&&1a||0>i)&&s.next(0>a?"up":"right"),e.preventDefault())}))},trigger:function(e,t){var o,i=t||s.coming||s.current;if(i){if(n.isFunction(i[e])&&(o=i[e].apply(i,Array.prototype.slice.call(arguments,1))),!1===o)return!1;i.helpers&&n.each(i.helpers,function(t,o){o&&s.helpers[t]&&n.isFunction(s.helpers[t][e])&&s.helpers[t][e](n.extend(!0,{},s.helpers[t].defaults,o),i)})}r.trigger(e)},isImage:function(e){return p(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return p(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,o,i={};if(e=f(e),!(t=s.group[e]||null))return!1;if(t=(i=n.extend(!0,{},s.opts,t)).margin,o=i.padding,"number"===n.type(t)&&(i.margin=[t,t,t,t]),"number"===n.type(o)&&(i.padding=[o,o,o,o]),i.modal&&n.extend(!0,i,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),i.autoSize&&(i.autoWidth=i.autoHeight=!0),"auto"===i.width&&(i.autoWidth=!0),"auto"===i.height&&(i.autoHeight=!0),i.group=s.group,i.index=e,s.coming=i,!1===s.trigger("beforeLoad"))s.coming=null;else{if(o=i.type,t=i.href,!o)return s.coming=null,!(!s.current||!s.router||"jumpto"===s.router)&&(s.current.index=e,s[s.router](s.direction));if(s.isActive=!0,"image"!==o&&"swf"!==o||(i.autoHeight=i.autoWidth=!1,i.scrolling="visible"),"image"===o&&(i.aspectRatio=!0),"iframe"===o&&d&&(i.scrolling="scroll"),i.wrap=n(i.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+i.wrapCSS).appendTo(i.parent||"body"),n.extend(i,{skin:n(".fancybox-skin",i.wrap),outer:n(".fancybox-outer",i.wrap),inner:n(".fancybox-inner",i.wrap)}),n.each(["Top","Right","Bottom","Left"],function(e,t){i.skin.css("padding"+t,g(i.padding[e]))}),s.trigger("onReady"),"inline"===o||"html"===o){if(!i.content||!i.content.length)return s._error("content")}else if(!t)return s._error("href");"image"===o?s._loadImage():"ajax"===o?s._loadAjax():"iframe"===o?s._loadIframe():s._afterLoad()}},_error:function(e){n.extend(s.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:s.coming.tpl.error}),s._afterLoad()},_loadImage:function(){var e=s.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,s.coming.width=this.width/s.opts.pixelRatio,s.coming.height=this.height/s.opts.pixelRatio,s._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,s._error("image")},e.src=s.coming.href,!0!==e.complete&&s.showLoading()},_loadAjax:function(){var e=s.coming;s.showLoading(),s.ajaxLoad=n.ajax(n.extend({},e.ajax,{url:e.href,error:function(e,t){s.coming&&"abort"!==t?s._error("ajax",e):s.hideLoading()},success:function(t,n){"success"===n&&(e.content=t,s._afterLoad())}}))},_loadIframe:function(){var e=s.coming,t=n(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",d?"auto":e.iframe.scrolling).attr("src",e.href);n(e.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(s.showLoading(),t.one("load",function(){n(this).data("ready",1),d||n(this).bind("load.fb",s.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),s._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||s._afterLoad()},_preloadImages:function(){var e,t,n=s.group,o=s.current,i=n.length,a=o.preload?Math.min(o.preload,i-1):0;for(t=1;t<=a;t+=1)"image"===(e=n[(o.index+t)%i]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,o,i,a,r=s.coming,l=s.current;if(s.hideLoading(),r&&!1!==s.isActive)if(!1===s.trigger("afterLoad",r,l))r.wrap.stop(!0).trigger("onReset").remove(),s.coming=null;else{switch(l&&(s.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),s.unbindEvents(),e=r.content,t=r.type,o=r.scrolling,n.extend(s,{wrap:r.wrap,skin:r.skin,outer:r.outer,inner:r.inner,current:r,previous:l}),i=r.href,t){case"inline":case"ajax":case"html":r.selector?e=n("
").html(e).find(r.selector):h(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",n('
').insertAfter(e).hide()),e=e.show().detach(),r.wrap.bind("onReset",function(){n(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":e=r.tpl.image.replace(/\{href\}/g,i);break;case"swf":e='',a="",n.each(r.swf,function(t,n){e+='',a+=" "+t+'="'+n+'"'}),e+='"}h(e)&&e.parent().is(r.inner)||r.inner.append(e),s.trigger("beforeShow"),r.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),s._setDimension(),s.reposition(),s.isOpen=!1,s.coming=null,s.bindEvents(),s.isOpened?l.prevMethod&&s.transitions[l.prevMethod]():n(".fancybox-wrap").not(r.wrap).stop(!0).trigger("onReset").remove(),s.transitions[s.isOpened?r.nextMethod:r.openMethod](),s._preloadImages()}},_setDimension:function(){var e,t=s.getViewport(),o=0,i=s.wrap,a=s.skin,r=s.inner,l=s.current;e=l.width;var c,d,h,p,m,y,v,w,x,b=l.height,k=l.minWidth,C=l.minHeight,_=l.maxWidth,O=l.maxHeight,T=l.scrolling,S=l.scrollOutside?l.scrollbarWidth:0,M=l.margin,E=f(M[1]+M[3]),H=f(M[0]+M[2]);if(i.add(a).add(r).width("auto").height("auto").removeClass("fancybox-tmp"),d=E+(M=f(a.outerWidth(!0)-a.width())),h=H+(c=f(a.outerHeight(!0)-a.height())),p=u(e)?(t.w-d)*f(e)/100:e,m=u(b)?(t.h-h)*f(b)/100:b,"iframe"===l.type){if(x=l.content,l.autoHeight&&x&&1===x.data("ready"))try{x[0].contentWindow.document.location&&(r.width(p).height(9999),y=x.contents().find("body"),S&&y.css("overflow-x","hidden"),m=y.outerHeight(!0))}catch(R){}}else(l.autoWidth||l.autoHeight)&&(r.addClass("fancybox-tmp"),l.autoWidth||r.width(p),l.autoHeight||r.height(m),l.autoWidth&&(p=r.width()),l.autoHeight&&(m=r.height()),r.removeClass("fancybox-tmp"));if(e=f(p),b=f(m),w=p/m,k=f(u(k)?f(k,"w")-d:k),_=f(u(_)?f(_,"w")-d:_),C=f(u(C)?f(C,"h")-h:C),y=_,v=O=f(u(O)?f(O,"h")-h:O),l.fitToView&&(_=Math.min(t.w-d,_),O=Math.min(t.h-h,O)),d=t.w-E,H=t.h-H,l.aspectRatio?(e>_&&(b=f((e=_)/w)),b>O&&(e=f((b=O)*w)),ed||E>H)&&e>k&&b>C&&!(19_&&(b=f((e=_)/w)),r.width(e).height(b),i.width(e+M),t=i.width(),E=i.height();else e=Math.max(k,Math.min(e,e-(t-d))),b=Math.max(C,Math.min(b,b-(E-H)));S&&"auto"===T&&bd||E>H)&&e>k&&b>C,e=l.aspectRatio?eC&&b
').appendTo(t&&t.length?t:"body"),this.fixed=!1,e.fixed&&s.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=n.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(a.bind("resize.overlay",n.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(n(e.target).hasClass("fancybox-overlay"))return s.isActive?s.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var e,n="100%";this.overlay.width(n).height("100%"),l?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>e&&(n=r.width())):r.width()>a.width()&&(n=r.width()),this.overlay.width(n).height(r.height())},onReady:function(e,t){var o=this.overlay;n(".fancybox-overlay").stop(!0,!0),o||this.create(e),e.locked&&this.fixed&&t.fixed&&(t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){t.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&n("*:not(object)").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=a.scrollTop(),this.scrollH=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!s.coming&&this.overlay.fadeOut(e.speedOut,n.proxy(this.close,this))}},s.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=s.current,o=t.title,i=e.type;if(n.isFunction(o)&&(o=o.call(t.element,t)),p(o)&&""!==n.trim(o)){switch(t=n('
'+o+"
"),i){case"inside":i=s.skin;break;case"outside":i=s.wrap;break;case"over":i=s.inner;break;default:i=s.skin,t.appendTo("body"),l&&t.width(t.width()),t.wrapInner(''),s.current.margin[2]+=Math.abs(f(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](i)}}},n.fn.fancybox=function(e){var t,o=n(this),i=this.selector||"",a=function(a){var r,l,c=n(this).blur(),d=t;a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||c.is(".fancybox-wrap")||(r=e.groupAttr||"data-fancybox-group",(l=c.attr(r))||(r="rel",l=c.get(0)[r]),l&&""!==l&&"nofollow"!==l&&(d=(c=(c=i.length?n(i):o).filter("["+r+'="'+l+'"]')).index(this)),e.index=d,!1!==s.open(c,e)&&a.preventDefault())};return t=(e=e||{}).index||0,i&&!1!==e.live?r.undelegate(i,"click.fb-start").delegate(i+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):o.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var t,a;n.scrollbarWidth===o&&(n.scrollbarWidth=function(){var e=n('
').appendTo("body"),t=(t=e.children()).innerWidth()-t.height(99).innerWidth();return e.remove(),t}),n.support.fixedPosition===o&&(n.support.fixedPosition=function(){var e=n('
').appendTo("body"),t=20===e[0].offsetTop||15===e[0].offsetTop;return e.remove(),t}()),n.extend(s.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),t=n(e).width(),i.addClass("fancybox-lock-test"),a=n(e).width(),i.removeClass("fancybox-lock-test"),n("").appendTo("head")})}(window,document,jQuery), // Copyright (c) 2011 Jack Moore - jack@colorpowered.com function(e,t,n){function o(t){if(!Y){if(L=t,r(e.extend(G,e.data(L,N))),v=e(L),j=0,"nofollow"!==G.rel&&(v=e("."+ee).filter(function(){return(e.data(this,N).rel||this.rel)===G.rel}),-1===(j=v.index(L))&&(v=v.add(L),j=v.length-1)),!I){if(I=F=!0,h.show(),G.returnFocus)try{L.blur(),e(L).one(U,function(){try{this.focus()}catch(e){}})}catch(n){}d.css({opacity:+G.opacity,cursor:G.overlayClose?"pointer":"auto"}).show(),G.w=l(G.initialWidth,"x"),G.h=l(G.initialHeight,"y"),A.position(0),$&&w.bind("resize."+Q+" scroll."+Q,function(){d.css({width:w.width(),height:w.height(),top:w.scrollTop(),left:w.scrollLeft()})}).trigger("resize."+Q),a(V,G.onOpen),E.add(C).hide(),M.html(G.close).show()}A.load(!0)}}function i(){var e,t,n,o=z+"Slideshow_",i="click."+z;G.slideshow&&v[1]&&(t=function(){O.text(G.slideshowStop).unbind(i).bind(J,function(){(j"),t.open=!0),a.each(function(){e.data(this,N,e.extend({},e.data(this,N)||B,t)),e(this).addClass(ee)}),i=t.open,e.isFunction(i)&&(i=i.call(a)),i&&o(a[0]),a)}).init=function(){w=e(n),h=c().attr({id:N,"class":Z?z+($?"IE6":"IE"):""}),d=c("Overlay",$?"position:absolute":"").hide(),p=c("Wrapper"),u=c("Content").append(x=c("LoadedContent","width:0; height:0; overflow:hidden"),k=c("LoadingOverlay").add(c("LoadingGraphic")),C=c("Title"),_=c("Current"),T=c("Next"),S=c("Previous"),O=c("Slideshow").bind(V,i),M=c("Close")),p.append(c().append(c("TopLeft"),f=c("TopCenter"),c("TopRight")),c(!1,"clear:left").append(g=c("MiddleLeft"),u,m=c("MiddleRight")),c(!1,"clear:left").append(c("BottomLeft"),y=c("BottomCenter"),c("BottomRight"))).children().children().css({float:"left"}),b=c(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),e("body").prepend(d,h.append(p,b)),u.children().hover(function(){e(this).addClass("hover")},function(){e(this).removeClass("hover")}).addClass("hover"),H=f.height()+y.height()+u.outerHeight(!0)-u.height(),R=g.width()+m.width()+u.outerWidth(!0)-u.width(),P=x.outerHeight(!0),W=x.outerWidth(!0),h.css({"padding-bottom":H,"padding-right":R}).hide(),T.click(function(){A.next()}),S.click(function(){A.prev()}),M.click(function(){A.close()}),E=T.add(S).add(_).add(O),u.children().removeClass("hover"),e("."+ee).live("click",function(e){0!==e.button&&"undefined"!=typeof e.button||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),o(this))}),d.click(function(){G.overlayClose&&A.close()}),e(t).bind("keydown."+z,function(e){var t=e.keyCode;I&&G.escKey&&27===t&&(e.preventDefault(),A.close()),I&&G.arrowKey&&v[1]&&(37===t?(e.preventDefault(),S.click()):39===t&&(e.preventDefault(),T.click()))})},A.remove=function(){h.add(d).remove(),e("."+ee).die("click").removeData(N).removeClass(ee)},A.position=function(e,n){function o(e){f[0].style.width=y[0].style.width=u[0].style.width=e.style.width,k[0].style.height=k[1].style.height=u[0].style.height=g[0].style.height=m[0].style.height=e.style.height}var i,a=Math.max(t.documentElement.clientHeight-G.h-P-H,0)/2+w.scrollTop(),r=Math.max(w.width()-G.w-W-R,0)/2+w.scrollLeft();i=h.width()===G.w+W&&h.height()===G.h+P?0:e,p[0].style.width=p[0].style.height="9999px",h.dequeue().animate({width:G.w+W,height:G.h+P,top:a,left:r},{duration:i,complete:function(){o(this),F=!1,p[0].style.width=G.w+W+R+"px",p[0].style.height=G.h+P+H+"px",n&&n()},step:function(){o(this)}})},A.resize=function(e){if(I){if((e=e||{}).width&&(G.w=l(e.width,"x")-W-R),e.innerWidth&&(G.w=l(e.innerWidth,"x")),x.css({width:G.w}),e.height&&(G.h=l(e.height,"y")-P-H),e.innerHeight&&(G.h=l(e.innerHeight,"y")),!e.innerHeight&&!e.height){var t=x.wrapInner("
").children();G.h=t.height(),t.replaceWith(t.children())}x.css({height:G.h}),A.position("none"===G.transition?0:G.speed)}},A.prep=function(t){function n(t){A.position(t,function(){var t,n,o,i,l,c,d=v.length;!I||(c=function(){k.hide(),a(J,G.onComplete)},Z&&D&&x.fadeIn(100),C.html(G.title).add(x).show(),d>1?("string"==typeof G.current&&_.html(G.current.replace(/\{current\}/,j+1).replace(/\{total\}/,d)).show(),T[G.loop||j")[0].src=i),s(n)&&(e("")[0].src=n))):E.hide(),G.iframe?(l=e("