function addClickHandlers() {
	$("a.external").mousedown(function(e) {
		// fire and forget since user is navigating away from site
		$.post("/ajax/click", { url: e.target.href }, function(data){});
	});
	
	$("a.like").click(function(e) {
		e.preventDefault();
		var likedLink = $(this)
		// send request
		$.post("/post/like", { post: e.target.id }, function(data) {
			var count = parseInt(data);
			if (!isNaN(count)) {
				likedLink.parent(".like-container").html("<span class='liked'>Liked</span> (" + data + ")");
			}
		});
	});
}
