jQuery(document).ready(function()
{
	jQuery(".parentcomment").each(function()
	{
		if (jQuery(this).find(".subcomment").length > 0)
		{
			jQuery(this).addClass("showparentcommentbg");
			jQuery(this).find(".subcomment").not(":last").each(function()
			{
				jQuery(this).addClass("showmiddlesubcommentbg");
			});
			
			jQuery(this).find(".subcomment:last").addClass("showlastsubcommentbg");
		}
	});
});