Popup calculator Copy a link to this page Print this page Email a link to this page Scroll up to form What does this mean? Remove this row Open/Close content Close content Return to content Copy to clipboard ',image:'',iframe:'",error:'

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

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