(function($) {
	$.fn.rcorner = function() {
		return this.each(function(i) {
			var $this = $(this);
			var style = $this.attr('style');
			$this.wrap('<div class="rcorner-wrapper" />').parent().attr('style', style);
			$this.removeAttr('style');
			$this.parent().append('<div class="rcorner-top-left"></div><div class="rcorner-top-right"></div><div class="rcorner-bottom-left"></div><div class="rcorner-bottom-right"></div>');
		});
	};
})(jQuery);

$(document).ready(function() {
	$('.rcorner').rcorner();							
});


