$(document).ready(function () {
//First, get text inside span class text_to_quote
	var text = $("span.text_to_quote").text();

//Get credits
	var credit_h = $("span.quote_credit_h").text();
	var credit_sh = $("span.quote_credit_sh").text();
	
//Import quotation marks
	var openmark = '<img class="openmark" src="../img/quotes/quote_left_28x24.png" alt="Speech Mark" />';
	var closemark = '<img class="closemark" src="../img/quotes/quote_right_28x24.png" alt="Speech Mark" />';
	
//Then create new variable containing the elements above
	var thequote = '<blockquote class="quotation">' + openmark + text + closemark + '<p class="credit">' + '<span class="quote_credit_h">' + credit_h + '</span>' + '<br />' + '<span class="quote_credit_sh">' + credit_sh + '</span>' + '</p>' + '</blockquote>';

// Switching content (add the var 'thequote' to the new div and replace the old div with nothing)
$("p#new_quote").html(thequote);
$("p#old_quote").replaceWith();

//Remember: the original text is hidden on the CSS
//Voila!
});

