jQuery.fn.floatBottom = function() {
  return this.each(function() {
  	// Get float direction
  	var floatDirection = $(this).css("float");
  	// Check for supported float direction
  	if(floatDirection == "none") return false;
  	// Get container
  	var containerElem = $(this).parent().get(0);
    // Create spacer elem
		var spacerElem = $("<div></div>")
			.addClass("float-bottom-" + floatDirection + "-container")
			.css({
				float: floatDirection,
				height: "1px",
				//marginLeft: (floatDirection == "left")? "-1px":"0",
				width: "1px"
			})
			.prependTo(containerElem);
		// Calculate height of spacer
		var spacerHeight = $(containerElem).height() -  ( $(this).height() * 2);
		// Apply new height to spacer
		spacerElem.height(spacerHeight);
		// Add clears
		$(this).css("clear", "both");
  });
};
