$(document).ready(function(){$(".share").hover(function(){$(".shareLinks").show();},function(){$(".shareLinks").hide();});$(".voteUp, .voteDown").click(function(){$.ajax({url:"/utils/social.vote.php",type:"post",data:{'url':location.href,'class':jQuery(this).attr('class'),'articleId':(document.location+'').split('/')[4]},success:function(data,textStatus){$(".voteLinks .voteScore").text(data.score);$(".voteLinks .voteCount").text(data.votes);var pos=jQuery('#add_comment').position();jQuery(window).scrollTop(pos.top);},error:function(a,b,c){},dataType:'json'});}).hover(function(){$(this).css("cursor","pointer");},function(){$(this).css("cursor","arrow");});jQuery('.socialize .comments').click(function(){var pos=jQuery('#add_comment').position();jQuery(window).scrollTop(pos.top);})});
