
jQuery.fn.floatdiv = function (location) {
	var isIE6 = false;
	if ($.browser.msie && $.browser.version == "6.0") {
		$("body").css("overflow-x", "auto").css("overflow-y", "auto");
		isIE6 = true;
	}
	$("body").css({margin:"0px", padding:"0 10px 0 10px", border:"0px", height:"100%", overflow:"auto"});
	return this.each(function () {
		var loc;
		if (location == undefined || location.constructor == String) {
			loc = {right:"0px", bottom:"0px"};
		} else {
			loc = location;
		}
		$(this).css("z-index", "9999").css(loc).css("position", "fixed");
		if (isIE6) {
			if (loc.right != undefined) {
				$(this).css("right", "18px");
			}
			$(this).css("position", "absolute");
		}
	});
};

