function sm_format_twitter(t){for(var e=[],i=0;i]*[^.,;'">\:\s\<\>\)\]\!])/g,function(t){return''+t+""}).replace(/\B@([_a-z0-9]+)/gi,function(t){return t.charAt(0)+''+t.substring(1)+""});e.push(''+o+''+relative_time(t[i].created_at)+"")}return e.join("")}function sm_format_twitter2(t){for(var e=[],i=0;i]*[^.,;'">\:\s\<\>\)\]\!])/g,function(t){return''+t+""}).replace(/\B@([_a-z0-9]+)/gi,function(t){return t.charAt(0)+''+t.substring(1)+""});e.push('")}return e.join("")}function sm_format_twitter3(t){for(var e=[],i=0;i]*[^.,;'">\:\s\<\>\)\]\!])/g,function(t){return''+t+""}).replace(/\B@([_a-z0-9]+)/gi,function(t){return t.charAt(0)+''+t.substring(1)+""});e.push('")}return e.join("")}function relative_time(t){var e=t.split(" ");t=e[1]+" "+e[2]+", "+e[5]+" "+e[3];var i=Date.parse(t),n=arguments.length>1?arguments[1]:new Date,s=parseInt((n.getTime()-i)/1e3);return(s+=60*n.getTimezoneOffset())<60?"less than a minute ago":s<120?"about a minute ago":s<3600?parseInt(s/60).toString()+" minutes ago":s<7200?"about an hour ago":s<86400?"about "+parseInt(s/3600).toString()+" hours ago":s<172800?"1 day ago":parseInt(s/86400).toString()+" days ago"}function ssc_init(){if(document.body){var t=document.body,e=document.documentElement,i=window.innerHeight,n=t.scrollHeight;if(ssc_root=document.compatMode.indexOf("CSS")>=0?e:t,ssc_activeElement=t,ssc_initdone=!0,top!=self)ssc_frame=!0;else if(n>i&&(t.offsetHeight<=i||e.offsetHeight<=i)&&(ssc_root.style.height="auto",ssc_root.offsetHeight<=i)){var s=document.createElement("div");s.style.clear="both",t.appendChild(s)}ssc_fixedback||(t.style.backgroundAttachment="scroll",e.style.backgroundAttachment="scroll"),ssc_keyboardsupport&&ssc_addEvent("keydown",ssc_keydown)}}function ssc_scrollArray(t,e,i,n){if(n||(n=1e3),ssc_directionCheck(e,i),ssc_que.push({x:e,y:i,lastX:e<0?.99:-.99,lastY:i<0?.99:-.99,start:+new Date}),!ssc_pending){var s=function(){for(var a=+new Date,o=0,r=0,l=0;l=ssc_animtime,d=h?1:u/ssc_animtime;ssc_pulseAlgorithm&&(d=ssc_pulse(d));var p=c.x*d-c.lastX>>0,f=c.y*d-c.lastY>>0;o+=p,r+=f,c.lastX+=p,c.lastY+=f,h&&(ssc_que.splice(l,1),l--)}if(e){var m=t.scrollLeft;t.scrollLeft+=o,o&&t.scrollLeft===m&&(e=0)}if(i){var g=t.scrollTop;t.scrollTop+=r,r&&t.scrollTop===g&&(i=0)}e||i||(ssc_que=[]),ssc_que.length?setTimeout(s,n/ssc_framerate+1):ssc_pending=!1};setTimeout(s,0),ssc_pending=!0}}function ssc_wheel(t){ssc_initdone||ssc_init();var e=t.target,i=ssc_overflowingAncestor(e);if(!i||t.defaultPrevented||ssc_isNodeName(ssc_activeElement,"embed")||ssc_isNodeName(e,"embed")&&/\.pdf/i.test(e.src))return!0;var n=t.wheelDeltaX||0,s=t.wheelDeltaY||0;n||s||(s=t.wheelDelta||0),Math.abs(n)>1.2&&(n*=ssc_stepsize/120),Math.abs(s)>1.2&&(s*=ssc_stepsize/120),ssc_scrollArray(i,-n,-s),t.preventDefault()}function ssc_keydown(t){var e=t.target,i=t.ctrlKey||t.altKey||t.metaKey;if(/input|textarea|embed/i.test(e.nodeName)||e.isContentEditable||t.defaultPrevented||i)return!0;if(ssc_isNodeName(e,"button")&&t.keyCode===ssc_key.spacebar)return!0;var n=0,s=0,a=ssc_overflowingAncestor(ssc_activeElement),o=a.clientHeight;switch(a==document.body&&(o=window.innerHeight),t.keyCode){case ssc_key.up:s=-ssc_arrowscroll;break;case ssc_key.down:s=ssc_arrowscroll;break;case ssc_key.spacebar:s=-(t.shiftKey?1:-1)*o*.9;break;case ssc_key.pageup:s=.9*-o;break;case ssc_key.pagedown:s=.9*o;break;case ssc_key.home:s=-a.scrollTop;break;case ssc_key.end:var r=a.scrollHeight-a.scrollTop-o;s=r>0?r+10:0;break;case ssc_key.left:n=-ssc_arrowscroll;break;case ssc_key.right:n=ssc_arrowscroll;break;default:return!0}ssc_scrollArray(a,n,s),t.preventDefault()}function ssc_mousedown(t){ssc_activeElement=t.target}function ssc_setCache(t,e){for(var i=t.length;i--;)ssc_cache[ssc_uniqueID(t[i])]=e;return e}function ssc_overflowingAncestor(t){var e=[],i=ssc_root.scrollHeight;do{var n=ssc_cache[ssc_uniqueID(t)];if(n)return ssc_setCache(e,n);if(e.push(t),i===t.scrollHeight){if(!ssc_frame||ssc_root.clientHeight+100?1:-1,e=e>0?1:-1,ssc_direction.x===t&&ssc_direction.y===e||(ssc_direction.x=t,ssc_direction.y=e,ssc_que=[])}function ssc_pulse_(t){var e,i;return(t*=ssc_pulseScale)<1?e=t-(1-Math.exp(-t)):(t-=1,e=(i=Math.exp(-1))+(1-Math.exp(-t))*(1-i)),e*ssc_pulseNormalize}function ssc_pulse(t){return t>=1?1:t<=0?0:(1==ssc_pulseNormalize&&(ssc_pulseNormalize/=ssc_pulse_(1)),ssc_pulse_(t))}function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function setUnit(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+jQuery/)?""+t+e:t}function setFilter(t,e,i){var n=uncamel(e),s=jQuery.browser.mozilla?"":jQuery.CSS.sfx;t[s+"filter"]=t[s+"filter"]||"",i=setUnit(i>jQuery.CSS.filters[e].max?jQuery.CSS.filters[e].max:i,jQuery.CSS.filters[e].unit),t[s+"filter"]+=n+"("+i+") ",delete t[e]}if(jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,s){return jQuery.easing[jQuery.easing.def](t,e,i,n,s)},easeInQuad:function(t,e,i,n,s){return n*(e/=s)*e+i},easeOutQuad:function(t,e,i,n,s){return-n*(e/=s)*(e-2)+i},easeInOutQuad:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,s){return n*(e/=s)*e*e+i},easeOutCubic:function(t,e,i,n,s){return n*((e=e/s-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,s){return n*(e/=s)*e*e*e+i},easeOutQuart:function(t,e,i,n,s){return-n*((e=e/s-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,s){return n*(e/=s)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,s){return n*((e=e/s-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,s){return-n*Math.cos(e/s*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,s){return n*Math.sin(e/s*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,s){return-n/2*(Math.cos(Math.PI*e/s)-1)+i},easeInExpo:function(t,e,i,n,s){return 0==e?i:n*Math.pow(2,10*(e/s-1))+i},easeOutExpo:function(t,e,i,n,s){return e==s?i+n:n*(1-Math.pow(2,-10*e/s))+i},easeInOutExpo:function(t,e,i,n,s){return 0==e?i:e==s?i+n:(e/=s/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},easeInCirc:function(t,e,i,n,s){return-n*(Math.sqrt(1-(e/=s)*e)-1)+i},easeOutCirc:function(t,e,i,n,s){return n*Math.sqrt(1-(e=e/s-1)*e)+i},easeInOutCirc:function(t,e,i,n,s){return(e/=s/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,s){var a=1.70158,o=0,r=n;if(0==e)return i;if(1==(e/=s))return i+n;if(o||(o=.3*s),rx
',n.appendChild(s.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var s=t(this).find(e.join(","));(s=(s=s.not("object object")).not(n)).each(function(e){var i=t(this);if(!(i.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length)){i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16));var s=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10));if(!i.attr("id")){var a="fitvid"+e;i.attr("id",a)}i.wrap('').parent(".fluid-width-video-wrapper").css("padding-top",100*s+"%"),i.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(t,e){"use strict";var i=function(){var i={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},n=function(){var e=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return e&&t("html").css("cursor","pointer").on("click",t.noop),e}(),s=function(){var t=document.documentElement.style;return"behavior"in t&&"fill"in t&&/iemobile/i.test(navigator.userAgent)}(),a=!!e.PointerEvent,o=function(t,e){var n=i.menuClass;e.cssArrows&&(n+=" "+i.menuArrowClass),t.toggleClass(n)},r=function(e,n){return e.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+i.bcClass).filter(function(){return t(this).children(n.popUpSelector).hide().show().length}).removeClass(n.pathClass)},l=function(t){t.children("a").toggleClass(i.anchorClass)},c=function(t){var e=t.css("ms-touch-action"),i=t.css("touch-action");i="pan-y"===(i=i||e)?"auto":"pan-y",t.css({"ms-touch-action":i,"touch-action":i})},u=function(t){return t.closest("."+i.menuClass)},h=function(t){return u(t).data("sf-options")},d=function(){var e=t(this),i=h(e);clearTimeout(i.sfTimer),e.siblings().superfish("hide").end().superfish("show")},p=function(e){e.retainPath=t.inArray(this[0],e.$path)>-1,this.superfish("hide"),this.parents("."+e.hoverClass).length||(e.onIdle.call(u(this)),e.$path.length&&t.proxy(d,e.$path)())},f=function(){var e=t(this),i=h(e);n?t.proxy(p,e,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout(t.proxy(p,e,i),i.delay))},m=function(e){var i=t(this),n=h(i),s=i.siblings(e.data.popUpSelector);return!1===n.onHandleTouch.call(s)?this:void(s.length>0&&s.is(":hidden")&&(i.one("click.superfish",!1),"MSPointerDown"===e.type||"pointerdown"===e.type?i.trigger("focus"):t.proxy(d,i.parent("li"))()))},g=function(e,i){var o="li:has("+i.popUpSelector+")";t.fn.hoverIntent&&!i.disableHI?e.hoverIntent(d,f,o):e.on("mouseenter.superfish",o,d).on("mouseleave.superfish",o,f);var r="MSPointerDown.superfish";a&&(r="pointerdown.superfish"),n||(r+=" touchend.superfish"),s&&(r+=" mousedown.superfish"),e.on("focusin.superfish","li",d).on("focusout.superfish","li",f).on(r,"a",i,m)};return{hide:function(e){if(this.length){var i=this,n=h(i);if(!n)return this;var s=!0===n.retainPath?n.$path:"",a=i.find("li."+n.hoverClass).add(this).not(s).removeClass(n.hoverClass).children(n.popUpSelector),o=n.speedOut;if(e&&(a.show(),o=0),n.retainPath=!1,!1===n.onBeforeHide.call(a))return this;a.stop(!0,!0).animate(n.animationOut,o,function(){var e=t(this);n.onHide.call(e)})}return this},show:function(){var t=h(this);if(!t)return this;var e=this.addClass(t.hoverClass).children(t.popUpSelector);return!1===t.onBeforeShow.call(e)?this:(e.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(e)}),this)},destroy:function(){return this.each(function(){var e,n=t(this),s=n.data("sf-options");return!!s&&(e=n.find(s.popUpSelector).parent("li"),clearTimeout(s.sfTimer),o(n,s),l(e),c(n),n.off(".superfish").off(".hoverIntent"),e.children(s.popUpSelector).attr("style",function(t,e){return e.replace(/display[^;]+;?/g,"")}),s.$path.removeClass(s.hoverClass+" "+i.bcClass).addClass(s.pathClass),n.find("."+s.hoverClass).removeClass(s.hoverClass),s.onDestroy.call(n),void n.removeData("sf-options"))})},init:function(e){return this.each(function(){var n=t(this);if(n.data("sf-options"))return!1;var s=t.extend({},t.fn.superfish.defaults,e),a=n.find(s.popUpSelector).parent("li");s.$path=r(n,s),n.data("sf-options",s),o(n,s),l(a),c(n),g(n,s),a.not("."+i.bcClass).superfish("hide",!0),s.onInit.call(this)})}}}();t.fn.superfish=function(e,n){return i[e]?i[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?t.error("Method "+e+" does not exist on jQuery.fn.superfish"):i.init.apply(this,arguments)},t.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:t.noop,onBeforeShow:t.noop,onShow:t.noop,onBeforeHide:t.noop,onHide:t.noop,onIdle:t.noop,onDestroy:t.noop,onHandleTouch:t.noop}}(jQuery,window),function(t){t.fn.hoverIntent=function(e,i,n){var s={interval:100,sensitivity:7,timeout:0};s="object"==typeof e?t.extend(s,e):t.isFunction(i)?t.extend(s,{over:e,out:i,selector:n}):t.extend(s,{over:e,out:e,selector:i});var a,o,r,l,c=function(t){a=t.pageX,o=t.pageY},u=function(e,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(r-a)+Math.abs(l-o)=s[i].enter&&t<=s[i].exit){e=!0;break}e&&a!==s[i].label?(o=a,a=s[i].label,d()):e||""===a||(a="",d())},f=function(t){if("object"==typeof t){if(t.join().indexOf(a)>=0)return!0}else{if("*"===t)return!0;if("string"==typeof t&&a===t)return!0}},m=function(){var t=c();t!==r?(l=100,p(t)):l=500,r=t,setTimeout(m,l)};return m(),{addFunc:function(t){u(t)},getBreakpoint:function(){return a}}}}(0,this.document)),-1===navigator.platform.toUpperCase().indexOf("MAC")&&!navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini|BlackBerry)/)&&jQuery(window).width()>991&&!jQuery("body").hasClass("no-smooth-scroll")){var ssc_framerate=150,ssc_animtime=500,ssc_stepsize=150,ssc_pulseAlgorithm=!0,ssc_pulseScale=6,ssc_pulseNormalize=1,ssc_keyboardsupport=!0,ssc_arrowscroll=50,ssc_frame=!1,ssc_direction={x:0,y:0},ssc_initdone=!1,ssc_fixedback=!0,ssc_root=document.documentElement,ssc_activeElement,ssc_key={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},ssc_que=[],ssc_pending=!1,ssc_cache={};setInterval(function(){ssc_cache={}},1e4);var ssc_uniqueID=function(){var t=0;return function(e){return e.ssc_uniqueID||(e.ssc_uniqueID=t++)}}(),ischrome=/chrome/.test(navigator.userAgent.toLowerCase());ischrome&&(ssc_addEvent("mousedown",ssc_mousedown),ssc_addEvent("mousewheel",ssc_wheel),ssc_addEvent("load",ssc_init))}!function(t){var e=0;t.fn.scrolled=function(i,n){"function"==typeof i&&(n=i,i=300);var s="scrollTimer"+e++;this.scroll(function(){var e=t(this),a=e.data(s);a&&clearTimeout(a),a=setTimeout(function(){e.removeData(s),n.call(e[0])},i),e.data(s,a)})}}(jQuery),function(t){t.fn.jflickrfeed=function(e,i){var n=(e=t.extend(!0,{flickrbase:"http://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},e)).flickrbase+e.feedapi+"?",s=!0;for(var a in e.qstrings)s||(n+="&"),n+=a+"="+e.qstrings[a],s=!1;return t(this).each(function(){var s=t(this),a=this;t.getJSON(n,function(n){t.each(n.items,function(t,i){if(t(.*?)<\/p>/g,o=i.description;n.test(o)&&(i.description=o.match(n)[2],void 0!=i.description&&(i.description=i.description.replace("","").replace("
","")))}if(i.image_s=i.media.m.replace("_m","_s"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),delete i.media,e.useTemplate){var r=e.itemTemplate;for(var l in i){var c=new RegExp("{{"+l+"}}","g");r=r.replace(c,i[l])}s.append(r)}e.itemCallback.call(a,i)}}),t.isFunction(i)&&i.call(a,n)})})}}(jQuery),function(){var t;t=function(){function t(t,e){var i,n;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},"object"==typeof t)for(i in t)n=t[i],this.options[i]=n;this.context=null!=e?e:this,this.unique=this._genKey()}return t.prototype.hasNext=function(){return"string"==typeof this.context.nextUrl&&this.context.nextUrl.length>0},t.prototype.next=function(){return!!this.hasNext()&&this.run(this.context.nextUrl)},t.prototype.run=function(e){var i,n;if("string"!=typeof this.options.clientId&&"string"!=typeof this.options.accessToken)throw new Error("Missing clientId or accessToken.");if("string"!=typeof this.options.accessToken&&"string"!=typeof this.options.clientId)throw new Error("Missing clientId or accessToken.");return null!=this.options.before&&"function"==typeof this.options.before&&this.options.before.call(this),"undefined"!=typeof document&&null!==document&&(n=document.createElement("script"),n.id="instafeed-fetcher",n.src=e||this._buildUrl(),document.getElementsByTagName("head")[0].appendChild(n),i="instafeedCache"+this.unique,window[i]=new t(this.options,this),window[i].unique=this.unique),!0},t.prototype.parse=function(t){var e,i,n,s,a,o,r,l,c,u,h,d,p,f,m,g,v,y,b,w,x,T,C,_,S,P,k,I;if("object"!=typeof t){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response")}if(200!==t.meta.code){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,t.meta.error_message),!1;throw new Error("Error from Instagram: "+t.meta.error_message)}if(0===t.data.length){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram")}if(null!=this.options.success&&"function"==typeof this.options.success&&this.options.success.call(this,t),this.context.nextUrl="",null!=t.pagination&&(this.context.nextUrl=t.pagination.next_url),"none"!==this.options.sortBy)switch(P="random"===this.options.sortBy?["","random"]:this.options.sortBy.split("-"),S="least"===P[0],P[1]){case"random":t.data.sort(function(){return.5-Math.random()});break;case"recent":t.data=this._sortBy(t.data,"created_time",S);break;case"liked":t.data=this._sortBy(t.data,"likes.count",S);break;case"commented":t.data=this._sortBy(t.data,"comments.count",S);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.")}if("undefined"!=typeof document&&null!==document&&!1===this.options.mock){if(d=t.data,_=parseInt(this.options.limit,10),null!=this.options.limit&&d.length>_&&(d=d.slice(0,_)),o=document.createDocumentFragment(),null!=this.options.filter&&"function"==typeof this.options.filter&&(d=this._filter(d,this.options.filter)),null!=this.options.template&&"string"==typeof this.options.template){for(r="","","",I=document.createElement("div"),l=0,w=d.length;l(f=u.height)&&(m="landscape"),g=0&&!this.options.useHttp&&(h=h.replace(/https?:\/\//,"//")),r+=this._makeTemplate(this.options.template,{model:c,id:c.id,link:c.link,type:c.type,image:h,width:g,height:f,orientation:m,caption:this._getObjectProperty(c,"caption.text"),likes:c.likes.count,comments:c.comments.count,location:this._getObjectProperty(c,"location.name")})}for(I.innerHTML=r,s=[],n=0,i=I.childNodes.length;n=0&&!this.options.useHttp&&(h=h.replace(/https?:\/\//,"//")),p.src=h,!0===this.options.links?(e=document.createElement("a"),e.href=c.link,e.appendChild(p),o.appendChild(e)):o.appendChild(p)}if("string"==typeof(k=this.options.target)&&(k=document.getElementById(k)),null==k)throw a='No element with id="'+this.options.target+'" on page.',new Error(a);k.appendChild(o),document.getElementsByTagName("head")[0].removeChild(document.getElementById("instafeed-fetcher")),v="instafeedCache"+this.unique,window[v]=void 0;try{delete window[v]}catch(t){t}}return null!=this.options.after&&"function"==typeof this.options.after&&this.options.after.call(this),!0},t.prototype._buildUrl=function(){var t,e,i;switch(t="https://api.instagram.com/v1",this.options.get){case"popular":e="media/popular";break;case"tagged":if(!this.options.tagName)throw new Error("No tag name specified. Use the 'tagName' option.");e="tags/"+this.options.tagName+"/media/recent";break;case"location":if(!this.options.locationId)throw new Error("No location specified. Use the 'locationId' option.");e="locations/"+this.options.locationId+"/media/recent";break;case"user":if(!this.options.userId)throw new Error("No user specified. Use the 'userId' option.");e="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.")}return i=t+"/"+e,null!=this.options.accessToken?i+="?access_token="+this.options.accessToken:i+="?client_id="+this.options.clientId,null!=this.options.limit&&(i+="&count="+this.options.limit),i+="&callback=instafeedCache"+this.unique+".parse"},t.prototype._genKey=function(){var t;return""+(t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+t()+t()+t()},t.prototype._makeTemplate=function(t,e){var i,n,s,a,o;for(n=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,i=t;n.test(i);)a=i.match(n)[1],o=null!=(s=this._getObjectProperty(e,a))?s:"",i=i.replace(n,function(){return""+o});return i},t.prototype._getObjectProperty=function(t,e){var i,n;for(n=(e=e.replace(/\[(\w+)\]/g,".$1")).split(".");n.length;){if(i=n.shift(),!(null!=t&&i in t))return null;t=t[i]}return t},t.prototype._sortBy=function(t,e,i){var n;return n=function(t,n){var s,a;return s=this._getObjectProperty(t,e),a=this._getObjectProperty(n,e),i?s>a?1:-1:s-1?n.list=e:n.resource=e:"object"===i&&(n=e),n}},h=function(){var e=t.extend({},t.Deferred());return e.queue=new function(){return this.methods=[],this.response=null,this.flushed=!1,this.add=function(t){this.flushed?t(this.scope):this.methods.push(t)},this.flush=function(t){if(!this.flushed){for(this.scope=t,this.flushed=!0;this.methods[0];)this.methods.shift()(t);return t}},this},e.url="https://api.dribbble.com/v1",e.get=function(){return s?(t.ajax({type:"GET",url:this.url,beforeSend:function(t){t.setRequestHeader("Authorization","Bearer "+s)},success:function(t){this.resolve(t)}.bind(this),error:function(t){this.reject(t)}.bind(this)}),this):(console.error(o.token),!1)},e},d=function(e){return function(i){return t.extend(this,h()),this.queue.add(function(t){t.url+="/"+e+"/"+i}),setTimeout(function(){this.queue.flush(this).get()}.bind(this)),this}},p=function(t){return function(e){return this.queue.add(function(i){i.url+="/"+t+"/"+c(e||{})}),this}};t.jribbble.shots=function(e,i){var n=u([].slice.call(arguments))||{},s=i||{},a=function(e){return function(i,n){var s=u([].slice.call(arguments))||{},a=n||{};return this.queue.add(function(i){if(!i.shotId)throw new Error(o.shotId(e));i.url+="/"+e+"/",s.resource&&(i.url+=s.resource,delete s.resource),i.url+=c(t.extend(s,a))}),this}},r=function(){return t.extend(this,h()),this.url+="/shots/",this.queue.add(function(e){n.resource&&(e.shotId=n.resource,e.url+=n.resource,delete n.resource),e.url+=c(t.extend(n,s))}),setTimeout(function(){this.queue.flush(this).get()}.bind(this)),this};return r.prototype.attachments=a("attachments"),r.prototype.buckets=a("buckets"),r.prototype.likes=a("likes"),r.prototype.projects=a("projects"),r.prototype.rebounds=a("rebounds"),r.prototype.comments=function(e,i){var n=u([].slice.call(arguments))||{},s=i||{};return this.queue.add(function(e){if(!e.shotId)throw new Error(o.shotId("comments"));e.url+="/comments/",n.resource&&(e.commentId=n.resource,e.url+=n.resource+"/",delete n.resource),e.url+=c(t.extend(n,s))}),this.likes=function(t){var e=t||{};return this.queue.add(function(t){if(!t.commentId)throw new Error(o.commentLikes);t.url+="likes/"+c(e)}),this},this},new r},t.jribbble.teams=function(t){var e="teams",i=r(t,e),n=d.call(this,e);return n.prototype=l.call(this,["members","shots"]),new n(i)},t.jribbble.users=function(t){var e="users",i=r(t,e),n=d.call(this,e);return n.prototype=l.call(this,["buckets","followers","following","likes","projects","shots","teams"]),n.prototype.isFollowing=function(t){return this.queue.add(function(e){e.url+="/following/"+t}),this},new n(i)},t.jribbble.buckets=function(t){var e="buckets",i=r(t,e),n=d.call(this,e);return n.prototype=l.call(this,["shots"]),new n(i)},t.jribbble.projects=function(t){var e="projects",i=r(t,e),n=d.call(this,e);return n.prototype=l.call(this,["shots"]),new n(i)},t.jribbble.setToken=function(t){return s=t,this}}(jQuery,window,document);var ytp=ytp||{},getYTPVideoID=function(t){var e,i;return t.indexOf("youtu.be")>0?(e=t.substr(t.lastIndexOf("/")+1,t.length),i=e.indexOf("?list=")>0?e.substr(e.lastIndexOf("="),e.length):null,e=i?e.substr(0,e.lastIndexOf("?")):e):t.indexOf("http")>-1?(e=t.match(/[\\?&]v=([^]*)/)[1],i=t.indexOf("list=")>0?t.match(/[\\?&]list=([^]*)/)[1]:null):(e=t.length>15?null:t,i=e?null:t),{videoID:e,playlistID:i}};!function(jQuery,ytp){jQuery.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"2.9.12",build:"5815",author:"Matteo Bicocchi",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,playlistURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,opacity:1,quality:"default",mute:!1,loop:!0,showControls:!0,showAnnotations:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,gaTrack:!0,optimizeDisplay:!0,onReady:function(t){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},locationProtocol:"https:",buildPlayer:function(options){return this.each(function(){var YTPlayer=this,$YTPlayer=jQuery(YTPlayer);YTPlayer.loop=0,YTPlayer.opt={},YTPlayer.state={},YTPlayer.filtersEnabled=!0,YTPlayer.filters={grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},$YTPlayer.addClass("mb_YTPlayer");var property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");void 0!==property&&void 0!==property.vol&&(property.vol=0===property.vol?property.vol=1:property.vol),jQuery.extend(YTPlayer.opt,jQuery.mbYTPlayer.defaults,options,property),YTPlayer.hasChanged||(YTPlayer.defaultOpt={},jQuery.extend(YTPlayer.defaultOpt,jQuery.mbYTPlayer.defaults,options)),"true"==YTPlayer.opt.loop&&(YTPlayer.opt.loop=9999),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1;var isIframe=function(){var t=!1;try{self.location.href!=top.location.href&&(t=!0)}catch(e){t=!0}return t};YTPlayer.canGoFullScreen=!(jQuery.browser.msie||jQuery.browser.opera||isIframe()),YTPlayer.canGoFullScreen||(YTPlayer.opt.realfullscreen=!1),$YTPlayer.attr("id")||$YTPlayer.attr("id","video_"+(new Date).getTime());var playerID="mbYTP_"+YTPlayer.id;YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0;var videoID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).videoID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).videoID,playlistID=this.opt.videoURL?getYTPVideoID(this.opt.videoURL).playlistID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).playlistID;YTPlayer.videoID=videoID,YTPlayer.playlistID=playlistID,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"0":"3";var playerVars={autoplay:0,modestbranding:1,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:YTPlayer.opt.showAnnotations};document.createElement("video").canPlayType&&jQuery.extend(playerVars,{html5:1}),jQuery.browser.msie&&jQuery.browser.version<9&&(this.opt.opacity=1);var playerBox=jQuery("").attr("id",playerID).addClass("playerBox"),overlay=jQuery("").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay");if(YTPlayer.isSelf="self"==YTPlayer.opt.containment,YTPlayer.defaultOpt.containment=YTPlayer.opt.containment=jQuery("self"==YTPlayer.opt.containment?this:YTPlayer.opt.containment),YTPlayer.isBackground="body"==YTPlayer.opt.containment.get(0).tagName.toLowerCase(),!YTPlayer.isBackground||!ytp.backgroundIsInited){var isPlayer=YTPlayer.opt.containment.is(jQuery(this));if(YTPlayer.canPlayOnMobile=isPlayer&&0===jQuery(this).children().length,isPlayer?YTPlayer.isPlayer=!0:$YTPlayer.hide(),jQuery.browser.mobile&&!YTPlayer.canPlayOnMobile)return void $YTPlayer.remove();var wrapper=jQuery("").addClass("mbYTP_wrapper").attr("id","wrapper_"+playerID);if(wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0}),playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden"}),wrapper.append(playerBox),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}),YTPlayer.isBackground?(jQuery("body").css({boxSizing:"border-box"}),wrapper.css({position:"fixed",top:0,left:0,zIndex:0}),$YTPlayer.hide()):"static"==YTPlayer.opt.containment.css("position")&&YTPlayer.opt.containment.css({position:"relative"}),YTPlayer.opt.containment.prepend(wrapper),YTPlayer.wrapper=wrapper,playerBox.css({opacity:1}),jQuery.browser.mobile||(playerBox.after(overlay),YTPlayer.overlay=overlay),YTPlayer.isBackground||overlay.on("mouseenter",function(){YTPlayer.controlBar&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar&&YTPlayer.controlBar.removeClass("visible")}),ytp.YTAPIReady)setTimeout(function(){jQuery(document).trigger("YTAPIReady")},100);else{jQuery("#YTAPI").remove();var tag=jQuery("