jQuery(function(g,e){var f=g(window),c=g(document),d=g("body"),a=g("base").attr("href"),i={filters:[],callbacks:{},loadFilter:e,modal:false,closeOnEscape:true,closeOnClick:true,useKeyHandler:false,showCloseButton:true,closeButton:'<a href="#" class="nyroModalClose nyroModalCloseButton nmReposition" title="close">Close</a>',stack:false,nonStackable:"form",header:e,footer:e,galleryLoop:true,galleryCounts:true,ltr:true,imageRegex:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",selIndicator:"nyroModalSel",swfObjectId:e,swf:{allowFullScreen:"true",allowscriptaccess:"always",wmode:"transparent"},store:{},errorMsg:"An error occured",elts:{all:e,bg:e,load:e,cont:e,hidden:e},sizes:{initW:e,initH:e,w:e,h:e,minW:e,minH:e,wMargin:e,hMargin:e},anim:{def:e,showBg:e,hideBg:e,showLoad:e,hideLoad:e,showCont:e,hideCont:e,showTrans:e,hideTrans:e,resize:e},_open:false,_bgReady:false,_opened:false,_loading:false,_animated:false,_transition:false,_nmOpener:e,_nbContentLoading:0,_scripts:"",_scriptsShown:"",saveObj:function(){this.opener.data("nmObj",this)},open:function(){if(this._nmOpener){this._nmOpener._close()}this.getInternal()._pushStack(this.opener);this._opened=false;this._bgReady=false;this._open=true;this._initElts();this._load();this._nbContentLoading=0;this._callAnim("showBg",g.proxy(function(){this._bgReady=true;if(this._nmOpener){this._nmOpener._bgReady=false;this._nmOpener._loading=false;this._nmOpener._animated=false;this._nmOpener._opened=false;this._nmOpener._open=false;this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=e;this._nmOpener.saveObj();this._nmOpener=e}this._contentLoading()},this))},resize:function(k){if(k){this.elts.hidden.append(this.elts.cont.children().first().clone());this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();this.elts.hidden.empty()}else{this.sizes.w=this.sizes.initW;this.sizes.h=this.sizes.initH}this._unreposition();this.size();this._callAnim("resize",g.proxy(function(){this._reposition()},this))},size:function(){var l=this.getInternal().fullSize.viewH-this.sizes.hMargin,k=this.getInternal().fullSize.viewW-this.sizes.wMargin;if(this.sizes.minW&&this.sizes.minW>this.sizes.w){this.sizes.w=this.sizes.minW}if(this.sizes.minH&&this.sizes.minH>this.sizes.h){this.sizes.h=this.sizes.minH}if(this.sizes.h>l||this.sizes.w>k){this.sizes.h=Math.min(this.sizes.h,l);this.sizes.w=Math.min(this.sizes.w,k)}this._callFilters("size")},getForNewLinks:function(l){var k;if(this.stack&&(!l||this.isStackable(l))){k=g.extend(true,{},this);k._nmOpener=e;k.elts.all=e}else{k=g.extend({},this);k._nmOpener=this}k.filters=[];k.opener=e;k._open=false;return k},isStackable:function(k){return !k.is(this.nonStackable)},keyHandle:function(k){this.keyEvent=k;this._callFilters("keyHandle");this.keyEvent=e;delete (this.keyEvent)},getInternal:function(){return h},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=false;this._open=false;this._callFilters("close")},close:function(){this._close();this._callFilters("beforeClose");var k=this;this._unreposition();k._callAnim("hideCont",function(){k._callAnim("hideLoad",function(){k._callAnim("hideBg",function(){k._callFilters("afterClose");k.elts.cont.remove();k.elts.hidden.remove();k.elts.load.remove();k.elts.bg.remove();k.elts.all.remove();k.elts.cont=k.elts.hidden=k.elts.load=k.elts.bg=k.elts.all=e})})})},_initElts:function(){if(!this.stack&&this.getInternal().stack.length>1){this.elts=this.getInternal().stack[this.getInternal().stack.length-2]["nmObj"].elts}if(!this.elts.all||this.elts.all.closest("body").length==0){this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=e}if(!this.elts.all){this.elts.all=g("<div />").appendTo(this.getInternal()._container)}if(!this.elts.bg){this.elts.bg=g("<div />").hide().appendTo(this.elts.all)}if(!this.elts.cont){this.elts.cont=g("<div />").hide().appendTo(this.elts.all)}if(!this.elts.hidden){this.elts.hidden=g("<div />").hide().appendTo(this.elts.all)}this.elts.hidden.empty();if(!this.elts.load){this.elts.load=g("<div />").hide().appendTo(this.elts.all)}this._callFilters("initElts")},_error:function(){this._callFilters("error")},_setCont:function(o,k){if(k){var n=[],m=0;o=o.replace(/\r\n/gi,"nyroModalLN").replace(/<script(.|\s)*?\/script>/gi,function(q){n[m]=q;return'<pre class=nyroModalScript rel="'+(m++)+'"></pre>'});var p=g("<div>"+o+"</div>").find(k);if(p.length){o=p.html().replace(/<pre class="?nyroModalScript"? rel="?(.?)"?><\/pre>/gi,function(q,s,r){return n[s]}).replace(/nyroModalLN/gi,"\r\n")}else{this._error();return}}this.elts.hidden.append(this._filterScripts(o)).prepend(this.header).append(this.footer).wrapInner('<div class="nyroModal'+ucfirst(this.loadFilter)+'" />');this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();var l=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=l.h.total;this.sizes.wMargin=l.w.total;this.size();this.loading=false;this._callFilters("filledContent");this._contentLoading()},_filterScripts:function(n){if(typeof n!="string"){return n}this._scripts=[];this._scriptsShown=[];var r=0,o="<script",p="<\/script>",m=p.length,q,l,k;while((q=n.indexOf(o,r))>-1){l=n.indexOf(p)+m;k=g(n.substring(q,l));if(!k.attr("src")||k.attr("rel")=="forceLoad"){if(k.attr("rev")=="shown"){this._scriptsShown.push(k.get(0))}else{this._scripts.push(k.get(0))}}n=n.substring(0,q)+n.substr(l);r=q}return n},_hasFilter:function(l){var k=false;g.each(this.filters,function(m,n){k=k||n==l});return k},_delFilter:function(k){this.filters=g.map(this.filters,function(l){if(l!=k){return l}})},_callFilters:function(m){this.getInternal()._debug(m);var l=[],k=this;g.each(this.filters,function(n,o){l[o]=k._callFilter(o,m)});if(this.callbacks[m]&&g.isFunction(this.callbacks[m])){this.callbacks[m](this)}return l},_callFilter:function(l,k){if(b[l]&&b[l][k]&&g.isFunction(b[l][k])){return b[l][k](this)}return e},_callAnim:function(k,l){this.getInternal()._debug(k);this._callFilters("before"+ucfirst(k));if(!this._animated){this._animated=true;if(!g.isFunction(l)){l=g.noop}var m=this.anim[k]||this.anim.def||"basic";if(!j[m]||!j[m][k]||!g.isFunction(j[m][k])){m="basic"}j[m][k](this,g.proxy(function(){this._animated=false;this._callFilters("after"+ucfirst(k));l()},this))}},_load:function(){this.getInternal()._debug("_load");if(!this.loading&&this.loadFilter){this.loading=true;this._callFilter(this.loadFilter,"load")}},_contentLoading:function(){if(!this._animated&&this._bgReady){if(!this._transition&&this.elts.cont.html().length>0){this._transition=true}this._nbContentLoading++;if(!this.loading){if(!this._opened){this._opened=true;if(this._transition){var k=g.proxy(function(){this._writeContent();this._callFilters("beforeShowCont");this._callAnim("hideTrans",g.proxy(function(){this._transition=false;this._callFilters("afterShowCont");this.elts.cont.append(this._scriptsShown);this._reposition()},this))},this);if(this._nbContentLoading==1){this._unreposition();this._callAnim("showTrans",k)}else{k()}}else{this._callAnim("hideLoad",g.proxy(function(){this._writeContent();this._callAnim("showCont",g.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition()},this))},this))}}}else{if(this._nbContentLoading==1){var l=this.getInternal()._getOuter(this.elts.load);this.elts.load.css({position:"fixed",top:(this.getInternal().fullSize.viewH-this.elts.load.height()-l.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-l.w.margin)/2});if(this._transition){this._unreposition();this._callAnim("showTrans",g.proxy(function(){this._contentLoading()},this))}else{this._callAnim("showLoad",g.proxy(function(){this._contentLoading()},this))}}}}},_writeContent:function(){this.elts.cont.empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:"").css({position:"fixed",width:this.sizes.w,height:this.sizes.h,top:f.scrollTop()+(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2})},_reposition:function(){var l=this.elts.cont.find(".nmReposition");if(l.length){var k=this.getInternal()._getSpaceReposition();l.each(function(){var m=g(this),n=m.offset();m.css({position:"fixed",top:n.top-k.top,left:n.left-k.left})});this.elts.cont.after(l)}this.elts.cont.css("overflow","auto");this._callFilters("afterReposition")},_unreposition:function(){this.elts.cont.css("overflow","");var k=this.elts.all.find(".nmReposition");if(k.length){this.elts.cont.append(k.removeAttr("style"))}this._callFilters("afterUnreposition")}},h={firstInit:true,debug:false,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(l,k){if(h.firstInit){h._container=g("<div />").appendTo(d);f.smartresize(g.proxy(h._resize,h));c.bind("keydown.nyroModal",g.proxy(h._keyHandler,h));h._calculateFullSize();h.firstInit=false}return this.nmInit(l,k).each(function(){h._init(g(this).data("nmObj"))})},nmInit:function(l,k){return this.each(function(){var m=g(this);if(k){m.data("nmObj",g.extend(true,{opener:m},l))}else{m.data("nmObj",m.data("nmObj")?g.extend(true,m.data("nmObj"),l):g.extend(true,{opener:m},i,l))}})},nmCall:function(){return this.trigger("nyroModal")},nmManual:function(k,l){g('<a href="'+k+'"></a>').nyroModal(l).trigger("nyroModal")},nmData:function(l,k){this.nmManual("#",g.extend({data:l},k))},nmObj:function(k){g.extend(true,i,k)},nmInternal:function(k){g.extend(true,h,k)},nmAnims:function(k){g.extend(true,j,k)},nmFilters:function(k){g.extend(true,b,k)},nmTop:function(){if(h.stack.length){return h.stack[h.stack.length-1]["nmObj"]}return e},_debug:function(k){if(this.debug&&window.console&&window.console.log){window.console.log(k)}},_container:e,_init:function(k){k.filters=[];g.each(b,function(l,m){if(m.is&&g.isFunction(m.is)&&m.is(k)){k.filters.push(l)}});k._callFilters("initFilters");k._callFilters("init");k.opener.unbind("nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal").bind({"nyroModal.nyroModal":function(l){k.open();return false},"nmClose.nyroModal":function(){k.close();return false},"nmResize.nyroModal":function(){k.resize();return false}})},_scrollWidth:(function(){var l;if(g.browser.msie){var n=g('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo(d),m=g('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1000,left:-1000}).appendTo(d);l=n.width()-m.width();n.add(m).remove()}else{var k=g("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1000,left:-1000}).prependTo(d).append("<div />").find("div").css({width:"100%",height:200});l=100-k.width();k.parent().remove()}return l})(),_selNyroModal:function(k){return g(k).data("nmObj")?true:false},_selNyroModalOpen:function(l){var k=g(l);return k.data("nmObj")?k.data("nmObj")._open:false},_keyHandler:function(l){var k=g.nmTop();if(k&&k.useKeyHandler){return k.keyHandle(l)}},_pushStack:function(k){this.stack=g.map(this.stack,function(l){if(l.nmOpener!=k.get(0)){return l}});this.stack.push({nmOpener:k.get(0),nmObj:g(k).data("nmObj")})},_removeStack:function(k){this.stack=g.map(this.stack,function(l){if(l.nmOpener!=k.get(0)){return l}})},_resize:function(){var k=g(":nmOpen").each(function(){g(this).data("nmObj")._unreposition()});this._calculateFullSize();k.trigger("nmResize")},_calculateFullSize:function(){this.fullSize={w:c.width(),h:c.height(),wW:f.width(),wH:f.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH)},_getCurCSS:function(m,l){var k=parseInt(g.curCSS(m,l,true));return isNaN(k)?0:k},_getOuter:function(l){l=l.get(0);var k={h:{margin:this._getCurCSS(l,"marginTop")+this._getCurCSS(l,"marginBottom"),border:this._getCurCSS(l,"borderTopWidth")+this._getCurCSS(l,"borderBottomWidth"),padding:this._getCurCSS(l,"paddingTop")+this._getCurCSS(l,"paddingBottom")},w:{margin:this._getCurCSS(l,"marginLeft")+this._getCurCSS(l,"marginRight"),border:this._getCurCSS(l,"borderLeftWidth")+this._getCurCSS(l,"borderRightWidth"),padding:this._getCurCSS(l,"paddingLeft")+this._getCurCSS(l,"paddingRight")}};k.h.outer=k.h.margin+k.h.border;k.w.outer=k.w.margin+k.w.border;k.h.inner=k.h.padding+k.h.border;k.w.inner=k.w.padding+k.w.border;k.h.total=k.h.outer+k.h.padding;k.w.total=k.w.outer+k.w.padding;return k},_getSpaceReposition:function(){var l=this._getOuter(d),k=g.browser.msie&&g.browser.version<8&&!(screen.height<=f.height()+23);return{top:f.scrollTop()-(!k?l.h.border/2:0),left:f.scrollLeft()-(!k?l.w.border/2:0)}},_getHash:function(l){if(typeof l=="string"){var k=l.indexOf("#");if(k>-1){return l.substring(k)}}return""},_extractUrl:function(l){var k={url:e,sel:e};if(l){var o=this._getHash(l),p=this._getHash(window.location.href),m=window.location.href.substring(0,window.location.href.length-p.length),n=l.substring(0,l.length-o.length);k.sel=o;if(n!=m&&n!=a){k.url=n}}return k}},j={basic:{showBg:function(k,l){k.elts.bg.css({opacity:0.7}).show();l()},hideBg:function(k,l){k.elts.bg.hide();l()},showLoad:function(k,l){k.elts.load.show();l()},hideLoad:function(k,l){k.elts.load.hide();l()},showCont:function(k,l){k.elts.cont.show();l()},hideCont:function(k,l){k.elts.cont.hide();l()},showTrans:function(k,l){k.elts.cont.hide();k.elts.load.show();l()},hideTrans:function(k,l){k.elts.cont.show();k.elts.load.hide();l()},resize:function(k,l){k.elts.cont.css({width:k.sizes.w,height:k.sizes.h,top:(k.getInternal().fullSize.viewH-k.sizes.h-k.sizes.hMargin)/2,left:(k.getInternal().fullSize.viewW-k.sizes.w-k.sizes.wMargin)/2});l()}}},b={basic:{is:function(k){return true},init:function(k){if(k.opener.attr("rev")=="modal"){k.modal=true}if(k.modal){k.closeOnEscape=k.closeOnClick=k.showCloseButton=false}if(k.closeOnEscape){k.useKeyHandler=true}},initElts:function(k){k.elts.bg.addClass("nyroModalBg");if(k.closeOnClick){k.elts.bg.unbind("click.nyroModal").bind("click.nyroModal",function(l){l.preventDefault();k.close()})}k.elts.cont.addClass("nyroModalCont");k.elts.hidden.addClass("nyroModalCont nyroModalHidden");k.elts.load.addClass("nyroModalCont nyroModalLoad")},error:function(k){k.elts.hidden.addClass("nyroModalError");k.elts.cont.addClass("nyroModalError");k._setCont(k.errorMsg)},beforeShowCont:function(k){k.elts.cont.find(".nyroModal").each(function(){var l=g(this);l.nyroModal(k.getForNewLinks(l),true)}).end().find(".nyroModalClose").bind("click.nyroModal",function(l){l.preventDefault();k.close()})},keyHandle:function(k){if(k.keyEvent.keyCode==27&&k.closeOnEscape){k.keyEvent.preventDefault();k.close()}}},custom:{is:function(k){return true}}};g.fn.extend({nm:h.nyroModal,nyroModal:h.nyroModal,nmInit:h.nmInit,nmCall:h.nmCall});g.extend({nmManual:h.nmManual,nmData:h.nmData,nmObj:h.nmObj,nmInternal:h.nmInternal,nmAnims:h.nmAnims,nmFilters:h.nmFilters,nmTop:h.nmTop});g.expr[":"].nyroModal=g.expr[":"].nm=h._selNyroModal;g.expr[":"].nmOpen=h._selNyroModalOpen});(function(c,b){var a=function(g,d,e){var h;return function f(){var k=this,j=arguments;function i(){if(!e){g.apply(k,j)}h=null}if(h){clearTimeout(h)}else{if(e){g.apply(k,j)}}h=setTimeout(i,d||100)}};jQuery.fn[b]=function(d){return d?this.bind("resize",a(d)):this.trigger(b)}})(jQuery,"smartresize");function ucfirst(b){b+="";var a=b.charAt(0).toUpperCase();return a+b.substr(1)}jQuery(function(a,b){a.nmAnims({fade:{showBg:function(c,d){c.elts.bg.fadeTo(250,0.7,d)},hideBg:function(c,d){c.elts.bg.fadeOut(d)},showLoad:function(c,d){c.elts.load.fadeIn(d)},hideLoad:function(c,d){c.elts.load.fadeOut(d)},showCont:function(c,d){c.elts.cont.fadeIn(d)},hideCont:function(c,d){c.elts.cont.css("overflow","hidden").fadeOut(d)},showTrans:function(c,d){c.elts.load.css({position:c.elts.cont.css("position"),top:c.elts.cont.css("top"),left:c.elts.cont.css("left"),width:c.elts.cont.css("width"),height:c.elts.cont.css("height"),marginTop:c.elts.cont.css("marginTop"),marginLeft:c.elts.cont.css("marginLeft")}).fadeIn(function(){c.elts.cont.hide();d()})},hideTrans:function(c,d){c.elts.cont.css("visibility","hidden").show();c.elts.load.css("position",c.elts.cont.css("position")).animate({top:c.elts.cont.css("top"),left:c.elts.cont.css("left"),width:c.elts.cont.css("width"),height:c.elts.cont.css("height"),marginTop:c.elts.cont.css("marginTop"),marginLeft:c.elts.cont.css("marginLeft")},function(){c.elts.cont.css("visibility","");c.elts.load.fadeOut(d)})},resize:function(c,d){c.elts.cont.animate({width:c.sizes.w,height:c.sizes.h,top:(c.getInternal().fullSize.viewH-c.sizes.h-c.sizes.hMargin)/2,left:(c.getInternal().fullSize.viewW-c.sizes.w-c.sizes.wMargin)/2},d)}}});a.nmObj({anim:{def:"fade"}})});jQuery(function(a,b){a.nmFilters({title:{is:function(c){return c.opener.is("[title]")},beforeShowCont:function(c){var d=c.elts.cont.offset();c.store.title=a("<h1 />",{text:c.opener.attr("title")}).addClass("nyroModalTitle nmReposition");c.elts.cont.prepend(c.store.title)},close:function(c){if(c.store.title){c.store.title.remove();c.store.title=b;delete (c.store.title)}}}})});jQuery(function(a,b){a.nmFilters({gallery:{is:function(e){var h=e.opener.is("[rel]:not([rel=external], [rel=nofollow])");if(h){var d=e.opener.attr("rel"),c=d.indexOf(" "),g=c>0?d.substr(0,c):d,f=a('[href][rel="'+g+'"], [href][rel^="'+g+' "]');if(f.length<2){h=false}if(h&&e.galleryCounts&&!e._hasFilter("title")){e.filters.push("title")}}return h},init:function(c){c.useKeyHandler=true},keyHandle:function(c){if(!c._animated&&c._opened){if(c.keyEvent.keyCode==39||c.keyEvent.keyCode==40){c.keyEvent.preventDefault();c._callFilters("galleryNext")}else{if(c.keyEvent.keyCode==37||c.keyEvent.keyCode==38){c.keyEvent.preventDefault();c._callFilters("galleryPrev")}}}},initElts:function(e){var d=e.opener.attr("rel"),c=d.indexOf(" ");e.store.gallery=c>0?d.substr(0,c):d;e.store.galleryLinks=a('[href][rel="'+e.store.gallery+'"], [href][rel^="'+e.store.gallery+' "]');e.store.galleryIndex=e.store.galleryLinks.index(e.opener)},beforeShowCont:function(c){if(c.galleryCounts&&c.store.title&&c.store.galleryLinks&&c.store.galleryLinks.length>1){var d=c.store.title.html();c.store.title.html((d.length?d+" - ":"")+(c.store.galleryIndex+1)+"/"+c.store.galleryLinks.length)}},filledContent:function(d){var e=this._getGalleryLink(d,-1),c=d.elts.hidden.find(" > div");if(e){a("<a />",{text:"previous",href:"#"}).addClass("nyroModalPrev").bind("click",function(f){f.preventDefault();d._callFilters("galleryPrev")}).appendTo(c)}e=this._getGalleryLink(d,1);if(e){a("<a />",{text:"next",href:"#"}).addClass("nyroModalNext").bind("click",function(f){f.preventDefault();d._callFilters("galleryNext")}).appendTo(c)}},close:function(c){c.store.gallery=b;c.store.galleryLinks=b;c.store.galleryIndex=b;delete (c.store.gallery);delete (c.store.galleryLinks);delete (c.store.galleryIndex);if(c.elts.cont){c.elts.cont.find(".nyroModalNext, .nyroModalPrev").remove()}},galleryNext:function(c){this._getGalleryLink(c,1).nyroModal(c.getForNewLinks(),true).click()},galleryPrev:function(c){this._getGalleryLink(c,-1).nyroModal(c.getForNewLinks(),true).click()},_getGalleryLink:function(c,e){if(c.store.gallery){if(!c.ltr){e*=-1}var d=c.store.galleryIndex+e;if(c.store.galleryLinks&&d>=0&&d<c.store.galleryLinks.length){return c.store.galleryLinks.eq(d)}else{if(c.galleryLoop&&c.store.galleryLinks){return c.store.galleryLinks.eq(d<0?c.store.galleryLinks.length-1:0)}}}return b}}})});jQuery(function(a,b){a.nmFilters({link:{is:function(c){var d=c.opener.is("[href]");if(d){c.store.link=c.getInternal()._extractUrl(c.opener.attr("href"))}return d},init:function(c){c.loadFilter="link";c.opener.unbind("click.nyroModal").bind("click.nyroModal",function(d){d.preventDefault();c.opener.trigger("nyroModal")})},load:function(c){a.ajax({url:c.store.link.url,data:c.store.link.sel?[{name:c.selIndicator,value:c.store.link.sel.substring(1)}]:b,success:function(d){c._setCont(d,c.store.link.sel)},error:function(){c._error()}})}}})});jQuery(function(a,b){a.nmFilters({dom:{is:function(c){return c._hasFilter("link")&&!c.store.link.url&&c.store.link.sel},init:function(c){c.loadFilter="dom"},load:function(c){c.store.domEl=a(c.store.link.sel);if(c.store.domEl.length){c._setCont(c.store.domEl.contents())}else{c._error()}},close:function(c){if(c.store.domEl&&c.elts.cont){c.store.domEl.append(c.elts.cont.find(".nyroModalDom").contents())}}}})});jQuery(function(a,b){a.nmFilters({image:{is:function(c){return(new RegExp(c.imageRegex,"i")).test(c.opener.attr("href"))},init:function(c){c.loadFilter="image"},load:function(c){var d=c.opener.attr("href");a("<img />").load(function(){c.elts.cont.addClass("nyroModalImg");c.elts.hidden.addClass("nyroModalImg");c._setCont(this)}).error(function(){c._error()}).attr("src",d)},size:function(c){if(c.sizes.w!=c.sizes.initW||c.sizes.h!=c.sizes.initH){var e=Math.min(c.sizes.w/c.sizes.initW,c.sizes.h/c.sizes.initH);c.sizes.w=c.sizes.initW*e;c.sizes.h=c.sizes.initH*e}var d=c.loading?c.elts.hidden.find("img"):c.elts.cont.find("img");d.attr({width:c.sizes.w,height:c.sizes.h})},close:function(c){if(c.elts.cont){c.elts.cont.removeClass("nyroModalImg");c.elts.hidden.removeClass("nyroModalImg")}}}})});jQuery(function(a,b){a.nmFilters({swf:{idCounter:1,is:function(c){return c._hasFilter("link")&&c.opener.is('[href$=".swf"]')},init:function(c){c.loadFilter="swf"},load:function(d){if(!d.swfObjectId){d.swfObjectId="nyroModalSwf-"+(this.idCounter++)}var e=d.store.link.url,c='<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+d.swfObjectId+'" width="'+d.sizes.w+'" height="'+d.sizes.h+'"><param name="movie" value="'+e+'"></param>',f="";a.each(d.swf,function(g,h){c+='<param name="'+g+'" value="'+h+'"></param>';f+=" "+g+'="'+h+'"'});c+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+d.sizes.w+'" height="'+d.sizes.h+'"'+f+"></embed></object></div>";d._setCont(c)}}})});jQuery(function(a,b){a.nmFilters({form:{is:function(c){var d=c.opener.is("form");if(d){c.store.form=c.getInternal()._extractUrl(c.opener.attr("action"))}return d},init:function(c){c.loadFilter="form";c.opener.unbind("submit.nyroModal").bind("submit.nyroModal",function(d){d.preventDefault();c.opener.trigger("nyroModal")})},load:function(c){var d=c.opener.serializeArray();if(c.store.form.sel){d.push({name:c.selIndicator,value:c.store.form.sel.substring(1)})}a.ajax({url:c.store.form.url,data:d,type:c.opener.attr("method")?c.opener.attr("method"):"get",success:function(e){c._setCont(e,c.store.form.sel)},error:function(){c._error()}})}}})});jQuery(function(a,b){a.nmFilters({formFile:{is:function(c){var d=c.opener.is('form[enctype="multipart/form-data"]');if(d){c._delFilter("form");if(!c.store.form){c.store.form=c.getInternal()._extractUrl(c.opener.attr("action"))}}return d},init:function(c){c.loadFilter="formFile";c.store.formFileLoading=false;c.opener.unbind("submit.nyroModal").bind("submit.nyroModal",function(d){if(!c.store.formFileIframe){d.preventDefault();c.opener.trigger("nyroModal")}else{c.store.formFileLoading=true}})},initElts:function(c){var d;if(c.store.form.sel){d=a("<input />",{type:"hidden",name:c.selIndicator,value:c.store.form.sel.substring(1)}).appendTo(c.opener)}function e(){if(d){d.remove();d=b;delete (d)}c.store.formFileIframe.attr("src","about:blank").remove();c.store.formFileIframe=b;delete (c.store.formFileIframe)}c.store.formFileIframe=a('<iframe frameborder="0" name="nyroModalFormFile" src="javascript:\'\';" id="nyromodal-iframe-'+(new Date().getTime())+'"></iframe>').hide().load(function(){if(c.store.formFileLoading){c.store.formFileLoading=false;var g=c.store.formFileIframe.unbind("load error").contents().find("body").not("script[src]");if(g&&g.html()&&g.html().length){e();c._setCont(g.html(),c.store.form.sel)}else{var f=0;fct=function(){f++;var h=c.store.formFileIframe.unbind("load error").contents().find("body").not("script[src]");if(h&&h.html()&&h.html().length){c._setCont(h.html(),c.store.form.sel);e()}else{if(f<5){setTimeout(fct,25)}else{e();c._error()}}};setTimeout(fct,25)}}}).error(function(){e();c._error()});c.elts.all.append(c.store.formFileIframe);c.opener.attr("target","nyroModalFormFile").submit()},close:function(c){c.store.formFileLoading=false;if(c.store.formFileIframe){c.store.formFileIframe.remove();c.store.formFileIframe=b;delete (c.store.formFileIframe)}}}})});jQuery(function(a,b){a.nmFilters({iframe:{is:function(d){var f=d.opener.attr("target")||"",c=d.opener.attr("rel")||"",e=d.opener.get(0);return !d._hasFilter("image")&&(f.toLowerCase()=="_blank"||c.toLowerCase().indexOf("external")>-1||(e.hostname&&e.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,"")))},init:function(c){c.loadFilter="iframe"},load:function(c){c.store.iframe=a('<iframe frameborder="0" src="javascript:\'\';" id="nyromodal-iframe-'+(new Date().getTime())+'"></iframe>');c._setCont(c.store.iframe)},afterShowCont:function(c){c.store.iframe.attr("src",c.opener.attr("href"))},close:function(c){if(c.store.iframe){c.store.iframe.remove();c.store.iframe=b;delete (c.store.iframe)}}}})});jQuery(function(a,b){a.nmFilters({iframeForm:{is:function(c){var d=c._hasFilter("iframe")&&c.opener.is("form");if(d){c._delFilter("iframe");c._delFilter("form")}return d},init:function(c){c.loadFilter="iframeForm";c.store.iframeFormLoading=false;c.store.iframeFormOrgTarget=c.opener.attr("target");c.opener.unbind("submit.nyroModal").bind("submit.nyroModal",function(d){if(!c.store.iframeFormIframe){d.preventDefault();c.opener.trigger("nyroModal")}else{c.store.iframeFormLoading=true}})},load:function(c){c.store.iframeFormIframe=a('<iframe frameborder="0" name="nyroModalIframeForm" src="javascript:\'\';" id="nyromodal-iframe-'+(new Date().getTime())+'"></iframe>');c._setCont(c.store.iframeFormIframe)},afterShowCont:function(c){c.opener.attr("target","nyroModalIframeForm").submit()},close:function(c){c.store.iframeFormOrgTarget?c.opener.attr("target",c.store.iframeFormOrgTarget):c.opener.removeAttr("target");delete (c.store.formFileLoading);delete (c.store.iframeFormOrgTarget);if(c.store.iframeFormIframe){c.store.iframeFormIframe.remove();c.store.iframeFormIframe=b;delete (c.store.iframeFormIframe)}}}})});jQuery(function(a,b){a.nmFilters({embedly:{is:function(c){var e=/http:\/\/(.*youtube\.com\/watch.*|.*\.youtube\.com\/v\/.*|youtu\.be\/.*|.*\.youtube\.com\/user\/.*|.*\.youtube\.com\/.*#.*\/.*|m\.youtube\.com\/watch.*|m\.youtube\.com\/index.*|.*\.youtube\.com\/profile.*|.*justin\.tv\/.*|.*justin\.tv\/.*\/b\/.*|.*justin\.tv\/.*\/w\/.*|www\.ustream\.tv\/recorded\/.*|www\.ustream\.tv\/channel\/.*|www\.ustream\.tv\/.*|qik\.com\/video\/.*|qik\.com\/.*|qik\.ly\/.*|.*revision3\.com\/.*|.*\.dailymotion\.com\/video\/.*|.*\.dailymotion\.com\/.*\/video\/.*|www\.collegehumor\.com\/video:.*|.*twitvid\.com\/.*|www\.break\.com\/.*\/.*|vids\.myspace\.com\/index\.cfm\?fuseaction=vids\.individual&videoid.*|www\.myspace\.com\/index\.cfm\?fuseaction=.*&videoid.*|www\.metacafe\.com\/watch\/.*|www\.metacafe\.com\/w\/.*|blip\.tv\/file\/.*|.*\.blip\.tv\/file\/.*|video\.google\.com\/videoplay\?.*|.*revver\.com\/video\/.*|video\.yahoo\.com\/watch\/.*\/.*|video\.yahoo\.com\/network\/.*|.*viddler\.com\/explore\/.*\/videos\/.*|liveleak\.com\/view\?.*|www\.liveleak\.com\/view\?.*|animoto\.com\/play\/.*|dotsub\.com\/view\/.*|www\.overstream\.net\/view\.php\?oid=.*|www\.livestream\.com\/.*|www\.worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|teachertube\.com\/viewVideo\.php.*|www\.teachertube\.com\/viewVideo\.php.*|www1\.teachertube\.com\/viewVideo\.php.*|www2\.teachertube\.com\/viewVideo\.php.*|bambuser\.com\/v\/.*|bambuser\.com\/channel\/.*|bambuser\.com\/channel\/.*\/broadcast\/.*|www\.schooltube\.com\/video\/.*\/.*|bigthink\.com\/ideas\/.*|bigthink\.com\/series\/.*|sendables\.jibjab\.com\/view\/.*|sendables\.jibjab\.com\/originals\/.*|www\.xtranormal\.com\/watch\/.*|socialcam\.com\/v\/.*|www\.socialcam\.com\/v\/.*|dipdive\.com\/media\/.*|dipdive\.com\/member\/.*\/media\/.*|dipdive\.com\/v\/.*|.*\.dipdive\.com\/media\/.*|.*\.dipdive\.com\/v\/.*|v\.youku\.com\/v_show\/.*\.html|v\.youku\.com\/v_playlist\/.*\.html|www\.snotr\.com\/video\/.*|snotr\.com\/video\/.*|video\.jardenberg\.se\/.*|.*yfrog\..*\/.*|tweetphoto\.com\/.*|www\.flickr\.com\/photos\/.*|flic\.kr\/.*|twitpic\.com\/.*|www\.twitpic\.com\/.*|twitpic\.com\/photos\/.*|www\.twitpic\.com\/photos\/.*|.*imgur\.com\/.*|.*\.posterous\.com\/.*|post\.ly\/.*|twitgoo\.com\/.*|i.*\.photobucket\.com\/albums\/.*|s.*\.photobucket\.com\/albums\/.*|phodroid\.com\/.*\/.*\/.*|www\.mobypicture\.com\/user\/.*\/view\/.*|moby\.to\/.*|xkcd\.com\/.*|www\.xkcd\.com\/.*|imgs\.xkcd\.com\/.*|www\.asofterworld\.com\/index\.php\?id=.*|www\.asofterworld\.com\/.*\.jpg|asofterworld\.com\/.*\.jpg|www\.qwantz\.com\/index\.php\?comic=.*|23hq\.com\/.*\/photo\/.*|www\.23hq\.com\/.*\/photo\/.*|.*dribbble\.com\/shots\/.*|drbl\.in\/.*|.*\.smugmug\.com\/.*|.*\.smugmug\.com\/.*#.*|emberapp\.com\/.*\/images\/.*|emberapp\.com\/.*\/images\/.*\/sizes\/.*|emberapp\.com\/.*\/collections\/.*\/.*|emberapp\.com\/.*\/categories\/.*\/.*\/.*|embr\.it\/.*|picasaweb\.google\.com.*\/.*\/.*#.*|picasaweb\.google\.com.*\/lh\/photo\/.*|picasaweb\.google\.com.*\/.*\/.*|dailybooth\.com\/.*\/.*|brizzly\.com\/pic\/.*|pics\.brizzly\.com\/.*\.jpg|img\.ly\/.*|www\.tinypic\.com\/view\.php.*|tinypic\.com\/view\.php.*|www\.tinypic\.com\/player\.php.*|tinypic\.com\/player\.php.*|www\.tinypic\.com\/r\/.*\/.*|tinypic\.com\/r\/.*\/.*|.*\.tinypic\.com\/.*\.jpg|.*\.tinypic\.com\/.*\.png|meadd\.com\/.*\/.*|meadd\.com\/.*|.*\.deviantart\.com\/art\/.*|.*\.deviantart\.com\/gallery\/.*|.*\.deviantart\.com\/#\/.*|fav\.me\/.*|.*\.deviantart\.com|.*\.deviantart\.com\/gallery|.*\.deviantart\.com\/.*\/.*\.jpg|.*\.deviantart\.com\/.*\/.*\.gif|.*\.deviantart\.net\/.*\/.*\.jpg|.*\.deviantart\.net\/.*\/.*\.gif|plixi\.com\/p\/.*|plixi\.com\/profile\/home\/.*|plixi\.com\/.*|www\.fotopedia\.com\/.*\/.*|fotopedia\.com\/.*\/.*|photozou\.jp\/photo\/show\/.*\/.*|photozou\.jp\/photo\/photo_only\/.*\/.*|instagr\.am\/p\/.*|instagram\.com\/p\/.*|skitch\.com\/.*\/.*\/.*|img\.skitch\.com\/.*|https:\/\/skitch\.com\/.*\/.*\/.*|https:\/\/img\.skitch\.com\/.*|share\.ovi\.com\/media\/.*\/.*|www\.questionablecontent\.net\/|questionablecontent\.net\/|www\.questionablecontent\.net\/view\.php.*|questionablecontent\.net\/view\.php.*|questionablecontent\.net\/comics\/.*\.png|www\.questionablecontent\.net\/comics\/.*\.png|picplz\.com\/user\/.*\/pic\/.*\/|twitrpix\.com\/.*|.*\.twitrpix\.com\/.*|www\.someecards\.com\/.*\/.*|someecards\.com\/.*\/.*|some\.ly\/.*|www\.some\.ly\/.*|pikchur\.com\/.*|achewood\.com\/.*|www\.achewood\.com\/.*|achewood\.com\/index\.php.*|www\.achewood\.com\/index\.php.*|www\.whosay\.com\/content\/.*|www\.whosay\.com\/photos\/.*|www\.whosay\.com\/videos\/.*|say\.ly\/.*|www\.whitehouse\.gov\/photos-and-video\/video\/.*|www\.whitehouse\.gov\/video\/.*|wh\.gov\/photos-and-video\/video\/.*|wh\.gov\/video\/.*|www\.hulu\.com\/watch.*|www\.hulu\.com\/w\/.*|hulu\.com\/watch.*|hulu\.com\/w\/.*|.*crackle\.com\/c\/.*|www\.fancast\.com\/.*\/videos|www\.funnyordie\.com\/videos\/.*|www\.funnyordie\.com\/m\/.*|funnyordie\.com\/videos\/.*|funnyordie\.com\/m\/.*|www\.vimeo\.com\/groups\/.*\/videos\/.*|www\.vimeo\.com\/.*|vimeo\.com\/groups\/.*\/videos\/.*|vimeo\.com\/.*|vimeo\.com\/m\/#\/.*|www\.ted\.com\/talks\/.*\.html.*|www\.ted\.com\/talks\/lang\/.*\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/lang\/.*\/.*\.html.*|.*nfb\.ca\/film\/.*|www\.thedailyshow\.com\/watch\/.*|www\.thedailyshow\.com\/full-episodes\/.*|www\.thedailyshow\.com\/collection\/.*\/.*\/.*|movies\.yahoo\.com\/movie\/.*\/video\/.*|movies\.yahoo\.com\/movie\/.*\/trailer|movies\.yahoo\.com\/movie\/.*\/video|www\.colbertnation\.com\/the-colbert-report-collections\/.*|www\.colbertnation\.com\/full-episodes\/.*|www\.colbertnation\.com\/the-colbert-report-videos\/.*|www\.comedycentral\.com\/videos\/index\.jhtml\?.*|www\.theonion\.com\/video\/.*|theonion\.com\/video\/.*|wordpress\.tv\/.*\/.*\/.*\/.*\/|www\.traileraddict\.com\/trailer\/.*|www\.traileraddict\.com\/clip\/.*|www\.traileraddict\.com\/poster\/.*|www\.escapistmagazine\.com\/videos\/.*|www\.trailerspy\.com\/trailer\/.*\/.*|www\.trailerspy\.com\/trailer\/.*|www\.trailerspy\.com\/view_video\.php.*|www\.atom\.com\/.*\/.*\/|fora\.tv\/.*\/.*\/.*\/.*|www\.spike\.com\/video\/.*|www\.gametrailers\.com\/video\/.*|gametrailers\.com\/video\/.*|www\.koldcast\.tv\/video\/.*|www\.koldcast\.tv\/#video:.*|techcrunch\.tv\/watch.*|techcrunch\.tv\/.*\/watch.*|mixergy\.com\/.*|video\.pbs\.org\/video\/.*|www\.zapiks\.com\/.*|tv\.digg\.com\/diggnation\/.*|tv\.digg\.com\/diggreel\/.*|tv\.digg\.com\/diggdialogg\/.*|www\.trutv\.com\/video\/.*|www\.nzonscreen\.com\/title\/.*|nzonscreen\.com\/title\/.*|app\.wistia\.com\/embed\/medias\/.*|https:\/\/app\.wistia\.com\/embed\/medias\/.*|hungrynation\.tv\/.*\/episode\/.*|www\.hungrynation\.tv\/.*\/episode\/.*|hungrynation\.tv\/episode\/.*|www\.hungrynation\.tv\/episode\/.*|indymogul\.com\/.*\/episode\/.*|www\.indymogul\.com\/.*\/episode\/.*|indymogul\.com\/episode\/.*|www\.indymogul\.com\/episode\/.*|channelfrederator\.com\/.*\/episode\/.*|www\.channelfrederator\.com\/.*\/episode\/.*|channelfrederator\.com\/episode\/.*|www\.channelfrederator\.com\/episode\/.*|tmiweekly\.com\/.*\/episode\/.*|www\.tmiweekly\.com\/.*\/episode\/.*|tmiweekly\.com\/episode\/.*|www\.tmiweekly\.com\/episode\/.*|99dollarmusicvideos\.com\/.*\/episode\/.*|www\.99dollarmusicvideos\.com\/.*\/episode\/.*|99dollarmusicvideos\.com\/episode\/.*|www\.99dollarmusicvideos\.com\/episode\/.*|ultrakawaii\.com\/.*\/episode\/.*|www\.ultrakawaii\.com\/.*\/episode\/.*|ultrakawaii\.com\/episode\/.*|www\.ultrakawaii\.com\/episode\/.*|barelypolitical\.com\/.*\/episode\/.*|www\.barelypolitical\.com\/.*\/episode\/.*|barelypolitical\.com\/episode\/.*|www\.barelypolitical\.com\/episode\/.*|barelydigital\.com\/.*\/episode\/.*|www\.barelydigital\.com\/.*\/episode\/.*|barelydigital\.com\/episode\/.*|www\.barelydigital\.com\/episode\/.*|threadbanger\.com\/.*\/episode\/.*|www\.threadbanger\.com\/.*\/episode\/.*|threadbanger\.com\/episode\/.*|www\.threadbanger\.com\/episode\/.*|vodcars\.com\/.*\/episode\/.*|www\.vodcars\.com\/.*\/episode\/.*|vodcars\.com\/episode\/.*|www\.vodcars\.com\/episode\/.*|confreaks\.net\/videos\/.*|www\.confreaks\.net\/videos\/.*|video\.allthingsd\.com\/video\/.*|aniboom\.com\/animation-video\/.*|www\.aniboom\.com\/animation-video\/.*|clipshack\.com\/Clip\.aspx\?.*|www\.clipshack\.com\/Clip\.aspx\?.*|grindtv\.com\/.*\/video\/.*|www\.grindtv\.com\/.*\/video\/.*|ifood\.tv\/recipe\/.*|ifood\.tv\/video\/.*|ifood\.tv\/channel\/user\/.*|www\.ifood\.tv\/recipe\/.*|www\.ifood\.tv\/video\/.*|www\.ifood\.tv\/channel\/user\/.*|logotv\.com\/video\/.*|www\.logotv\.com\/video\/.*|lonelyplanet\.com\/Clip\.aspx\?.*|www\.lonelyplanet\.com\/Clip\.aspx\?.*|streetfire\.net\/video\/.*\.htm.*|www\.streetfire\.net\/video\/.*\.htm.*|trooptube\.tv\/videos\/.*|www\.trooptube\.tv\/videos\/.*|www\.godtube\.com\/featured\/video\/.*|godtube\.com\/featured\/video\/.*|www\.godtube\.com\/watch\/.*|godtube\.com\/watch\/.*|www\.tangle\.com\/view_video.*|mediamatters\.org\/mmtv\/.*|www\.clikthrough\.com\/theater\/video\/.*|soundcloud\.com\/.*|soundcloud\.com\/.*\/.*|soundcloud\.com\/.*\/sets\/.*|soundcloud\.com\/groups\/.*|snd\.sc\/.*|www\.last\.fm\/music\/.*|www\.last\.fm\/music\/+videos\/.*|www\.last\.fm\/music\/+images\/.*|www\.last\.fm\/music\/.*\/_\/.*|www\.last\.fm\/music\/.*\/.*|www\.mixcloud\.com\/.*\/.*\/|www\.radionomy\.com\/.*\/radio\/.*|radionomy\.com\/.*\/radio\/.*|www\.entertonement\.com\/clips\/.*|www\.rdio\.com\/#\/artist\/.*\/album\/.*|www\.rdio\.com\/artist\/.*\/album\/.*|www\.zero-inch\.com\/.*|.*\.bandcamp\.com\/|.*\.bandcamp\.com\/track\/.*|.*\.bandcamp\.com\/album\/.*|freemusicarchive\.org\/music\/.*|www\.freemusicarchive\.org\/music\/.*|freemusicarchive\.org\/curator\/.*|www\.freemusicarchive\.org\/curator\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/templates\/story\/story\.php.*|huffduffer\.com\/.*\/.*|www\.audioboo\.fm\/boos\/.*|audioboo\.fm\/boos\/.*|boo\.fm\/b.*|www\.xiami\.com\/song\/.*|xiami\.com\/song\/.*|www\.saynow\.com\/playMsg\.html.*|www\.saynow\.com\/playMsg\.html.*|listen\.grooveshark\.com\/s\/.*|radioreddit\.com\/songs.*|www\.radioreddit\.com\/songs.*|radioreddit\.com\/\?q=songs.*|www\.radioreddit\.com\/\?q=songs.*|espn\.go\.com\/video\/clip.*|espn\.go\.com\/.*\/story.*|abcnews\.com\/.*\/video\/.*|abcnews\.com\/video\/playerIndex.*|washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.boston\.com\/video.*|boston\.com\/video.*|www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\/video\.php.*|www\.facebook\.com\/v\/.*|cnbc\.com\/id\/.*\?.*video.*|www\.cnbc\.com\/id\/.*\?.*video.*|cnbc\.com\/id\/.*\/play\/1\/video\/.*|www\.cnbc\.com\/id\/.*\/play\/1\/video\/.*|cbsnews\.com\/video\/watch\/.*|www\.google\.com\/buzz\/.*\/.*\/.*|www\.google\.com\/buzz\/.*|www\.google\.com\/profiles\/.*|google\.com\/buzz\/.*\/.*\/.*|google\.com\/buzz\/.*|google\.com\/profiles\/.*|www\.cnn\.com\/video\/.*|edition\.cnn\.com\/video\/.*|money\.cnn\.com\/video\/.*|today\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/ns\/.*|today\.msnbc\.msn\.com\/id\/.*\/ns\/.*|multimedia\.foxsports\.com\/m\/video\/.*\/.*|msn\.foxsports\.com\/video.*|www\.globalpost\.com\/video\/.*|www\.globalpost\.com\/dispatch\/.*|guardian\.co\.uk\/.*\/video\/.*\/.*\/.*\/.*|www\.guardian\.co\.uk\/.*\/video\/.*\/.*\/.*\/.*|bravotv\.com\/.*\/.*\/videos\/.*|www\.bravotv\.com\/.*\/.*\/videos\/.*|video\.nationalgeographic\.com\/.*\/.*\/.*\.html|dsc\.discovery\.com\/videos\/.*|animal\.discovery\.com\/videos\/.*|health\.discovery\.com\/videos\/.*|investigation\.discovery\.com\/videos\/.*|military\.discovery\.com\/videos\/.*|planetgreen\.discovery\.com\/videos\/.*|science\.discovery\.com\/videos\/.*|tlc\.discovery\.com\/videos\/.*|.*amazon\..*\/gp\/product\/.*|.*amazon\..*\/.*\/dp\/.*|.*amazon\..*\/dp\/.*|.*amazon\..*\/o\/ASIN\/.*|.*amazon\..*\/gp\/offer-listing\/.*|.*amazon\..*\/.*\/ASIN\/.*|.*amazon\..*\/gp\/product\/images\/.*|.*amazon\..*\/gp\/aw\/d\/.*|www\.amzn\.com\/.*|amzn\.com\/.*|www\.shopstyle\.com\/browse.*|www\.shopstyle\.com\/action\/apiVisitRetailer.*|api\.shopstyle\.com\/action\/apiVisitRetailer.*|www\.shopstyle\.com\/action\/viewLook.*|gist\.github\.com\/.*|twitter\.com\/.*\/status\/.*|twitter\.com\/.*\/statuses\/.*|www\.twitter\.com\/.*\/status\/.*|www\.twitter\.com\/.*\/statuses\/.*|mobile\.twitter\.com\/.*\/status\/.*|mobile\.twitter\.com\/.*\/statuses\/.*|https:\/\/twitter\.com\/.*\/status\/.*|https:\/\/twitter\.com\/.*\/statuses\/.*|https:\/\/www\.twitter\.com\/.*\/status\/.*|https:\/\/www\.twitter\.com\/.*\/statuses\/.*|https:\/\/mobile\.twitter\.com\/.*\/status\/.*|https:\/\/mobile\.twitter\.com\/.*\/statuses\/.*|www\.crunchbase\.com\/.*\/.*|crunchbase\.com\/.*\/.*|www\.slideshare\.net\/.*\/.*|www\.slideshare\.net\/mobile\/.*\/.*|slidesha\.re\/.*|scribd\.com\/doc\/.*|www\.scribd\.com\/doc\/.*|scribd\.com\/mobile\/documents\/.*|www\.scribd\.com\/mobile\/documents\/.*|screenr\.com\/.*|polldaddy\.com\/community\/poll\/.*|polldaddy\.com\/poll\/.*|answers\.polldaddy\.com\/poll\/.*|www\.5min\.com\/Video\/.*|www\.howcast\.com\/videos\/.*|www\.screencast\.com\/.*\/media\/.*|screencast\.com\/.*\/media\/.*|www\.screencast\.com\/t\/.*|screencast\.com\/t\/.*|issuu\.com\/.*\/docs\/.*|www\.kickstarter\.com\/projects\/.*\/.*|www\.scrapblog\.com\/viewer\/viewer\.aspx.*|ping\.fm\/p\/.*|chart\.ly\/symbols\/.*|chart\.ly\/.*|maps\.google\.com\/maps\?.*|maps\.google\.com\/\?.*|maps\.google\.com\/maps\/ms\?.*|.*\.craigslist\.org\/.*\/.*|my\.opera\.com\/.*\/albums\/show\.dml\?id=.*|my\.opera\.com\/.*\/albums\/showpic\.dml\?album=.*&picture=.*|tumblr\.com\/.*|.*\.tumblr\.com\/post\/.*|www\.polleverywhere\.com\/polls\/.*|www\.polleverywhere\.com\/multiple_choice_polls\/.*|www\.polleverywhere\.com\/free_text_polls\/.*|www\.quantcast\.com\/wd:.*|www\.quantcast\.com\/.*|siteanalytics\.compete\.com\/.*|statsheet\.com\/statplot\/charts\/.*\/.*\/.*\/.*|statsheet\.com\/statplot\/charts\/e\/.*|statsheet\.com\/.*\/teams\/.*\/.*|statsheet\.com\/tools\/chartlets\?chart=.*|.*\.status\.net\/notice\/.*|identi\.ca\/notice\/.*|brainbird\.net\/notice\/.*|shitmydadsays\.com\/notice\/.*|www\.studivz\.net\/Profile\/.*|www\.studivz\.net\/l\/.*|www\.studivz\.net\/Groups\/Overview\/.*|www\.studivz\.net\/Gadgets\/Info\/.*|www\.studivz\.net\/Gadgets\/Install\/.*|www\.studivz\.net\/.*|www\.meinvz\.net\/Profile\/.*|www\.meinvz\.net\/l\/.*|www\.meinvz\.net\/Groups\/Overview\/.*|www\.meinvz\.net\/Gadgets\/Info\/.*|www\.meinvz\.net\/Gadgets\/Install\/.*|www\.meinvz\.net\/.*|www\.schuelervz\.net\/Profile\/.*|www\.schuelervz\.net\/l\/.*|www\.schuelervz\.net\/Groups\/Overview\/.*|www\.schuelervz\.net\/Gadgets\/Info\/.*|www\.schuelervz\.net\/Gadgets\/Install\/.*|www\.schuelervz\.net\/.*|myloc\.me\/.*|pastebin\.com\/.*|pastie\.org\/.*|www\.pastie\.org\/.*|redux\.com\/stream\/item\/.*\/.*|redux\.com\/f\/.*\/.*|www\.redux\.com\/stream\/item\/.*\/.*|www\.redux\.com\/f\/.*\/.*|cl\.ly\/.*|cl\.ly\/.*\/content|speakerdeck\.com\/u\/.*\/p\/.*|www\.kiva\.org\/lend\/.*|www\.timetoast\.com\/timelines\/.*|storify\.com\/.*\/.*|.*meetup\.com\/.*|meetu\.ps\/.*|www\.dailymile\.com\/people\/.*\/entries\/.*|.*\.kinomap\.com\/.*|www\.metacdn\.com\/api\/users\/.*\/content\/.*|www\.metacdn\.com\/api\/users\/.*\/media\/.*|prezi\.com\/.*\/.*|.*\.uservoice\.com\/.*\/suggestions\/.*|formspring\.me\/.*|www\.formspring\.me\/.*|formspring\.me\/.*\/q\/.*|www\.formspring\.me\/.*\/q\/.*|twitlonger\.com\/show\/.*|www\.twitlonger\.com\/show\/.*|tl\.gd\/.*|www\.qwiki\.com\/q\/.*|crocodoc\.com\/.*|.*\.crocodoc\.com\/.*|https:\/\/crocodoc\.com\/.*|https:\/\/.*\.crocodoc\.com\/.*)/i;var d=c._hasFilter("link")&&c.opener.attr("href")&&c.opener.attr("href").match(e)!==null;if(d){c._delFilter("iframe")}return d},init:function(c){c.loadFilter="embedly";c.store.embedly={}},load:function(c){a.ajax({url:"http://api.embed.ly/1/oembed",dataType:"jsonp",data:"wmode=transparent&url="+c.opener.attr("href"),success:function(d){if(d.type=="error"){c._error()}else{if(d.type=="photo"){c.filters.push("image");a("<img />").load(function(){c.elts.cont.addClass("nyroModalImg");c.elts.hidden.addClass("nyroModalImg");c._setCont(this)}).error(function(){c._error()}).attr("src",d.url)}else{c.store.embedly.w=d.width;c.store.embedly.h=d.height;c._setCont("<div>"+d.html+"</div>")}}}})},size:function(c){if(c.store.embedly.w&&!c.sizes.h){c.sizes.w=c.store.embedly.w;c.sizes.h=c.store.embedly.h}}}})});
