$(document).ready(function() {

	$(".post p>img").parent().addClass("imageParagraph");
	$(".post a img").parent().addClass("imageLink").parent().addClass("imageLinkParagraph");
	
});