	jQuery(function( $ ){
// When the page is ready...
$(document).ready(
   function()
   {
 
	   	// Easy Pullquotes by Mike Jolley
                // Go through each span element with a classname of "pullquote"
		$('span.pullquote').each(function() {
                        // Get the text of the span

			if ($(this).attr("title")=="")
				{
				text = $(this).text();
				}
			else
				{
				text=$(this).attr("title");
				}
                        // 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(".right")) 
				$(this).parent().before('<blockquote class="pulledquote right"><p><span class="bquote"></span>'+ text +'&#8221;</p></blockquote>');
			else
				$(this).parent().before('<blockquote class="pulledquote"><p><span class="bquote"></span>&#8220;'+ text +'&#8221;</p></blockquote>');
		});
                // End pull quote code
   }
);

});
	
	
	