// shows/hides div blocks that are immediate siblings of class .readMoreExpand

$(document).ready(function()
{	
	$(".readMoreExpand").css("display", "inline");
	$(".readMoreExpand").css("cursor", "pointer");
	$(".readMoreExpand").closest("p").nextAll().hide();

	$(".readMoreExpand").click(function()
	{
		$(this).parent().closest("p").nextAll().slideDown("slow");
		$(this).remove();
	});
});


$(document).ready(function(){
	//hide the all of the element with class msg_body
	$(".msg_body").hide();
	//toggle the componenet with class msg_body
	$(".read_more").click(function(){
		//$(".read_more").hide();

		//$(".span_msg").hide();
		//document.getElementById('dis_read_more').style.display="none";
		$(this).prev(".ptesting").css("display", "none");
		$(this).next(".msg_body").slideToggle(250);		
		$(this).remove();
		
		
	});
});

