!function(t){function r(t){return"[object Function]"===j.call(t)}function e(t){return t.match(x)[0]}function n(t){for(t=t.replace(f,"/");t.match(h);)t=t.replace(h,"/");return t}function s(t){return d&&"string"==typeof d[t]?d[t]:t}function i(t){var r=t.length-1;return"#"===t.charAt(r)?t.substring(0,r):l.test(t)?t:t+".js"}function u(t,r){var s,i=t.charAt(0);if(v.test(t))s=t;else if("."===i)s=(r?e(r):b)+t;else if("/"===i){var u=b.match(p);s=u?u[0]+t.substring(1):t}else s=(y||"")+t;return n(s)}function o(t,r){return t?(t=s(t),t=i(t),u(t,r)):""}function a(t,r){this.id=t,this.uri=o(t),this.factory=r,this.exports=null,this.status=0,m[this.uri]=this}function c(t,r){return 1===arguments.length&&(r=t,t="."),new a(t,r)}var f=/\/\.\//g,h=/\/[^/]+\/\.\.\//,l=/[?#]|\.\w+$|\/$/,v=/^\/\/.|:\//,p=/^.*?\/\/.*?\//,g=/\.(?:js|css)(?:[?#]|$)/i,x=/[^?#]*\//,b=e(t.location.href),m={},d={},y=b,j={}.toString;a.prototype.exec=function(){function require(t){var t=require.resolve(t);if(g.test(t)){var r=m[t];return r&&r.exec()}return t}var t=this;if(t.status>0)return t.exports;t.status=1;var e=t.uri;require.resolve=function(t){return o(t,e)};var n=t.factory,exports=r(n)?n(require,t.exports={},t):n;return t.exports=void 0===exports?t.exports:exports,t.status=2,t.exports},c.config=function(t){t.alias&&(d=t.alias),t.base&&(y=u("/"===t.base.slice(-1)?t.base:t.base+"/"))},c.cmd=c.amd={},t.define=c}(this);; define.config({"alias":{"jquery":"assets\/lib\/jquery\/1.10\/jquery.js"},"base":".\/assets\/"}); !function(e,t){function n(e){var t=e.length,n=ct.type(e);return ct.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=kt[e]={};return ct.each(e.match(pt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ct.acceptData(e)){var o,a,s=ct.expando,u=e.nodeType,l=u?ct.cache:e,c=u?e[s]:e[s]&&s;if(c&&l[c]&&(i||l[c].data)||r!==t||"string"!=typeof n)return c||(c=u?e[s]=tt.pop()||ct.guid++:s),l[c]||(l[c]=u?{}:{toJSON:ct.noop}),("object"==typeof n||"function"==typeof n)&&(i?l[c]=ct.extend(l[c],n):l[c].data=ct.extend(l[c].data,n)),a=l[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[ct.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[ct.camelCase(n)])):o=a,o}}function o(e,t,n){if(ct.acceptData(e)){var r,i,o=e.nodeType,a=o?ct.cache:e,u=o?e[ct.expando]:ct.expando;if(a[u]){if(t&&(r=n?a[u]:a[u].data)){ct.isArray(t)?t=t.concat(ct.map(t,ct.camelCase)):t in r?t=[t]:(t=ct.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!s(r):!ct.isEmptyObject(r))return}(n||(delete a[u].data,s(a[u])))&&(o?ct.cleanData([e],!0):ct.support.deleteExpando||a!=a.window?delete a[u]:a[u]=null)}}}function a(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(St,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:Et.test(r)?ct.parseJSON(r):r}catch(o){}ct.data(e,n,r)}else r=t}return r}function s(e){var t;for(t in e)if(("data"!==t||!ct.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(){try{return G.activeElement}catch(e){}}function f(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function p(e,t,n){if(ct.isFunction(t))return ct.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ct.grep(e,function(e){return e===t!==n});if("string"==typeof t){if($t.test(t))return ct.filter(t,e,n);t=ct.filter(t,e)}return ct.grep(e,function(e){return ct.inArray(e,t)>=0!==n})}function d(e){var t=Ut.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){return ct.nodeName(e,"table")&&ct.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function g(e){return e.type=(null!==ct.find.attr(e,"type"))+"/"+e.type,e}function m(e){var t=on.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function y(e,t){for(var n,r=0;null!=(n=e[r]);r++)ct._data(n,"globalEval",!t||ct._data(t[r],"globalEval"))}function v(e,t){if(1===t.nodeType&&ct.hasData(e)){var n,r,i,o=ct._data(e),a=ct._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)ct.event.add(t,n,s[n][r])}a.data&&(a.data=ct.extend({},a.data))}}function b(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ct.support.noCloneEvent&&t[ct.expando]){i=ct._data(t);for(r in i.events)ct.removeEvent(t,r,i.handle);t.removeAttribute(ct.expando)}"script"===n&&t.text!==e.text?(g(t).text=e.text,m(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ct.support.html5Clone&&e.innerHTML&&!ct.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&tn.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function x(e,n){var r,i,o=0,a=typeof e.getElementsByTagName!==Y?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==Y?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],r=e.childNodes||e;null!=(i=r[o]);o++)!n||ct.nodeName(i,n)?a.push(i):ct.merge(a,x(i,n));return n===t||n&&ct.nodeName(e,n)?ct.merge([e],a):a}function w(e){tn.test(e.type)&&(e.defaultChecked=e.checked)}function T(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=kn.length;i--;)if(t=kn[i]+n,t in e)return t;return r}function C(e,t){return e=t||e,"none"===ct.css(e,"display")||!ct.contains(e.ownerDocument,e)}function N(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=ct._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&C(r)&&(o[a]=ct._data(r,"olddisplay",A(r.nodeName)))):o[a]||(i=C(r),(n&&"none"!==n||!i)&&ct._data(r,"olddisplay",i?n:ct.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function k(e,t,n){var r=vn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function E(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ct.css(e,n+Nn[o],!0,i)),r?("content"===n&&(a-=ct.css(e,"padding"+Nn[o],!0,i)),"margin"!==n&&(a-=ct.css(e,"border"+Nn[o]+"Width",!0,i))):(a+=ct.css(e,"padding"+Nn[o],!0,i),"padding"!==n&&(a+=ct.css(e,"border"+Nn[o]+"Width",!0,i)));return a}function S(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=fn(e),a=ct.support.boxSizing&&"border-box"===ct.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=pn(e,t,o),(0>i||null==i)&&(i=e.style[t]),bn.test(i))return i;r=a&&(ct.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+E(e,t,n||(a?"border":"content"),r,o)+"px"}function A(e){var t=G,n=wn[e];return n||(n=j(e,t),"none"!==n&&n||(cn=(cn||ct("",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:$.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(e,t){return e&&($.isPlainObject(t)||(t={}),!1!==i.close(!0))?($.isArray(e)||(e=s(e)?$(e).get():[e]),$.each(e,function(n,o){var a,r,c,d,p,h,f,u={};"object"===$.type(o)&&(o.nodeType&&(o=$(o)),s(o)?(u={href:o.data("fancybox-href")||o.attr("href"),title:o.data("fancybox-title")||o.attr("title"),isDom:!0,element:o},$.metadata&&$.extend(!0,u,o.metadata())):u=o),a=t.href||u.href||(l(o)?o:null),r=void 0!==t.title?t.title:u.title||"",c=t.content||u.content,d=c?"html":t.type||u.type,!d&&u.isDom&&(d=o.data("fancybox-type"),d||(p=o.prop("class").match(/fancybox\.(\w+)/),d=p?p[1]:null)),l(a)&&(d||(i.isImage(a)?d="image":i.isSWF(a)?d="swf":"#"===a.charAt(0)?d="inline":l(o)&&(d="html",c=o)),"ajax"===d&&(h=a.split(/\s+/,2),a=h.shift(),f=h.shift())),c||("inline"===d?a?c=$(l(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):u.isDom&&(c=o):"html"===d?c=a:d||a||!u.isDom||(d="inline",c=o)),$.extend(u,{href:a,type:d,content:c,title:r,selector:f}),e[n]=u}),i.opts=$.extend(!0,{},i.defaults,t),void 0!==t.keys&&(i.opts.keys=t.keys?$.extend({},i.defaults.keys,t.keys):!1),i.group=e,i._start(i.opts.index)):void 0},cancel:function(){var e=i.coming;e&&!1!==i.trigger("onCancel")&&(i.hideLoading(),i.ajaxLoad&&i.ajaxLoad.abort(),i.ajaxLoad=null,i.imgPreload&&(i.imgPreload.onload=i.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),i.coming=null,i.current||i._afterZoomOut(e))},close:function(e){i.cancel(),!1!==i.trigger("beforeClose")&&(i.unbindEvents(),i.isActive&&(i.isOpen&&e!==!0?(i.isOpen=i.isOpened=!1,i.isClosing=!0,$(".fancybox-item, .fancybox-nav").remove(),i.wrap.stop(!0,!0).removeClass("fancybox-opened"),i.transitions[i.current.closeMethod]()):($(".fancybox-wrap").stop(!0).trigger("onReset").remove(),i._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(i.player.timer)},o=function(){t(),i.current&&i.player.isActive&&(i.player.timer=setTimeout(i.next,i.current.playSpeed))},a=function(){t(),n.unbind(".player"),i.player.isActive=!1,i.trigger("onPlayEnd")},r=function(){i.current&&(i.current.loop||i.current.index=o.index?"next":"prev"],i.router=n||"jumpto",o.loop&&(0>e&&(e=o.group.length+e%o.group.length),e%=o.group.length),void 0!==o.group[e]&&(i.cancel(),i._start(e)))},reposition:function(e,t){var n,o=i.current,a=o?o.wrap:null;a&&(n=i._getPosition(t),e&&"scroll"===e.type?(delete n.position,a.stop(!0,!0).animate(n,200)):(a.css(n),o.pos=$.extend({},o.dim,n)))},update:function(e){var t=e&&e.type,n=!t||"orientationchange"===t;n&&(clearTimeout(a),a=null),i.isOpen&&!a&&(a=setTimeout(function(){var o=i.current;o&&!i.isClosing&&(i.wrap.removeClass("fancybox-tmp"),(n||"load"===t||"resize"===t&&o.autoResize)&&i._setDimension(),"scroll"===t&&o.canShrink||i.reposition(e),i.trigger("onUpdate"),a=null)},n&&!r?0:300))},toggle:function(e){i.isOpen&&(i.current.fitToView="boolean"===$.type(e)?e:!i.current.fitToView,r&&(i.wrap.removeAttr("style").addClass("fancybox-tmp"),i.trigger("onUpdate")),i.update())},hideLoading:function(){n.unbind(".loading"),$("#fancybox-loading").remove()},showLoading:function(){var e,t;i.hideLoading(),e=$('
').click(i.cancel).appendTo("body"),n.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),i.cancel())}),i.defaults.fixed||(t=i.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var e=i.current&&i.current.locked||!1,n={x:t.scrollLeft(),y:t.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=r&&window.innerWidth?window.innerWidth:t.width(),n.h=r&&window.innerHeight?window.innerHeight:t.height()),n},unbindEvents:function(){i.wrap&&s(i.wrap)&&i.wrap.unbind(".fb"),n.unbind(".fb"),t.unbind(".fb")},bindEvents:function(){var e,o=i.current;o&&(t.bind("orientationchange.fb"+(r?"":" resize.fb")+(o.autoCenter&&!o.locked?" scroll.fb":""),i.update),e=o.keys,e&&n.bind("keydown.fb",function(t){var n=t.which||t.keyCode,a=t.target||t.srcElement;return 27===n&&i.coming?!1:(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||a&&(a.type||$(a).is("[contenteditable]"))||$.each(e,function(e,a){return o.group.length>1&&void 0!==a[n]?(i[e](a[n]),t.preventDefault(),!1):$.inArray(n,a)>-1?(i[e](),t.preventDefault(),!1):void 0}),void 0)}),$.fn.mousewheel&&o.mouseWheel&&i.wrap.bind("mousewheel.fb",function(e,t,n,a){for(var r=e.target||null,s=$(r),l=!1;s.length&&!(l||s.is(".fancybox-skin")||s.is(".fancybox-wrap"));)l=d(s[0]),s=$(s).parent();0===t||l||i.group.length>1&&!o.canShrink&&(a>0||n>0?i.prev(a>0?"down":"left"):(0>a||0>n)&&i.next(0>a?"up":"right"),e.preventDefault())}))},trigger:function(e,t){var o,a=t||i.coming||i.current;if(a){if($.isFunction(a[e])&&(o=a[e].apply(a,Array.prototype.slice.call(arguments,1))),o===!1)return!1;a.helpers&&$.each(a.helpers,function(t,n){n&&i.helpers[t]&&$.isFunction(i.helpers[t][e])&&i.helpers[t][e]($.extend(!0,{},i.helpers[t].defaults,n),a)}),n.trigger(e)}},isImage:function(e){return l(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return l(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,n,o,a,s,l={};if(e=p(e),t=i.group[e]||null,!t)return!1;if(l=$.extend(!0,{},i.opts,t),a=l.margin,s=l.padding,"number"===$.type(a)&&(l.margin=[a,a,a,a]),"number"===$.type(s)&&(l.padding=[s,s,s,s]),l.modal&&$.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=i.group,l.index=e,i.coming=l,!1===i.trigger("beforeLoad"))return i.coming=null,void 0;if(o=l.type,n=l.href,!o)return i.coming=null,i.current&&i.router&&"jumpto"!==i.router?(i.current.index=e,i[i.router](i.direction)):!1;if(i.isActive=!0,("image"===o||"swf"===o)&&(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===o&&(l.aspectRatio=!0),"iframe"===o&&r&&(l.scrolling="scroll"),l.wrap=$(l.tpl.wrap).addClass("fancybox-"+(r?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),$.extend(l,{skin:$(".fancybox-skin",l.wrap),outer:$(".fancybox-outer",l.wrap),inner:$(".fancybox-inner",l.wrap)}),$.each(["Top","Right","Bottom","Left"],function(e,t){l.skin.css("padding"+t,h(l.padding[e]))}),i.trigger("onReady"),"inline"===o||"html"===o){if(!l.content||!l.content.length)return i._error("content")}else if(!n)return i._error("href");"image"===o?i._loadImage():"ajax"===o?i._loadAjax():"iframe"===o?i._loadIframe():i._afterLoad()},_error:function(e){$.extend(i.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:i.coming.tpl.error}),i._afterLoad()},_loadImage:function(){var e=i.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,i.coming.width=this.width/i.opts.pixelRatio,i.coming.height=this.height/i.opts.pixelRatio,i._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,i._error("image")},e.src=i.coming.href,e.complete!==!0&&i.showLoading()},_loadAjax:function(){var e=i.coming;i.showLoading(),i.ajaxLoad=$.ajax($.extend({},e.ajax,{url:e.href,error:function(e,t){i.coming&&"abort"!==t?i._error("ajax",e):i.hideLoading()},success:function(t,n){"success"===n&&(e.content=t,i._afterLoad())}}))},_loadIframe:function(){var e=i.coming,t=$(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",r?"auto":e.iframe.scrolling).attr("src",e.href);$(e.wrap).bind("onReset",function(){try{$(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(i.showLoading(),t.one("load",function(){$(this).data("ready",1),r||$(this).bind("load.fb",i.update),$(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),i._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||i._afterLoad()},_preloadImages:function(){var e,t,n=i.group,o=i.current,a=n.length,r=o.preload?Math.min(o.preload,a-1):0;for(t=1;r>=t;t+=1)e=n[(o.index+t)%a],"image"===e.type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,n,o,a,r,l=i.coming,c=i.current,d="fancybox-placeholder";if(i.hideLoading(),l&&i.isActive!==!1){if(!1===i.trigger("afterLoad",l,c))return l.wrap.stop(!0).trigger("onReset").remove(),i.coming=null,void 0;switch(c&&(i.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),i.unbindEvents(),e=l,t=l.content,n=l.type,o=l.scrolling,$.extend(i,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:c}),a=e.href,n){case"inline":case"ajax":case"html":e.selector?t=$("
").html(t).find(e.selector):s(t)&&(t.data(d)||t.data(d,$('
').insertAfter(t).hide()),t=t.show().detach(),e.wrap.bind("onReset",function(){$(this).find(t).length&&t.hide().replaceAll(t.data(d)).data(d,!1)}));break;case"image":t=e.tpl.image.replace("{href}",a);break;case"swf":t='',r="",$.each(e.swf,function(e,n){t+='',r+=" "+e+'="'+n+'"'}),t+='"}s(t)&&t.parent().is(e.inner)||e.inner.append(t),i.trigger("beforeShow"),e.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),i._setDimension(),i.reposition(),i.isOpen=!1,i.coming=null,i.bindEvents(),i.isOpened?c.prevMethod&&i.transitions[c.prevMethod]():$(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),i.transitions[i.isOpened?e.nextMethod:e.openMethod](),i._preloadImages()}},_setDimension:function(){var e,t,n,o,a,r,s,l,d,f,u,g,m,y,x,v=i.getViewport(),w=0,b=!1,k=!1,C=i.wrap,O=i.skin,W=i.inner,_=i.current,S=_.width,T=_.height,L=_.minWidth,E=_.minHeight,R=_.maxWidth,j=_.maxHeight,P=_.scrolling,H=_.scrollOutside?_.scrollbarWidth:0,M=_.margin,A=p(M[1]+M[3]),I=p(M[0]+M[2]);if(C.add(O).add(W).width("auto").height("auto").removeClass("fancybox-tmp"),e=p(O.outerWidth(!0)-O.width()),t=p(O.outerHeight(!0)-O.height()),n=A+e,o=I+t,a=c(S)?(v.w-n)*p(S)/100:S,r=c(T)?(v.h-o)*p(T)/100:T,"iframe"===_.type){if(y=_.content,_.autoHeight&&1===y.data("ready"))try{y[0].contentWindow.document.location&&(W.width(a).height(9999),x=y.contents().find("body"),H&&x.css("overflow-x","hidden"),r=x.outerHeight(!0))}catch(D){}}else(_.autoWidth||_.autoHeight)&&(W.addClass("fancybox-tmp"),_.autoWidth||W.width(a),_.autoHeight||W.height(r),_.autoWidth&&(a=W.width()),_.autoHeight&&(r=W.height()),W.removeClass("fancybox-tmp"));if(S=p(a),T=p(r),d=a/r,L=p(c(L)?p(L,"w")-n:L),R=p(c(R)?p(R,"w")-n:R),E=p(c(E)?p(E,"h")-o:E),j=p(c(j)?p(j,"h")-o:j),s=R,l=j,_.fitToView&&(R=Math.min(v.w-n,R),j=Math.min(v.h-o,j)),g=v.w-A,m=v.h-I,_.aspectRatio?(S>R&&(S=R,T=p(S/d)),T>j&&(T=j,S=p(T*d)),L>S&&(S=L,T=p(S/d)),E>T&&(T=E,S=p(T*d))):(S=Math.max(L,Math.min(S,R)),_.autoHeight&&"iframe"!==_.type&&(W.width(S),T=W.height()),T=Math.max(E,Math.min(T,j))),_.fitToView)if(W.width(S).height(T),C.width(S+e),f=C.width(),u=C.height(),_.aspectRatio)for(;(f>g||u>m)&&S>L&&T>E&&!(w++>19);)T=Math.max(E,Math.min(j,T-10)),S=p(T*d),L>S&&(S=L,T=p(S/d)),S>R&&(S=R,T=p(S/d)),W.width(S).height(T),C.width(S+e),f=C.width(),u=C.height();else S=Math.max(L,Math.min(S,S-(f-g))),T=Math.max(E,Math.min(T,T-(u-m)));H&&"auto"===P&&r>T&&g>S+e+H&&(S+=H),W.width(S).height(T),C.width(S+e),f=C.width(),u=C.height(),b=(f>g||u>m)&&S>L&&T>E,k=_.aspectRatio?s>S&&l>T&&a>S&&r>T:(s>S||l>T)&&(a>S||r>T),$.extend(_,{dim:{width:h(f),height:h(u)},origWidth:a,origHeight:r,canShrink:b,canExpand:k,wPadding:e,hPadding:t,wrapSpace:u-O.outerHeight(!0),skinSpace:O.height()-T}),!y&&_.autoHeight&&T>E&&j>T&&!k&&W.height("auto")},_getPosition:function(e){var t=i.current,n=i.getViewport(),o=t.margin,a=i.wrap.width()+o[1]+o[3],r=i.wrap.height()+o[0]+o[2],s={position:"absolute",top:o[0],left:o[3]};return t.autoCenter&&t.fixed&&!e&&r<=n.h&&a<=n.w?s.position="fixed":t.locked||(s.top+=n.y,s.left+=n.x),s.top=h(Math.max(s.top,s.top+(n.h-r)*t.topRatio)),s.left=h(Math.max(s.left,s.left+(n.w-a)*t.leftRatio)),s},_afterZoomIn:function(){var e=i.current;e&&(i.isOpen=i.isOpened=!0,i.wrap.css("overflow","visible").addClass("fancybox-opened"),i.update(),(e.closeClick||e.nextClick&&i.group.length>1)&&i.inner.css("cursor","pointer").bind("click.fb",function(t){$(t.target).is("a")||$(t.target).parent().is("a")||(t.preventDefault(),i[e.closeClick?"close":"next"]())}),e.closeBtn&&$(e.tpl.closeBtn).appendTo(i.skin).bind("click.fb",function(e){e.preventDefault(),i.close()}),e.arrows&&i.group.length>1&&((e.loop||e.index>0)&&$(e.tpl.prev).appendTo(i.outer).bind("click.fb",i.prev),(e.loop||e.index
').appendTo(i.coming?i.coming.parent:e.parent),this.fixed=!1,e.fixed&&i.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var n=this;e=$.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(t.bind("resize.overlay",$.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){return $(e.target).hasClass("fancybox-overlay")?(i.isActive?i.close():n.close(),!1):void 0}),this.overlay.css(e.css).show()},close:function(){var e,n;t.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&($(".fancybox-margin").removeClass("fancybox-margin"),e=t.scrollTop(),n=t.scrollLeft(),this.el.removeClass("fancybox-lock"),t.scrollTop(e).scrollLeft(n)),$(".fancybox-overlay").remove().hide(),$.extend(this,{overlay:null,fixed:!1})},update:function(){var e,i="100%";this.overlay.width(i).height("100%"),o?(e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),n.width()>e&&(i=n.width())):n.width()>t.width()&&(i=n.width()),this.overlay.width(i).height(n.height())},onReady:function(e,i){var o=this.overlay;$(".fancybox-overlay").stop(!0,!0),o||this.create(e),e.locked&&this.fixed&&i.fixed&&(o||(this.margin=n.height()>t.height()?$("html").css("margin-right").replace("px",""):!1),i.locked=this.overlay.append(i.wrap),i.fixed=!1),e.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,n){var i,o;n.locked&&(this.margin!==!1&&($("*").filter(function(){return"fixed"===$(this).css("position")&&!$(this).hasClass("fancybox-overlay")&&!$(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),i=t.scrollTop(),o=t.scrollLeft(),this.el.addClass("fancybox-lock"),t.scrollTop(i).scrollLeft(o)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!i.coming&&this.overlay.fadeOut(e.speedOut,$.proxy(this.close,this))}},i.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,n,a=i.current,r=a.title,s=e.type;if($.isFunction(r)&&(r=r.call(a.element,a)),l(r)&&""!==$.trim(r)){switch(t=$('
'+r+"
"),s){case"inside":n=i.skin;break;case"outside":n=i.wrap;break;case"over":n=i.inner;break;default:n=i.skin,t.appendTo("body"),o&&t.width(t.width()),t.wrapInner(''),i.current.margin[2]+=Math.abs(p(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](n)}}},$.fn.fancybox=function(e){var t,o=$(this),a=this.selector||"",r=function(n){var r,s,l=$(this).blur(),c=t;n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||l.is(".fancybox-wrap")||(r=e.groupAttr||"data-fancybox-group",s=l.attr(r),s||(r="rel",s=l.get(0)[r]),s&&""!==s&&"nofollow"!==s&&(l=a.length?$(a):o,l=l.filter("["+r+'="'+s+'"]'),c=l.index(this)),e.index=c,i.open(l,e)!==!1&&n.preventDefault())};return e=e||{},t=e.index||0,a&&e.live!==!1?n.undelegate(a,"click.fb-start").delegate(a+":not('.fancybox-item, .fancybox-nav')","click.fb-start",r):o.unbind("click.fb-start").bind("click.fb-start",r),this.filter("[data-fancybox-start=1]").trigger("click"),this},n.ready(function(){var t,n;void 0===$.scrollbarWidth&&($.scrollbarWidth=function(){var e=$('
').appendTo("body"),t=e.children(),n=t.innerWidth()-t.height(99).innerWidth();return e.remove(),n}),void 0===$.support.fixedPosition&&($.support.fixedPosition=function(){var e=$('
').appendTo("body"),t=20===e[0].offsetTop||15===e[0].offsetTop;return e.remove(),t}()),$.extend(i.defaults,{scrollbarWidth:$.scrollbarWidth(),fixed:$.support.fixedPosition,parent:$("body")}),t=$(window).width(),e.addClass("fancybox-lock-test"),n=$(window).width(),e.removeClass("fancybox-lock-test"),$("").appendTo("head")}),$});; define('assets/widgets/image/view.js',function(require){return require("assets/ui/fancybox.js"),function(f){var n=f.find(".w-image-container"),t=n.find("a"),e=t.find("img");n.data("lightbox")&&!t.attr("href")&&(t.attr("href",e[0].src),t.fancybox({openEffect:"elastic",closeEffect:"elastic"}))}});; define('assets/widgets/slider/view.js',function(require){function t(t,s,a){if(this.widget=t,this._defaults=e,this._name=i,this.widget===!0)this.element=this.container(s);else{this.element=this.widget.find("."+i);var s=this.element.parent(),a=[];$.each(s.find(".slidesjs-slide"),function(t,i){var e=$(i),s={},n=e.find("img");s.src=n.attr("src"),s.url=e.find(".thumblink").attr("href"),s.alt=n.attr("alt"),a.push(s)}),this.element.empty().removeAttr("style")}var n={width:s.attr("data-width"),height:s.attr("data-height"),play:{auto:!0}};switch(s.attr("data-theme")){case"02":n.pagination={active:!1};break;case"03":case"04":n.navigation={active:!1},n.callback={complete:function(t){var i=s.find(".slidesjs-slide");i.find(".title").fadeOut(),i.eq(t-1).find(".title").fadeIn()}}}this.options=$.extend(!0,{},e,n),this.element.css({width:this.options.width,height:this.options.height}),this.addItems(a),this.init()}var $=require("assets/lib/jquery/1.10/jquery.js"),i="slidesjs",e={width:940,height:528,start:1,navigation:{active:!0,effect:"slide"},pagination:{active:!0,effect:"slide"},play:{active:!1,effect:"slide",interval:5e3,auto:!1,swap:!0,pauseOnHover:!1,restartDelay:2500},effect:{slide:{speed:500},fade:{speed:300,crossfade:!0}},callback:{loaded:function(){},start:function(){},complete:function(){}}};return t.prototype.container=function(t){return $('
').appendTo(t)},t.prototype.addItems=function(t){var i=this.element,e=i.parent().attr("data-theme");$.each(t,$.proxy(function(t,s){var a='
'+s.alt+'
',n=$(a);i.append(n),("03"==e||"04"==e&&s.alt.length>0)&&this.title(n,s),n.find("img").css("display","none").load(function(t){var i=$(t.target),e=i.parents(".slidesjs-slide");e.addClass("sliderimgLoaded"),i.fadeIn(),"block"==e.css("display")?e.attr("_visible",!0):e.show(),i.css({marginTop:(e.height()-i.height())/2}),"true"!=e.attr("_visible")&&e.hide()})},this))},t.prototype.title=function(t,i){var e=$(''+i.alt+"");e.appendTo(t),t.prev().length>0&&e.fadeOut()},t.prototype.init=function(){var t=this.options.width,i=this.options.height;"100%"==t&&(t=this.element.width());var e,s,a,n,o,d,r=this;return e=this.element,this.data=$.data(this),$.data(this,"animating",!1),$.data(this,"total",e.children().not(".slidesjs-navigation",e).length),$.data(this,"current",this.options.start-1),"undefined"!=typeof TouchEvent&&($.data(this,"touch",!0),this.options.effect.slide.speed=this.options.effect.slide.speed/2),e.css({overflow:"hidden"}),e.slidesContainer=e.children().not(".slidesjs-navigation",e).wrapAll("
",e).parent().css({overflow:"hidden",position:"relative"}),$(".slidesjs-container",e).wrapInner("
",e).children(),$(".slidesjs-control",e).css({position:"relative",left:0}),$(".slidesjs-control",e).children().addClass("slidesjs-slide").css({position:"absolute",top:0,left:0,width:"100%",height:this.options.height,zIndex:0,display:"none",webkitBackfaceVisibility:"hidden"}),$.each($(".slidesjs-control",e).children(),function(t){var i;return i=$(this),i.attr("slidesjs-index",t)}),this.data.touch&&($(".slidesjs-control",e).on("touchstart",function(t){return r._touchstart(t)}),$(".slidesjs-control",e).on("touchmove",function(t){return r._touchmove(t)}),$(".slidesjs-control",e).on("touchend",function(t){return r._touchend(t)})),e.fadeIn(0),this.update(),this.data.touch&&this._setuptouch(),$(".slidesjs-control",e).children(":eq("+this.data.current+")").eq(0).fadeIn(0,function(){return $(this).css({zIndex:10})}),this.options.navigation.active&&(o=$("",{"class":"slidesjs-previous slidesjs-navigation",href:"#",title:"Previous",text:"Previous"}).appendTo(e),s=$("",{"class":"slidesjs-next slidesjs-navigation",href:"#",title:"Next",text:"Next"}).appendTo(e),setTimeout(function(){var t=(i-o.outerHeight())/2;o.css("top",t),s.css("top",t)},100)),$(".slidesjs-next",e).click(function(t){return t.preventDefault(),r.stop(!0),r.next(r.options.navigation.effect)}),$(".slidesjs-previous",e).click(function(t){return t.preventDefault(),r.stop(!0),r.previous(r.options.navigation.effect)}),this.options.play.active&&(n=$("",{"class":"slidesjs-play slidesjs-navigation",href:"#",title:"Play",text:"Play"}).appendTo(e),d=$("",{"class":"slidesjs-stop slidesjs-navigation",href:"#",title:"Stop",text:"Stop"}).appendTo(e),n.click(function(t){return t.preventDefault(),r.play(!0)}),d.click(function(t){return t.preventDefault(),r.stop(!0)}),this.options.play.swap&&d.css({display:"none"})),this.options.pagination.active&&(a=$("
'),n=$('
'),r=$('
');$("body").append(i.html(n).prepend(r.html('
')))}else var i=$("#tiptip_holder"),n=$("#tiptip_content"),r=$("#tiptip_arrow");return this.each(function(){function t(){o.enter.call(this),n.html(f),i.hide().removeAttr("class").css("margin","0"),r.removeAttr("style");var t=parseInt(a.offset().top),e=parseInt(a.offset().left),p=parseInt(a.outerWidth()),u=parseInt(a.outerHeight()),l=i.outerWidth(),h=i.outerHeight(),s=Math.round((p-l)/2),c=Math.round((u-h)/2),_=Math.round(e+s),v=Math.round(t+u+o.edgeOffset),m="",g="",b=Math.round(l-12)/2;"bottom"==o.defaultPosition?m="_bottom":"top"==o.defaultPosition?m="_top":"left"==o.defaultPosition?m="_left":"right"==o.defaultPosition&&(m="_right");var M=s+eparseInt($(window).width());M&&0>s||"_right"==m&&!w||"_left"==m&&es||"_left"==m&&!M)&&(m="_left",g=Math.round(h-13)/2,b=Math.round(l),_=Math.round(e-(l+o.edgeOffset+5)),v=Math.round(t+c));var O=t+u+o.edgeOffset+h+8>parseInt($(window).height()+$(window).scrollTop()),x=t+u-(o.edgeOffset+h+8)<0;O||"_bottom"==m&&O||"_top"==m&&!x?("_top"==m||"_bottom"==m?m="_top":m+="_top",g=h,v=Math.round(t-(h+5+o.edgeOffset))):(x|("_top"==m&&x)||"_bottom"==m&&!O)&&("_top"==m||"_bottom"==m?m="_bottom":m+="_bottom",g=-12,v=Math.round(t+u+o.edgeOffset)),"_right_top"==m||"_left_top"==m?v+=5:("_right_bottom"==m||"_left_bottom"==m)&&(v-=5),("_left_top"==m||"_left_bottom"==m)&&(_+=5),r.css({"margin-left":b+"px","margin-top":g+"px"}),i.css({"margin-left":_+"px","margin-top":v+"px"}).attr("class","tip"+m),d&&clearTimeout(d),d=setTimeout(function(){i.stop(!0,!0).fadeIn(o.fadeIn)},o.delay)}function e(){o.exit.call(this),d&&clearTimeout(d),i.fadeOut(o.fadeOut)}var a=$(this);if(o.content)var f=o.content;else var f=a.attr(o.attribute);if(""!=f){o.content||a.removeAttr(o.attribute);var d=!1;"hover"==o.activation?(a.hover(function(){t()},function(){o.keepAlive||e()}),o.keepAlive&&i.hover(function(){},function(){e()})):"focus"==o.activation?a.focus(function(){t()}).blur(function(){e()}):"click"==o.activation&&(a.click(function(){return t(),!1}).hover(function(){},function(){o.keepAlive||e()}),o.keepAlive&&i.hover(function(){},function(){e()}))}})}});; define('assets/widgets/follow/view.js',function(require){{require("assets/lib/jquery/1.10/jquery.js")}return require("assets/widgets/follow/tiptip.js"),function(i){var t=i.find("[data-weixin]");t.length&&t.tipTip({maxWidth:"400px",edgeOffset:10,content:''})}});; define(function(require){var jquery = require('jquery'), V = {"image":require("assets/widgets/image/view.js"),"slider":require("assets/widgets/slider/view.js"),"follow":require("assets/widgets/follow/view.js")};jquery(function(){jquery('.n-placement').each(function(){var t=$(this),v=V[t.data('type')];v&&v(t)})})}).exec()