jQuery(document).ready(function(){jQuery(".shr-bookmarks a.external").attr("target","_blank");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")}}});

$(document).ready(function(){

  $("#article-author .photo, .attachment-post-thumbnail-small").wrap(function() {
    $(this).wrap(function(){
      return '<span class="' + $(this).attr("class") + '" style="background:url(' + $(this).attr('src') + ') no-repeat center center !important;" />';
    });
    $(this).css("opacity","0");
  });

});

$(document).ready(function(){  
Cufon.replace('h1, h2, #reply-title, blockquote', {textShadow: '2px 2px #fff', hover : true, ignore:{cite: true} });
Cufon.replace('#nav ul li a', {textShadow: '0px 0px #fefcf6, 1px 1px #4C6500', hover : true});
$("a[rel^='lightbox']").colorbox();

$(".gallery a").hover(function(){
$(this).stop().animate({opacity: 0.7}, 'slow');},
function() {
$(this).stop().animate({opacity: 1}, 'slow');});

});


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17906762-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

