	$(document).ready(function(){
		var top = 0;
		$('.gallery_img').each(function(){
			var currentTop = $(this).offset().top;
			if (top == 0) top = currentTop;
			if (top != currentTop) {
				$(this).before('<div class="clear"></div>');
				top = $(this).offset().top;
			}
		});
	});

