/**
 * jQuery.share - social media sharing plugin
 * ---
 * @author Carol Skelly (http://in1.com)
 * @version 1.0
 * @license MIT license (http://opensource.org/licenses/mit-license.php)
 * ---
 */
(function(n,t){var i=t.document;n.fn.share=function(r){var f=f||[],u={init:function(r){this.share.settings=n.extend({},this.share.defaults,r);var y=this.share.settings,s=this.share.settings.networks,o=this.share.settings.theme,c=this.share.settings.orientation,u=this.share.settings.affix,l=this.share.settings.margin,a=this.share.settings.title||n(i).attr("title"),v=this.share.settings.urlToShare||n(location).attr("href"),h="";return n.each(n(i).find('meta[name="description"]'),function(t,i){h=n(i).attr("content")}),this.each(function(){for(var r,i=n(this),p=i.attr("id"),k=encodeURIComponent(v),b=encodeURIComponent(a),d=h.substring(0,250),y,w=0;w<s.length;w++)r=s[w],y=e.networkDefs[r].url,y=y.replace("|u|",k).replace("|t|",b).replace("|d|",d).replace("|140|",b.substring(0,130)),n("<a href='"+y+"' title='"+sprintf("Share this page on %s",r=="twitter"?"X (formerly twitter)":r)+"' class='pop share-"+o+" share-"+o+"-"+r+"'><\/a>").appendTo(i);n("#"+p+".share-"+o).css("margin",l);c!="horizontal"?n("#"+p+" a.share-"+o).css("display","block"):n("#"+p+" a.share-"+o).css("display","inline-block");typeof u!="undefined"&&(i.addClass("share-affix"),u.indexOf("right")!=-1?(i.css("left","auto"),i.css("right","0px"),u.indexOf("center")!=-1&&i.css("top","40%")):u.indexOf("left center")!=-1&&i.css("top","40%"),u.indexOf("bottom")!=-1&&(i.css("bottom","0px"),i.css("top","auto"),u.indexOf("center")!=-1&&i.css("left","40%")));n(".pop").click(function(){return f.push(["_trackEvent","Social","Share",n(this).attr("title")]),t.open(n(this).attr("href"),"t","toolbar=0,resizable=1,status=0,width=640,height=528"),!1})})}},e={networkDefs:{facebook:{url:"http://www.facebook.com/share.php?u=|u|&title=|t|"},twitter:{url:"https://twitter.com/share?url=|u|&text=|140|"},linkedin:{url:"http://www.linkedin.com/shareArticle?mini=true&url=|u|&title=|t|&summary=|d|&source=in1.com"},in1:{url:"http://www.in1.com/cast?u=|u|",w:"490",h:"529"},tumblr:{url:"http://www.tumblr.com/share?v=3&u=|u|"},digg:{url:"http://digg.com/submit?url=|u|&title=|t|"},googleplus:{url:"https://plusone.google.com/_/+1/confirm?hl=en&url=|u|"},reddit:{url:"http://reddit.com/submit?url=|u|"},pinterest:{url:"http://pinterest.com/pin/create/button/?url=|u|&media=&description=|d|"},posterous:{url:"http://posterous.com/share?linkto=|u|&title=|t|"},stumbleupon:{url:"http://www.stumbleupon.com/submit?url=|u|&title=|t|"},email:{url:"mailto:?subject=|t|&body=|u|"}}};if(u[r])return u[r].apply(this,Array.prototype.slice.call(arguments,1));if(typeof r!="object"&&r)n.error('Method "'+r+'" does not exist in social plugin');else return u.init.apply(this,arguments)};n.fn.share.defaults={networks:["facebook","twitter","linkedin"],theme:"icon",autoShow:!0,margin:"3px",orientation:"horizontal",useIn1:!1};n.fn.share.settings={}})(jQuery,window)