(
	function($) {
		
		/* INVISIBLE IMAGE GALLERY */
		
		$.fn.addButton = function(options) {
				
			var defaults = {
				imageURL: '',
				imageCSS: {
					'display': 'block',
					'position': 'absolute',
					'opacity': .6
				}
			};
			
			var settings = $.extend({}, defaults, options);
			
			var holder;
			
			var positionImage = function() {
				var image = $(this);
				var parent = $(this).parent().parent();
				var offset = parent.offset();
				
				var position = {
					'top': offset.top + (parent.height() / 2) - (image.height() / 2),
					'left': offset.left + (parent.width() / 2) - (image.width() / 2)
				}
				
				$(this).css(settings.imageCSS).css(position);
			}
			
			
			return this.each(
				function() {
					if (settings.imageURL != '') {
						
						$(this).append('<img src="' + settings.imageURL + '" style="display: none" />');
						
						$(this).find('img:last').load(positionImage);
						
						
					}
				}
			);
		};
		
	}
)(jQuery);