/*
Author: David Walsh,
Plugin URL: http://davidwalsh.name/image-protector-plugin-for-jquery
*/
jQuery.fn.protectImage = function(settings) {
	settings = jQuery.extend({
		image: 'http://martingros.com/mg/wp-content/themes/martingros/images/spaceball.gif',
		zIndex: 10
	}, settings);
	return this.each(function() {
		var position = $(this).position();
		var height = $(this).height();
		var width = $(this).width();
		$('<img />').attr({
			width: width,
			height: height,
			src: settings.image
			
		}).css({
			top: position.top,
			left: position.left,
			position: 'absolute',
			zIndex: '0'
		}).appendTo('body')
	});
};
