jQuery(document).ready(function (){jQuery(".shr-bookmarks a.external").attr("target","_blank");jQuery(".shr-bookmarks a.external").attr("onclick","return AddThis(this);");var c = jQuery(".shr-bookmarks").height(),d = jQuery(".shr-bookmarks ul.socials").height();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 a = jQuery(".shr-bookmarks").width(),b = jQuery(".shr-bookmarks:first ul.socials li").width(),e = jQuery(".shr-bookmarks:first ul.socials li").length,f = Math.floor(a / b);b = Math.min(f,e) * b;if (jQuery(".shr-bookmarks-spaced").length > 0){ a = Math.floor((a - b) / (Math.min(f,e) + 1));jQuery(".shr-bookmarks ul.socials li").css("margin-left",a + "px") } else if (jQuery(true)){ a = (a - b) / 2;jQuery(".shr-bookmarks-center").css("margin-left",a + "px") } } });function AddThis(obj){var url = encodeURIComponent(window.location.href),desc = '';if (jQuery('p.shr-bookmarks-content').length){desc = encodeURIComponent(jQuery('p.shr-bookmarks-content').text())} switch (obj.parentNode.className){case 'shr-twittley':obj.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc + '&pcat=Internet&tags=';break;case 'shr-digg':obj.href += '?phase=2&title=' + document.title + '&url=' + url + '&desc=' + desc;break;case 'shr-twitter':obj.href += '?status=RT+@your_twitter_id:+' + document.title + '+-+' + url;break;case 'shr-scriptstyle':obj.href += '?title=' + document.title + '&url=' + url;break;case 'shr-reddit':obj.href += '?title=' + document.title + '&url=' + url;break;case 'shr-delicious':obj.href += '?title=' + document.title + '&url=' + url;break;case 'shr-stumbleupon':obj.href += '?title=' + document.title + '&url=' + url;break;case 'shr-mixx':obj.href += '?title=' + document.title + '&page_url=' + url + '&desc=' + desc;break;case 'shr-technorati':obj.href += '?add=' + url;break;case 'shr-blinklist':obj.href += '?Action=Blink/addblink.php&Title=' + document.title + '&Url=' + url;break;case 'shr-diigo':obj.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc;break;case 'shr-yahoobuzz':obj.href += '?submitHeadline=' + document.title + '&submitUrl=' + url + '&submitSummary=' + desc + '&submitCategory=science&submitAssetType=text';break;case 'shr-myspace':obj.href += '?t=' + document.title + '&u=' + url;break;case 'shr-facebook':obj.href += '?t=' + document.title + '&u=' + url;break;case 'shr-designfloat':obj.href += '?title=' + document.title + '&url=' + url;break;case 'shr-devmarks':obj.href += '?posttitle=' + document.title + '&posturl=' + url + '&posttext=' + desc;break;case 'shr-newsvine':obj.href += '?h=' + document.title + '&u=' + url;break;case 'shr-google':obj.href += '?op=add&title=' + document.title + '&bkmk=' + url;break;case 'shr-googlebookmarks':obj.href += 'post?mark?op=edit&bkmk=' + url + '&title=' + document.title;break;case 'shr-googlebuzz':obj.href += 'post?url=' + url;break;case 'shr-linkedin':obj.href += 'shareArticle?url=' + url + '&title=' + document.title} window.open(obj.href);return false}