(function(){var e=function(e){var t=this,n=function(){e.bookmarklet=function(t,n,r,i){var s=this[n].call(e(t),r);s.attachEvent&&!e.browser.opera?s.attachEvent("onreadystatechange",i):s.addEventListener("load",i,!1)},e.fn.bookmarklet=function(t,n,r){var i=this,t=t,n=n,r=r;e(document).ready(function(){e.bookmarklet[t].call(i,n,r)})},e.bookmarklet.tweetMeme=function(t){var n=this[0],r=n.parentNode,i=document.createElement("iframe");t.url=t.url.replace(/\+/g,"%2b");switch(t.style){case"compact":var s=20,o=90;break;default:var s=61,o=50}var u="http://api.tweetmeme.com/button.js?"+e.param(t);if(document&&document.referrer){var a=document.referrer;a&&(u+="&o="+escape(a))}return r.insertBefore(i,n),r.removeChild(n),e(i).attr({src:u,width:o,height:s,frameborder:0,scrolling:"no"}),i},e.bookmarklet.linkedIn=function(t){var n=this[0],r=n.parentNode,i=document.createElement("script"),s=document.createElement("script");return e(i).attr({type:"in/share","data-url":t.url,"data-counter":t.counter}),r.insertBefore(i,n),r.insertBefore(s,n),r.removeChild(n),e(s).attr({type:"text/javascript",src:"https://platform.linkedin.com/in.js"}),s},e.bookmarklet.digg=function(t){var n=this[0],r=n.parentNode,i=document.createElement("a"),s=document.createElement("script");return e(i).addClass("DiggThisButton").addClass(t.classname).attr({href:"https://digg.com/submit?url="+t.url+"&title="+t.title}),r.insertBefore(i,n),r.insertBefore(s,n),r.removeChild(n),e(s).attr({type:"text/javascript",async:"true",src:"http://widgets.digg.com/buttons.js"}),s},e.bookmarklet.stumbleUpon=function(t){var n=this[0],r=n.parentNode,i=document.createElement("su:badge"),s=document.createElement("script");return e(i).attr({layout:t.layout,location:t.url}),r.insertBefore(i,n),r.insertBefore(s,n),r.removeChild(n),e(s).attr({type:"text/javascript",src:"https://platform.stumbleupon.com/1/widgets.js"}),s},e.bookmarklet.twitter=function(t){var n=this[0],r=n.parentNode,i=document.createElement("a"),s=document.createElement("script");return e(i).attr({"class":"twitter-share-button",href:"https://twitter.com/share","data-url":t.url,"data-counturl":t.url,"data-count":t.count,"data-via":t.via}).html("Tweet"),r.insertBefore(i,n),r.insertBefore(s,n),r.removeChild(n),e(s).attr({type:"text/javascript",src:"https://platform.twitter.com/widgets.js"}),s};var t,n;e.bookmarklet.googlePlusOne=function(r){var i=this[0],s=i.parentNode,o=document.createElement("g:plusone");return e(o).attr({size:r.size,href:r.href}),s.insertBefore(o,i),s.removeChild(i),t?gapi&&gapi.plusone&&gapi.plusone.go(s):(clearTimeout(n),n=setTimeout(function(){var e=document.getElementsByTagName("head")[0],n=document.createElement("script");e.appendChild(n),n.type="text/javascript",n.src="//apis.google.com/js/plusone.js",t=!0},1e3)),i};var r,i,s,o=function(){clearTimeout(s),s=setTimeout(function(){try{FB.XFBML.parse()}catch(e){}},1e3)};e.bookmarklet.facebookLike=function(t){var n=this[0],r=n.parentNode,s=document.createElement("fb:like");e(s).attr({"class":"fb-like","data-href":t.url,"data-send":t.send,"data-layout":t.layout,"data-action":t.verb,"data-locale":t.locale,"data-colorscheme":t.theme,"data-show-faces":t.faces,"data-width":t.width}).css({height:t.height,width:t.width}),r.insertBefore(s,n),r.removeChild(n);if(!window.FB){document.getElementById("fb-root")||e("<div id='fb-root'></div>").prependTo("body");var u=document.getElementById("facebook-jssdk");if(!u){var a=document.getElementsByTagName("head")[0],f=document.createElement("script");a.appendChild(f),f.id="facebook-jssdk",f.src="//connect.facebook.net/"+t.locale+"/all.js#xfbml=1"}else if(!i){if(!/xfbml/.test(u.src)){var l=window.fbAsyncInit;window.fbAsyncInit=function(){e.isFunction(l)&&l(),o()}}i=!0}}else o();return n},e.bookmarklet.pinterest=function(t){var n=this[0],r=n.parentNode,i=document.createElement("a"),s=document.createElement("script");return e(i).attr({"class":"pin-it-button",href:"http://pinterest.com/pin/create/button/?url="+t.url+"&media="+t.media+"&description="+t.description,"count-layout":t.style}).html("Pin It"),r.insertBefore(i,n),r.insertBefore(s,n),r.removeChild(n),e(s).attr({type:"text/javascript",src:"https://assets.pinterest.com/js/pinit.js"}),s}};n(),t.resolveWith(n)};dispatch("bookmarklet").containing(e).to("Foundry/2.1 Modules")})();