;(function($) {
	/*$.fn.popImage = function(options) {
		var config = { };
 
        if (options) $.extend(config, options);
        
        if (!config['sourceURL']) return;
        this.each(function() {
        	var context = $(this);
        	var img = $('<img alt="" src="' + config['sourceURL'] + '" />')
        				.one("load", function() {
        					$(this).attr({height: this.height, width: this.width});
        					context.append($(this));
        				}).each(function(){
        					if(this.complete || (jQuery.browser.msie && parseInt(jQuery.browser.version) == 6))
        						$(this).trigger("load");
        				});
        });
        return this;
	};*/
	
    $(document).ready(function() {
    	$("a.pop-image,a>.pop-image").popup({target: '#container'});
		$("a.pop-image img, a>.pop-image img, img.pop-image").buttonOverlay({text: 'Enlarge', type: 'button-overlay-photo'});
    });
})(jQuery);
