// When the page is ready...
$(document).ready(
   function()
   {
 
	   	// Easy Pullquotes by Mike Jolley
                // Go through each span element with a classname of "pullquote"
		$('.pullquote').each(function() {
                        // Get the text of the span
			text = $(this).text();
                        // Get rid of unwanted charactors
			text=text.replace( /\((.*)\)/gi, " " );
                        // Check if this is to be a right or left pull quote and output it
			if ($(this).is(".left")) 
				$(this).parent().before('<blockquote class="pullquote left"><p>'+ text +'</p></blockquote>');
			else
				$(this).parent().before('<blockquote class="pullquote""><p>'+ text +'</p></blockquote>');
		});
                // End pull quote code
   }
);