jQuery(document).ready(function(){jQuery(".shr-bookmarks a.external").attr("target","_blank");var c=jQuery(".sexy-bookmarks").height();var d=jQuery(".sexy-bookmarks ul.socials").height();if(d>c){jQuery(".shr-bookmarks-expand").hover(function(){jQuery(this).animate({height:d+"px"},{duration:400,queue:false})},function(){jQuery(this).animate({height:c+"px"},{duration:400,queue:false})})}if(jQuery(".shr-bookmarks-center")||jQuery(".shr-bookmarks-spaced")){var e=jQuery(".shr-bookmarks").width();var h=jQuery(".shr-bookmarks:first ul.socials li").width();var a=jQuery(".shr-bookmarks:first ul.socials li").length;var g=Math.floor(e/h);var b=Math.min(g,a)*h;if(jQuery(".shr-bookmarks-spaced").length>0){var f=Math.floor((e-b)/(Math.min(g,a)+1));jQuery(".shr-bookmarks ul.socials li").css("margin-left",f+"px")}else{if(jQuery(".shr-bookmarks-center".length>0)){var f=(e-b)/2;jQuery(".shr-bookmarks-center").css("margin-left",f+"px")}}}jQuery(".shr-bookmarks a.external").click(function(){var i=$(this).attr("ref");var j=$(this).attr("alt");if(jQuery("p.shr-bookmarks-content").length){desc=encodeURIComponent(jQuery("p.shr-bookmarks-content").text())}switch(this.parentNode.className){case"shr-twittley":this.href+="?title="+j+"&url="+i+"&desc="+desc+"&pcat=Internet&tags=";break;case"shr-digg":this.href+="?phase=2&title="+j+"&url="+i+"&desc="+desc;break;case"shr-twitter":this.href+="?status=RT+@your_twitter_id:+"+j+"+-+"+i;break;case"shr-scriptstyle":this.href+="?title="+j+"&url="+i;break;case"shr-reddit":this.href+="?title="+j+"&url="+i;break;case"shr-delicious":this.href+="?title="+j+"&url="+i;break;case"shr-stumbleupon":this.href+="?title="+j+"&url="+i;break;case"shr-mixx":this.href+="?title="+j+"&page_url="+i+"&desc="+desc;break;case"shr-technorati":this.href+="?add="+i;break;case"shr-blinklist":this.href+="?Action=Blink/addblink.php&Title="+j+"&Url="+i;break;case"shr-diigo":this.href+="?title="+j+"&url="+i+"&desc="+desc;break;case"shr-yahoobuzz":this.href+="?submitHeadline="+j+"&submitUrl="+i+"&submitSummary="+desc+"&submitCategory=science&submitAssetType=text";break;case"shr-myspace":this.href+="?t="+j+"&u="+i;break;case"shr-facebook":this.href+="?t="+j+"&u="+i;break;case"shr-designfloat":this.href+="?title="+j+"&url="+i;break;case"shr-devmarks":this.href+="?posttitle="+j+"&posturl="+i+"&posttext="+desc;break;case"shr-newsvine":this.href+="?h="+j+"&u="+i;break;case"shr-google":this.href+="?op=add&title="+j+"&bkmk="+i;break}})});