$(document).ready(function(){

	$('.showHideMore').each(function(){
		myTitle = $(this).attr("title");
		if (myTitle == "") { myTitle = "More..."; } // default 
		$(this).before('<button class=\"showHideButton\">' + myTitle + '</button>');
	});

	$('.showHideMore').hide(); 

	$('.showHideButton').click(function(){

		$('.showHideMore').hide(); // hide any that might be open
		$('.showHideButton').show();

		$(this).hide();
		$(this).next('.showHideMore').show();
	    });
	
	$('.showHideMore').click(function(){
		$(this).hide();
		$(this).prev('.showHideButton').show();
	    });

	
    });

