$(function(){
	
	$("<div>").attr("class", "frame-tm").appendTo(".column-image, .brick-image");
	$("<div>").attr("class", "frame-bm").appendTo(".column-image, .brick-image");
	
	$("<div>").attr("class", "frame-mr").appendTo(".column-image, .brick-image");
	$("<div>").attr("class", "frame-ml").appendTo(".column-image, .brick-image");
	
	$("<div>").attr("class", "frame-tl").appendTo(".column-image, .brick-image");
	$("<div>").attr("class", "frame-tr").appendTo(".column-image, .brick-image");
	
	$("<div>").attr("class", "frame-bl").appendTo(".column-image, .brick-image");
	$("<div>").attr("class", "frame-br").appendTo(".column-image, .brick-image");
	
	/*$(".column-image img, .brick-image img").load(function () {
		$(this).parent().height($(this).height() + 60);
		$(this).parent().width($(this).width() + 60);
    });*/
	
	$(".column-image img, .brick-image img").each(function(){
			$(this).bind("load readystatechange", function () {
			$(this).parent().height($(this).height() + 60);
			$(this).parent().width($(this).width() + 60);
		});
		this.src = this.src;
	});

});