    // jQuery plugin.
    // This plugin accepts one parameter "rebase"
    // When called on a jQuery element, it sets it's display property to absolute
    // if rebase evaluates to true, the element is removed from it's container
    // and appended to the body element
    jQuery.fn.makeAbsolute = function(rebase) {
	return this.each(function() {
            var el = jQuery(this);
            var pos = el.position();
            el.css({ position: "absolute",
		     marginLeft: 0, marginTop: 0,
	             top: pos.top, left: pos.left });
            if (rebase)
		el.remove().appendTo("body");
	});
    }

