/gi,Ot=/([?&])_=[^&]*/,qt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,ct=Ie.fn.load,Bt={},Ft={};try{Et=e.href}catch(e){Et=We.createElement(“a”),Et.href=””,Et=Et.href}St=qt.exec(Et.toLowerCase())||[],Ie.fn.load=function(t,n,o){if(“string”!=typeof t&&ct)return ct.apply(this,arguments);if(!this.length)return this;var s,e,d,r=this,a=t.indexOf(” “);return 0<=a&&(s=t.slice(a,t.length),t=t.slice(0,a)),Ie.isFunction(n)?(o=n,n=te):n&&”object”==typeof n&&(e=”POST”),Ie.ajax({url:t,type:e,dataType:”html”,data:n,complete:function(e,t){o&&r.each(o,d||[e.responseText,t,e])}}).done(function(e){d=arguments,r.html(s?Ie(“

“).append(e.replace(_t,””)).find(s):e)}),this},Ie.each([“ajaxStart”,”ajaxStop”,”ajaxComplete”,”ajaxError”,”ajaxSuccess”,”ajaxSend”],function(e,t){Ie.fn[t]=function(e){return this.on(t,e)}}),Ie.each([“get”,”post”],function(e,t){Ie[t]=function(n,a,o,e){return Ie.isFunction(a)&&(e=e||o,o=a,a=te),Ie.ajax({type:t,url:n,data:a,success:o,dataType:e})}}),Ie.extend({getScript:function(e,t){return Ie.get(e,te,t,”script”)},getJSON:function(e,t,n){return Ie.get(e,t,n,”json”)},ajaxSetup:function(e,t){return t?we(e,Ie.ajaxSettings):(t=e,e=Ie.ajaxSettings),we(e,t),e},ajaxSettings:{url:Et,isLocal:Lt.test(St[1]),global:!0,type:”GET”,contentType:”application/x-www-form-urlencoded; charset=UTF-8″,processData:!0,async:!0,accepts:{xml:”application/xml, text/xml”,html:”text/html”,text:”text/plain”,json:”application/json, text/javascript”,”*”:”*/*”},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:”responseXML”,text:”responseText”},converters:{“* text”:ee.String,”text html”:!0,”text json”:Ie.parseJSON,”text xml”:Ie.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Te(Bt),ajaxTransport:Te(Ft),ajax:function(s,a){function p(e,a,r,p){var i,c,s,t,u,f=a;2===S||(S=2,g&&clearTimeout(g),T=te,d=p||””,v.readyState=0e||304===e?(N.ifModified&&(u=v.getResponseHeader(“Last-Modified”),u&&(Ie.lastModified[b]=u),u=v.getResponseHeader(“Etag”),u&&(Ie.etag[b]=u)),304===e?(f=”notmodified”,i=!0):(i=ke(N,t),f=i.state,c=i.data,s=i.error,i=!s)):(s=f,(!f||e)&&(f=”error”,0>e&&(e=0))),v.status=e,v.statusText=(a||f)+””,i?n.resolveWith(l,[c,f,v]):n.rejectWith(l,[v,f,s]),v.statusCode(C),C=te,h&&m.trigger(“ajax”+(i?”Success”:”Error”),[v,N,i?c:s]),o.fireWith(l,[v,f]),h&&(m.trigger(“ajaxComplete”,[v,N]),–Ie.active||Ie.event.trigger(“ajaxStop”)))}”object”==typeof s&&(a=s,s=te),a=a||{};var b,d,e,T,g,c,h,i,N=Ie.ajaxSetup({},a),l=N.context||N,m=l!==N&&(l.nodeType||l instanceof Ie)?Ie(l):Ie.event,n=Ie.Deferred(),o=Ie.Callbacks(“once memory”),C=N.statusCode||{},r={},t={},S=0,u=”canceled”,v={readyState:0,setRequestHeader:function(e,n){if(!S){var a=e.toLowerCase();e=t[a]=t[a]||e,r[e]=n}return this},getAllResponseHeaders:function(){return 2==S?d:null},getResponseHeader:function(t){var n;if(2==S){if(!e)for(e={};n=At.exec(d);)e[n[1].toLowerCase()]=n[2];n=e[t.toLowerCase()]}return n===te?null:n},overrideMimeType:function(e){return S||(N.mimeType=e),this},abort:function(e){return e=e||u,T&&T.abort(e),p(0,e),this}};if(n.promise(v),v.success=v.done,v.error=v.fail,v.complete=o.add,v.statusCode=function(e){if(e){if(2>S)for(var t in e)C[t]=[C[t],e[t]];else t=e[v.status],v.always(t)}return this},N.url=((s||N.url)+””).replace(jt,””).replace(Ht,St[1]+”//”),N.dataTypes=Ie.trim(N.dataType||”*”).toLowerCase().split(ze),null==N.crossDomain&&(c=qt.exec(N.url.toLowerCase())||!1,N.crossDomain=c&&c.join(“:”)+(c[3]?””:”http:”===c[1]?80:443)!==St.join(“:”)+(St[3]?””:”http:”===St[1]?80:443)),N.data&&N.processData&&”string”!=typeof N.data&&(N.data=Ie.param(N.data,N.traditional)),Ne(Bt,N,a,v),2==S)return v;if(h=N.global,N.type=N.type.toUpperCase(),N.hasContent=!Dt.test(N.type),h&&0==Ie.active++&&Ie.event.trigger(“ajaxStart”),!N.hasContent&&(N.data&&(N.url+=(Mt.test(N.url)?”&”:”?”)+N.data,delete N.data),b=N.url,!1===N.cache)){var f=Ie.now(),y=N.url.replace(Ot,”$ 1_=”+f);N.url=y+(y===N.url?(Mt.test(N.url)?”&”:”?”)+”_=”+f:””)}for(i in(N.data&&N.hasContent&&!1!==N.contentType||a.contentType)&&v.setRequestHeader(“Content-Type”,N.contentType),N.ifModified&&(b=b||N.url,Ie.lastModified[b]&&v.setRequestHeader(“If-Modified-Since”,Ie.lastModified[b]),Ie.etag[b]&&v.setRequestHeader(“If-None-Match”,Ie.etag[b])),v.setRequestHeader(“Accept”,N.dataTypes[0]&&N.accepts[N.dataTypes[0]]?N.accepts[N.dataTypes[0]]+(“*”===N.dataTypes[0]?””:”, */*; q=0.01″):N.accepts[“*”]),N.headers)v.setRequestHeader(i,N.headers[i]);if(!N.beforeSend||!1!==N.beforeSend.call(l,v,N)&&2!=S){for(i in u=”abort”,{success:1,error:1,complete:1})v[i](N[i]);if(T=Ne(Ft,N,a,v),!T)p(-1,”No Transport”);else{v.readyState=1,h&&m.trigger(“ajaxSend”,[v,N]),N.async&&0S)p(-1,e);else throw e}}return v}return v.abort()},active:0,lastModified:{},etag:{}});var Wt=[],Pt=/\?/,It=/(=)\?(?=&|$ )|\?\?/,zt=Ie.now();Ie.ajaxSetup({jsonp:”callback”,jsonpCallback:function(){var e=Wt.pop()||Ie.expando+”_”+zt++;return this[e]=!0,e}}),Ie.ajaxPrefilter(“json jsonp”,function(t,n,a){var e,o,s,d=t.data,i=t.url,r=!1!==t.jsonp,p=r&&It.test(i),l=r&&!p&&”string”==typeof d&&!(t.contentType||””).indexOf(“application/x-www-form-urlencoded”)&&It.test(d);if(“jsonp”===t.dataTypes[0]||p||l)return e=t.jsonpCallback=Ie.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o=ee[e],p?t.url=i.replace(It,”$ 1″+e):l?t.data=d.replace(It,”$ 1″+e):r&&(t.url+=(Pt.test(i)?”&”:”?”)+t.jsonp+”=”+e),t.converters[“script json”]=function(){return s||Ie.error(e+” was not called”),s[0]},t.dataTypes[0]=”json”,ee[e]=function(){s=arguments},a.always(function(){ee[e]=o,t[e]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(e)),s&&Ie.isFunction(o)&&o(s[0]),s=o=te}),”script”}),Ie.ajaxSetup({accepts:{script:”text/javascript, application/javascript, application/ecmascript, application/x-ecmascript”},contents:{script:/javascript|ecmascript/},converters:{“text script”:function(e){return Ie.globalEval(e),e}}}),Ie.ajaxPrefilter(“script”,function(e){e.cache===te&&(e.cache=!1),e.crossDomain&&(e.type=”GET”,e.global=!1)}),Ie.ajaxTransport(“script”,function(e){if(e.crossDomain){var t,n=We.head||We.getElementsByTagName(“head”)[0]||We.documentElement;return{send:function(a,o){t=We.createElement(“script”),t.async=”async”,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(s,a){(a||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,n&&t.parentNode&&n.removeChild(t),t=te,a||o(200,”success”))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(0,1)}}}});var Rt,Xt=!!ee.ActiveXObject&&function(){for(var e in Rt)Rt[e](0,1)},$ t=0;Ie.ajaxSettings.xhr=ee.ActiveXObject?function(){return!this.isLocal&&Se()||Ee()}:Se,function(e){Ie.extend(Ie.support,{ajax:!!e,cors:!!e&&”withCredentials”in e})}(Ie.ajaxSettings.xhr()),Ie.support.ajax&&Ie.ajaxTransport(function(t){if(!t.crossDomain||Ie.support.cors){var n;return{send:function(a,s){var o,e,d=t.xhr();if(t.username?d.open(t.type,t.url,t.async,t.username,t.password):d.open(t.type,t.url,t.async),t.xhrFields)for(e in t.xhrFields)d[e]=t.xhrFields[e];t.mimeType&&d.overrideMimeType&&d.overrideMimeType(t.mimeType),t.crossDomain||a[“X-Requested-With”]||(a[“X-Requested-With”]=”XMLHttpRequest”);try{for(e in a)d.setRequestHeader(e,a[e])}catch(e){}d.send(t.hasContent&&t.data||null),n=function(i,a){var e,r,p,c,l;try{if(n&&(a||4===d.readyState))if(n=te,o&&(d.onreadystatechange=Ie.noop,Xt&&delete Rt[o]),a)4!==d.readyState&&d.abort();else{e=d.status,p=d.getAllResponseHeaders(),c={},l=d.responseXML,l&&l.documentElement&&(c.xml=l);try{c.text=d.responseText}catch(e){}try{r=d.statusText}catch(e){r=””}e||!t.isLocal||t.crossDomain?1223===e&&(e=204):e=c.text?200:404}}catch(e){a||s(-1,e)}c&&s(e,r,c,p)},t.async?4===d.readyState?setTimeout(n,0):(o=++$ t,Xt&&(Rt||(Rt={},Ie(ee).unload(Xt)),Rt[o]=n),d.onreadystatechange=n):n()},abort:function(){n&&n(0,1)}}}});var Ut,Vt,Jt=/^(?:toggle|show|hide)$ /,Yt=new RegExp(“^(?:([-+])=|)(“+o+”)([a-z%]*)$ “,”i”),Gt=/queueHooks$ /,Qt=[He],Kt={“*”:[function(t,n){var a,o,s=this.createTween(t,n),e=Yt.exec(n),d=s.cur(),r=+d||0,l=1,i=20;if(e){if(a=+e[2],o=e[3]||(Ie.cssNumber[t]?””:”px”),”px”!==o&&r){r=Ie.css(s.elem,t,!0)||a||1;do l=l||”.5″,r/=l,Ie.style(s.elem,t,r+o);while(l!=(l=s.cur()/d)&&1!=l&&–i)}s.unit=o,s.start=r,s.end=e[1]?r+(e[1]+1)*a:a}return s}]};Ie.Animation=Ie.extend(Le,{tweener:function(t,n){Ie.isFunction(t)?(n=t,t=[“*”]):t=t.split(” “);for(var a,o=0,s=t.length;o<=a&&970>=a?’medium’:970a?’small’:’unknown’,this.$ _GET.debug&&console.log(‘Window size is: ‘+size),size},AM.Master.prototype.getWinThresh=function(a,b){var c=$ (window).width();return size=c>=a&&c<=b?’medium’:c>b?’full’:c head’).append($ (”)),guideHook=’body’,guideWrap=$ (”,{id:b,title:e,href:’#’+b}),guideWrap.prependTo(guideHook)},AM.Master.prototype.generateElement=function(a,b,c){element=$ (‘<‘+b+’/>’,{class:c}),element.prependTo(a)},AM.Master.prototype.testEmail=function(){var a=document.newsletter.subscribe.value,b=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$ /;if(!b.test(a))return alert(‘Invalid email address!’),!1},AM.Master.prototype.detectMobile=function(){var a=!1;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&768>$ (window).width()&&(a=!0),a?this.$ _GET.debug&&console.log(‘mobile browser detected’):this.$ _GET.debug&&console.log(‘not a mobile browser’),a},AM.Master.prototype.generateNewsKeywords=function(){newsKeywordsMeta=$ (”,{name:’news_keywords’,content:$ (‘meta[name=keywords]’).attr(‘content’)}),newsKeywordsMeta.insertAfter($ (‘meta[name=keywords]’))},AM.Master.prototype.adThresh=function(a){var b=$ (window).width()>a?1:-1;$ (window).resize(function(){var c=$ (window).width();0>(c-a)*b&&(b*=-1,commonMethods.$ _GET.debug&&console.log(‘reloading gpt’),googletag.pubads().refresh())})},AM.Master.prototype.minHeader=function(){$ (‘header’).hasClass(‘full’)&&(this.$ _GET.debug&&console.log(‘minimizing header’),$ (‘header’).removeClass(‘full’),$ (‘header’).addClass(‘compact’))},AM.Master.prototype.maxHeader=function(){$ (‘header’).hasClass(‘compact’)&&(this.$ _GET.debug&&console.log(‘maximizing header’),$ (‘header’).removeClass(‘compact’),$ (‘header’).addClass(‘full’))},AM.Master.prototype.fakeComment=function(){function a(a,b){return Math.random()*(b-a)+a}$ (document).ready(function(){$ (‘.comments-link’).each(function(){randomCommentCount=Math.round(a(0,1500)),element=$ (”,{class:’ fake-comment’}),element.text(randomCommentCount),$ (this).prepend(‘ ‘+randomCommentCount)})})},AM.Master.prototype.homebrewAdhesion=function(){$ (document).ready(function(){placementHook=$ (‘body’),placementWrapSlug=’adhesion-wrap’,placementSlug=’adhesion’,placementInnerSlug=’adhesion-close’,placementWrap=$ (‘‘,{id:placementWrapSlug}),placement=$ (‘‘,{id:placementSlug}),placementClose=$ (”,{id:placementInnerSlug,class:’fa fa-times’}),placementInner=$ (”,{id:placementInnerSlug}),placementWrap.prependTo(placementHook),placement.prependTo(placementWrap),placementClose.appendTo($ (‘#’+placementSlug)),$ (‘#TheMarySue_Mobile_Adhesive’).prependTo($ (‘#’+placementSlug)),$ (‘#TheMarySue_Desktop_Adhesive’).prependTo($ (‘#’+placementSlug)),$ (‘#adhesion-close’).click(function(){$ (‘#adhesion’).css({display:’none’})})})},AM.Master.prototype.pCounter=function(a,b,c){for(var d=0,e=0,f=0;f<$ (a).length-3;f++){pCount=f+1;var g=$ (a+’:nth-of-type(‘+pCount+’)’),h=g.text().length;c&&console.log(‘p:’+pCount+’ – ‘+h+’ characters’);100 ‘);var b=$ (‘#featured-posts-wrap’);b.addClass(‘top-shelf-fixed’),scrollLeftBtn=$ (”,{id:’featured-posts-scrollleft’,class:’featured-posts-button’}).appendTo(b),scrollLeftBtn.click(function(){var b=a.scrollLeft();a.animate({scrollLeft:b-290},800)}),scrollRightBtn=$ (”,{id:’featured-posts-scrollright’,class:’featured-posts-button’}).appendTo(b),scrollRightBtn.click(function(){var b=a.scrollLeft();a.animate({scrollLeft:b+290},800)}),i=$ (”,{id:’featured-posts-hide’,class:’featured-posts-hide-closed’}).appendTo(b),i.click(function(){b.hasClass(‘top-shelf-expanded’)?(b.removeClass(‘top-shelf-expanded’),b.removeClass(‘top-shelf-open’),b.addClass(‘top-shelf-closed’),i.addClass(‘featured-posts-hide-closed’),Cookies.set(‘topShelf’,’closed’,{expires:1})):(b.removeClass(‘top-shelf-closed’),b.addClass(‘top-shelf-open’),b.addClass(‘top-shelf-expanded’),i.removeClass(‘featured-posts-hide-closed’))});var c=$ (‘#post-body p’).length-1,d=Math.floor(c-c/4);d<1&&(d=1);var e=$ (‘#post-body p:nth-of-type(‘+d+’)’),b=$ (‘#featured-posts-wrap’),a=$ (‘#featured-posts’),f=e.offset().top,g=b.hasClass(‘top-shelf-closed’),h=b.hasClass(‘top-shelf-open’),i=$ (‘#featured-posts-hide’);$ (window).scroll(function(){‘closed’!=Cookies.get(‘topShelf’)&&($ (window).scrollTop()>=f&&!g?(b.addClass(‘top-shelf-expanded’),i.removeClass(‘featured-posts-hide-closed’)):$ (window).scrollTop()<=b;b–){var c=jwplayer().id,d=/[$ _][^_]+/.exec(c)[0].substr(1),e=$ (‘#’+c),f=$ (‘‘,{id:’botr_’+d+’_CPxwb1cp_div’}),g=$ (‘‘,{id:’jw-placeholder’}),h=$ (”,{src:’//content.jwplatform.com/players/’+d+’-CPxwb1cp.js’}),i=e.height();g.insertAfter(e),jwplayer().remove(),f.insertAfter(g),f.css({“background-color”:’black’,height:i}),h.insertAfter(f),g.remove(),commonMethods.$ _GET.debug&&console.log(‘jw swapped to adfree’)}}; AM.Scroller=function(a,b){this.sticky=a,this.wrap=b,this.unitOrigin=this.sticky.offset().top,this.btmOfWrap=b.height()+b.offset().top,this.unitLimit=this.btmOfWrap-this.sticky.height(),this.insertCSS(),this.headerHeight=55,1024<$ (window).width()&&this.stickyLogic(this)},AM.Scroller.prototype.insertCSS=function(){$ (‘html > head’).append($ (”))},AM.Scroller.prototype.stickyLogic=function(a){$ (window).scroll(function(){$ (this).scrollTop()<=a.unitOrigin-a.headerHeight?(a.unitOrigin=a.sticky.offset().top,a.btmOfWrap=a.wrap.height()+a.wrap.offset().top,a.unitLimit=a.btmOfWrap-a.sticky.height(),a.sticky.removeClass(‘stuck’,’past-limit’)):$ (this).scrollTop()>=a.unitLimit?(a.sticky.addClass(‘past-limit’),a.sticky.removeClass(‘stuck’),a.sticky.css(‘top’,a.unitLimit-435)):(a.sticky.addClass(‘stuck’),a.sticky.removeClass(‘past-limit’),a.sticky.css(‘top’,”))})}; (function(x){var b,g,k,m,a,f,j,t,n,u,c,w,r,i=Math.max,z=0,q={},e=[],o=0,p={},d=[],l=null,A=new Image,v=/\.(jpg|gif|png|bmp|jpeg)(.*)?$ /i,D=/[^\.]\.(swf)\s*$ /i,C=1,E=0,y=””,s=!1,h=x.extend(x(““)[0],{prop:0}),B=x.browser.msie&&7>x.browser.version&&!window.XMLHttpRequest,G=function(){g.hide(),A.onerror=A.onload=null,l&&l.abort(),b.empty()},H=function(){!1===q.onError(e,z,q)?(g.hide(),s=!1):(q.titleShow=!1,q.width=”auto”,q.height=”auto”,b.html(“

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

“),I())},J=function(){var d,c,g,h,i,j,k=e[z];if(G(),q=x.extend({},x.fn.fancybox.defaults,”undefined”==typeof x(k).data(“fancybox”)?q:x(k).data(“fancybox”)),j=q.onStart(e,z,q),!1===j)s=!1;else if(“object”==typeof j&&(q=x.extend(q,j)),g=q.title||(k.nodeName?x(k).attr(“title”):k.title)||””,k.nodeName&&!q.orig&&(q.orig=x(k).children(“img:first”).length?x(k).children(“img:first”):x(k)),””===g&&q.orig&&q.titleFromAlt&&(g=q.orig.attr(“alt”)),d=q.href||(k.nodeName?x(k).attr(“href”):k.href)||null,(/^(?:javascript)/i.test(d)||”#”==d)&&(d=null),q.type?(c=q.type,!d&&(d=q.content)):q.content?c=”html”:d&&(c=d.match(v)?”image”:d.match(D)?”swf”:x(k).hasClass(“iframe”)?”iframe”:0===d.indexOf(“#”)?”inline”:”ajax”),c)switch(“inline”==c&&(k=d.substr(d.indexOf(“#”)),c=0 “).hide().insertBefore(x(k)).bind(“fancybox-cleanup”,function(){x(this).replaceWith(f.children())}).bind(“fancybox-cancel”,function(){x(this).replaceWith(b.children())}),x(k).appendTo(b),I();break;case”image”:s=!1,x.fancybox.showActivity(),A=new Image,A.onerror=function(){H()},A.onload=function(){s=!0,A.onerror=A.onload=null,q.width=A.width,q.height=A.height,x(““).attr({id:”fancybox-img”,src:A.src,alt:q.title}).appendTo(b),F()},A.src=d;break;case”swf”:q.scrolling=”no”,h=””,b.html(h),I();break;case”ajax”:s=!1,x.fancybox.showActivity(),q.ajax.win=q.ajax.success,l=x.ajax(x.extend({},q.ajax,{url:d,data:q.ajax.data||{},error:function(a){0 “),q.width=b.width(),q.height=b.height(),F()},F=function(){var i,a;if(g.hide(),m.is(“:visible”)&&!1===p.onCleanup(d,o,p))x.event.trigger(“fancybox-cancel”),s=!1;else{if(s=!0,x(f.add(k)).unbind(),x(window).unbind(“resize.fb scroll.fb”),x(document).unbind(“keydown.fb”),m.is(“:visible”)&&”outside”!==p.titlePosition&&m.css(“height”,m.height()),d=e,o=z,p=q,p.overlayShow?(k.css({“background-color”:p.overlayColor,opacity:p.overlayOpacity,cursor:p.hideOnOverlayClick?”pointer”:”auto”,height:x(document).height()}),!k.is(“:visible”)&&(B&&x(“select:not(#fancybox-tmp select)”).filter(function(){return”hidden”!==this.style.visibility}).css({visibility:”hidden”}).one(“fancybox-cleanup”,function(){this.style.visibility=”inherit”}),k.show())):k.hide(),r=O(),y=p.title||””,E=0,t.empty().removeAttr(“style”).removeClass(),!1!==p.titleShow&&(i=x.isFunction(p.titleFormat)?p.titleFormat(y,d,o,p):!!(y&&y.length)&&(“float”==p.titlePosition?” “:”

“+y+”

“),y=i,y&&””!==y))switch(t.addClass(“fancybox-title-“+p.titlePosition).html(y).appendTo(“body”).show(),p.titlePosition){case”inside”:t.css({width:r.width-2*p.padding,marginLeft:p.padding,marginRight:p.padding}),E=t.outerHeight(!0),t.appendTo(a),r.height+=E;break;case”over”:t.css({marginLeft:p.padding,width:r.width-2*p.padding,bottom:p.padding}).appendTo(a);break;case”float”:t.css(“left”,-1*parseInt((t.width()-r.width-40)/2,10)).appendTo(m);break;default:t.css({width:r.width-2*p.padding,paddingLeft:p.padding,paddingRight:p.padding}).appendTo(m);}t.hide(),m.is(“:visible”)?(x(j.add(n).add(u)).hide(),i=m.position(),w={top:i.top,left:i.left,width:m.width(),height:m.height()},a=w.width==r.width&&w.height==r.height,f.fadeTo(p.changeFade,.3,function(){var c=function(){f.html(b.contents()).fadeTo(p.changeFade,1,L)};x.event.trigger(“fancybox-change”),f.empty().removeAttr(“filter”).css({“border-width”:p.padding,width:r.width-2*p.padding,height:q.autoDimensions?”auto”:r.height-E-2*p.padding}),a?c():(h.prop=0,x(h).animate({prop:1},{duration:p.changeSpeed,easing:p.easingChange,step:M,complete:c}))})):(m.removeAttr(“style”),f.css(“border-width”,p.padding),”elastic”==p.transitionIn?(w=P(),f.html(b.contents()),m.show(),p.opacity&&(r.opacity=0),h.prop=0,x(h).animate({prop:1},{duration:p.speedIn,easing:p.easingIn,step:M,complete:L})):(“inside”==p.titlePosition&&0″).appendTo(f),m.show(),s=!1,x.fancybox.center(),p.onComplete(d,o,p);var b,a;d.length-1>o&&(b=d[o+1].href,”undefined”!=typeof b&&b.match(v)&&(a=new Image,a.src=b)),0b?.5:b),m.css(a),f.css({width:a.width-2*p.padding,height:a.height-E*b-2*p.padding})},N=function(){return[x(window).width()-2*p.margin,x(window).height()-2*p.margin,x(document).scrollLeft()+p.margin,x(document).scrollTop()+p.margin]},O=function(){var b=Math.min,d=N(),a={},c=p.autoScale,e=2*p.padding;return a.width=-1d[0]||a.height>d[1])&&(“image”==q.type||”swf”==q.type?(c=p.width/p.height,a.width>d[0]&&(a.width=d[0],a.height=parseInt((a.width-e)/c+e,10)),a.height>d[1]&&(a.height=d[1],a.width=parseInt((a.height-e)*c+e,10))):(a.width=b(a.width,d[0]),a.height=b(a.height,d[1]))),a.top=parseInt(i(d[3]-20,d[3]+.5*(d[1]-a.height-40)),10),a.left=parseInt(i(d[2]-20,d[2]+.5*(d[0]-a.width-40)),10),a},P=function(){var b=!!q.orig&&x(q.orig),a={};return b&&b.length?(a=b.offset(),a.top+=parseInt(b.css(“paddingTop”),10)||0,a.left+=parseInt(b.css(“paddingLeft”),10)||0,a.top+=parseInt(b.css(“border-top-width”),10)||0,a.left+=parseInt(b.css(“border-left-width”),10)||0,a.width=b.width(),a.height=b.height(),a={width:a.width+2*p.padding,height:a.height+2*p.padding,top:a.top-p.padding-20,left:a.left-p.padding-20}):(b=N(),a={width:2*p.padding,height:2*p.padding,top:parseInt(b[3]+.5*b[1],10),left:parseInt(b[2]+.5*b[0],10)}),a},Q=function(){g.is(“:visible”)?(x(“div”,g).css(“top”,-40*C+”px”),C=(C+1)%12):clearInterval(c)};x.fn.fancybox=function(b){return x(this).length?(x(this).data(“fancybox”,x.extend({},b,x.metadata?x(this).metadata():{})).unbind(“click.fb”).bind(“click.fb”,function(a){a.preventDefault(),s||(s=!0,x(this).blur(),e=[],z=0,a=x(this).attr(“rel”)||””,a&&””!=a&&”nofollow”!==a?(e=x(“a[rel=”+a+”], area[rel=”+a+”]”),z=e.index(this)):e.push(this),J())}),this):this},x.fancybox=function(b,a){var c;if(!s){if(s=!0,c=”undefined”==typeof a?{}:a,e=[],z=parseInt(c.index,10)||0,x.isArray(b)){for(var d=0,f=b.length;de.length||0>z)&&(z=0),J()}},x.fancybox.showActivity=function(){clearInterval(c),g.show(),c=setInterval(Q,66)},x.fancybox.hideActivity=function(){g.hide()},x.fancybox.next=function(){return x.fancybox.pos(o+1)},x.fancybox.prev=function(){return x.fancybox.pos(o-1)},x.fancybox.pos=function(b){s||(b=parseInt(b),e=d,-1=d.length?0:d.length-1,J()))},x.fancybox.cancel=function(){s||(s=!0,x.event.trigger(“fancybox-cancel”),G(),q.onCancel(e,z,q),s=!1)},x.fancybox.close=function(){function b(){k.fadeOut(“fast”),t.empty().hide(),m.hide(),x.event.trigger(“fancybox-cleanup”),f.empty(),p.onClosed(d,o,p),d=q=[],o=z=0,p=q={},s=!1}if(!(s||m.is(“:hidden”)))if(s=!0,p&&!1===p.onCleanup(d,o,p))s=!1;else if(G(),x(j.add(n).add(u)).hide(),x(f.add(k)).unbind(),x(window).unbind(“resize.fb scroll.fb”),x(document).unbind(“keydown.fb”),f.find(“iframe”).attr(“src”,B&&/^https/i.test(window.location.href||””)?”javascript:void(false)”:”about:blank”),”inside”!==p.titlePosition&&t.empty(),m.stop(),”elastic”==p.transitionOut){w=P();var a=m.position();r={top:a.top,left:a.left,width:m.width(),height:m.height()},p.opacity&&(r.opacity=1),t.empty().hide(),h.prop=1,x(h).animate({prop:0},{duration:p.speedOut,easing:p.easingOut,step:M,complete:b})}else m.fadeOut(“none”==p.transitionOut?0:p.speedOut,b)},x.fancybox.resize=function(){k.is(“:visible”)&&k.css(“height”,x(document).height()),x.fancybox.center(!0)},x.fancybox.center=function(b){var a,c;s||(c=!0===b?1:0,a=N(),!c&&(m.width()>a[0]||m.height()>a[1])||m.stop().animate({top:parseInt(i(a[3]-20,a[3]+.5*(a[1]-f.height()-40)-p.padding)),left:parseInt(i(a[2]-20,a[2]+.5*(a[0]-f.width()-40)-p.padding))},”number”==typeof b?b:200))},x.fancybox.init=function(){x(“#fancybox-wrap”).length||(x(“body”).append(b=x(“ “),g=x(“ “),k=x(“ “),m=x(“ “)),a=x(“ “).append(“ “).appendTo(m),a.append(f=x(“ “),j=x(“”),t=x(“ “),n=x(““),u=x(““)),j.click(x.fancybox.close),g.click(x.fancybox.cancel),n.click(function(b){b.preventDefault(),x.fancybox.prev()}),u.click(function(b){b.preventDefault(),x.fancybox.next()}),x.fn.mousewheel&&m.bind(“mousewheel.fb”,function(b,a){s?b.preventDefault():(0==x(b.target).get(0).clientHeight||x(b.target).get(0).scrollHeight===x(b.target).get(0).clientHeight)&&(b.preventDefault(),x.fancybox[0