// JavaScript Document
(function($) {
	$.fn.extend({     
		rounded: function(options) {
			var defaults = {
                width: 220,
                height: 150,
				hover : null
            };
			options =  $.extend(defaults, options);
			return this.each(function() {  
				var obj = $(this);
				var $original_image = $(this).children('img');
				var width = options.width;
				var height = options.height;
				$original_image.css('display','none');
				var background_image = $original_image.attr('src');
				var $new_image = $(this).append('<div class="rounded_image" style="background-image:url('+background_image+'); width:'+ width +'px; height:'+ height+'px;"></div>');
			});  
		}  
	}); 
})(jQuery); 
