',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:_.noop,beforeLoad:_.noop,afterLoad:_.noop,beforeShow:_.noop,afterShow:_.noop,beforeChange:_.noop,beforeClose:_.noop,afterClose:_.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(s,c){if(s&&(_.isPlainObject(c)||(c={}),!1!==S.close(!0)))return _.isArray(s)||(s=p(s)?_(s).get():[s]),_.each(s,function(e,t){var i,n,o,a,r,l={};"object"===_.type(t)&&(t.nodeType&&(t=_(t)),p(t)?(l={href:t.data("fancybox-href")||t.attr("href"),title:_("").text(t.data("fancybox-title")||t.attr("title")||"").html(),isDom:!0,element:t},_.metadata&&_.extend(!0,l,t.metadata())):l=t),i=c.href||l.href||(h(t)?t:null),n=c.title!==d?c.title:l.title||"",!(a=(o=c.content||l.content)?"html":c.type||l.type)&&l.isDom&&((a=t.data("fancybox-type"))||(a=(a=t.prop("class").match(/fancybox\.(\w+)/))?a[1]:null)),h(i)&&(a||(S.isImage(i)?a="image":S.isSWF(i)?a="swf":"#"===i.charAt(0)?a="inline":h(t)&&(a="html",o=t)),"ajax"===a&&(i=(r=i.split(/\s+/,2)).shift(),r=r.shift())),o||("inline"===a?i?o=_(h(i)?i.replace(/.*(?=#[^\s]+$)/,""):i):l.isDom&&(o=t):"html"===a?o=i:a||i||!l.isDom||(a="inline",o=t)),_.extend(l,{href:i,type:a,content:o,title:n,selector:r}),s[e]=l}),S.opts=_.extend(!0,{},S.defaults,c),c.keys!==d&&(S.opts.keys=!!c.keys&&_.extend({},S.defaults.keys,c.keys)),S.group=s,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,_(".fancybox-item, .fancybox-nav").remove(),S.wrap.stop(!0,!0).removeClass("fancybox-opened"),S.transitions[S.current.closeMethod]()):(_(".fancybox-wrap").stop(!0).trigger("onReset").remove(),S._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(S.player.timer)},i=function(){t(),S.current&&S.player.isActive&&(S.player.timer=setTimeout(S.next,S.current.playSpeed))},n=function(){t(),c.unbind(".player"),S.player.isActive=!1,S.trigger("onPlayEnd")};!0===e||!S.player.isActive&&!1!==e?S.current&&(S.current.loop||S.current.index=n.index?"next":"prev"],S.router=i||"jumpto",n.loop&&(e<0&&(e=n.group.length+e%n.group.length),e%=n.group.length),n.group[e]!==d&&(S.cancel(),S._start(e)))},reposition:function(e,t){var i,n=S.current,o=n?n.wrap:null;o&&(i=S._getPosition(t),e&&"scroll"===e.type?(delete i.position,o.stop(!0,!0).animate(i,200)):(o.css(i),n.pos=_.extend({},n.dim,i)))},update:function(t){var i=t&&t.originalEvent&&t.originalEvent.type,n=!i||"orientationchange"===i;n&&(clearTimeout(l),l=null),S.isOpen&&!l&&(l=setTimeout(function(){var e=S.current;e&&!S.isClosing&&(S.wrap.removeClass("fancybox-tmp"),(n||"load"===i||"resize"===i&&e.autoResize)&&S._setDimension(),"scroll"===i&&e.canShrink||S.reposition(t),S.trigger("onUpdate"),l=null)},n&&!s?0:300))},toggle:function(e){S.isOpen&&(S.current.fitToView="boolean"===_.type(e)?e:!S.current.fitToView,s&&(S.wrap.removeAttr("style").addClass("fancybox-tmp"),S.trigger("onUpdate")),S.update())},hideLoading:function(){c.unbind(".loading"),_("#fancybox-loading").remove()},showLoading:function(){var e,t;S.hideLoading(),e=_(S.opts.tpl.loading).click(S.cancel).appendTo("body"),c.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 e=S.current&&S.current.locked||!1,t={x:n.scrollLeft(),y:n.scrollTop()};return e&&e.length?(t.w=e[0].clientWidth,t.h=e[0].clientHeight):(t.w=s&&o.innerWidth?o.innerWidth:n.width(),t.h=s&&o.innerHeight?o.innerHeight:n.height()),t},unbindEvents:function(){S.wrap&&p(S.wrap)&&S.wrap.unbind(".fb"),c.unbind(".fb"),n.unbind(".fb")},bindEvents:function(){var t,r=S.current;r&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(r.autoCenter&&!r.locked?" scroll.fb":""),S.update),(t=r.keys)&&c.bind("keydown.fb",function(i){var n=i.which||i.keyCode,e=i.target||i.srcElement;if(27===n&&S.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||e&&(e.type||_(e).is("[contenteditable]"))||_.each(t,function(e,t){return 1a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),o=_(o).parent();0!==t&&!a&&1").html(i).find(a.selector):p(i)&&(i.data("fancybox-placeholder")||i.data("fancybox-placeholder",_('').insertAfter(i).hide()),i=i.show().detach(),a.wrap.bind("onReset",function(){_(this).find(i).length&&i.hide().replaceAll(i.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":i=a.tpl.image.replace(/\{href\}/g,n);break;case"swf":i='"}p(i)&&i.parent().is(a.inner)||a.inner.append(i),S.trigger("beforeShow"),a.inner.css("overflow","yes"===t?"scroll":"no"===t?"hidden":t),S._setDimension(),S.reposition(),S.isOpen=!1,S.coming=null,S.bindEvents(),S.isOpened?r.prevMethod&&S.transitions[r.prevMethod]():_(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),S.transitions[S.isOpened?a.nextMethod:a.openMethod](),S._preloadImages()}},_setDimension:function(){var e,t=S.getViewport(),i=0,n=S.wrap,o=S.skin,a=S.inner,r=S.current;e=r.width;var l,s,c,d,p,h,f,u,g,m=r.height,y=r.minWidth,x=r.minHeight,v=r.maxWidth,w=r.maxHeight,b=r.scrolling,k=r.scrollOutside?r.scrollbarWidth:0,C=r.margin,O=E(C[1]+C[3]),W=E(C[0]+C[2]);if(n.add(o).add(a).width("auto").height("auto").removeClass("fancybox-tmp"),s=O+(C=E(o.outerWidth(!0)-o.width())),c=W+(l=E(o.outerHeight(!0)-o.height())),d=T(e)?(t.w-s)*E(e)/100:e,p=T(m)?(t.h-c)*E(m)/100:m,"iframe"===r.type){if(g=r.content,r.autoHeight&&g&&1===g.data("ready"))try{g[0].contentWindow.document.location&&(a.width(d).height(9999),h=g.contents().find("body"),k&&h.css("overflow-x","hidden"),p=h.outerHeight(!0))}catch(e){}}else(r.autoWidth||r.autoHeight)&&(a.addClass("fancybox-tmp"),r.autoWidth||a.width(d),r.autoHeight||a.height(p),r.autoWidth&&(d=a.width()),r.autoHeight&&(p=a.height()),a.removeClass("fancybox-tmp"));if(e=E(d),m=E(p),u=d/p,y=E(T(y)?E(y,"w")-s:y),v=E(T(v)?E(v,"w")-s:v),x=E(T(x)?E(x,"h")-c:x),h=v,f=w=E(T(w)?E(w,"h")-c:w),r.fitToView&&(v=Math.min(t.w-s,v),w=Math.min(t.h-c,w)),s=t.w-O,W=t.h-W,r.aspectRatio?(v').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=_.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(n.bind("resize.overlay",_.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(_(e.target).hasClass("fancybox-overlay"))return S.isActive?S.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){n.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(_(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),n.scrollTop(this.scrollV).scrollLeft(this.scrollH)),_(".fancybox-overlay").remove().hide(),_.extend(this,{overlay:null,fixed:!1})},update:function(){var e,t="100%";this.overlay.width(t).height("100%"),r?(e=Math.max(i.documentElement.offsetWidth,i.body.offsetWidth),c.width()>e&&(t=c.width())):c.width()>n.width()&&(t=c.width()),this.overlay.width(t).height(c.height())},onReady:function(e,t){var i=this.overlay;_(".fancybox-overlay").stop(!0,!0),i||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&&_("*:not(object)").filter(function(){return"fixed"===_(this).css("position")&&!_(this).hasClass("fancybox-overlay")&&!_(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=n.scrollTop(),this.scrollH=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.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,_.proxy(this.close,this))}},S.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=S.current,i=t.title,n=e.type;if(_.isFunction(i)&&(i=i.call(t.element,t)),h(i)&&""!==_.trim(i)){switch(t=_(''+i+"
"),n){case"inside":n=S.skin;break;case"outside":n=S.wrap;break;case"over":n=S.inner;break;default:n=S.skin,t.appendTo("body"),r&&t.width(t.width()),t.wrapInner(''),S.current.margin[2]+=Math.abs(E(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](n)}}},_.fn.fancybox=function(a){var r,l=_(this),s=this.selector||"",e=function(e){var t,i,n=_(this).blur(),o=r;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||n.is(".fancybox-wrap")||(t=a.groupAttr||"data-fancybox-group",(i=n.attr(t))||(t="rel",i=n.get(0)[t]),i&&""!==i&&"nofollow"!==i&&(o=(n=(n=s.length?_(s):l).filter("["+t+'="'+i+'"]')).index(this)),a.index=o,!1!==S.open(n,a)&&e.preventDefault())};return r=(a=a||{}).index||0,s&&!1!==a.live?c.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e):l.unbind("click.fb-start").bind("click.fb-start",e),this.filter("[data-fancybox-start=1]").trigger("click"),this},c.ready(function(){var e,t,i,n;_.scrollbarWidth===d&&(_.scrollbarWidth=function(){var e=_('').appendTo("body"),t=(t=e.children()).innerWidth()-t.height(99).innerWidth();return e.remove(),t}),_.support.fixedPosition===d&&(_.support.fixedPosition=(i=_('').appendTo("body"),n=20===i[0].offsetTop||15===i[0].offsetTop,i.remove(),n)),_.extend(S.defaults,{scrollbarWidth:_.scrollbarWidth(),fixed:_.support.fixedPosition,parent:_("body")}),e=_(o).width(),a.addClass("fancybox-lock-test"),t=_(o).width(),a.removeClass("fancybox-lock-test"),_("").appendTo("head")})}(window,document,jQuery);