(function($){	
	$.fn.trustQuotes=function(o){
		return this.each(function(){
			new $ws(this,o);
		});
	};
	
	$.ws.trustQuotes=function(e,o){
		this.o=$.extend({e:e},o||{});
		this.init();
	};
	
	var $ws=$.ws.trustQuotes;
	$ws.fn=$ws.prototype={trustQuotes:'0.0.1'};
	$ws.fn.extend=$.extend;
	
	$ws.fn.extend({
		init : function(){
			var o=this.o;
			if (!$(o.e)) return false;
			
			var e = $(o.e),
					text = e.text(); 
			
			e.empty();
			e.append("<span class='quote-text'></span>");
			e.children(".quote-text").text(text);

			e.prepend("<span class='open-quote'><span>&#8220;</span></span>");
			e.children("span.quote-text").append("<span class='close-quote'><span>&#8221;</span></span>");

			return true;
		}
	});
})(jQuery);	