(function($j){
	$j.fn.extend({
		setWindowed: function(){
			if($j.browser.msie && $j.browser.version == "6.0"){
				this.each(function(){
					if(this._topElementFrame){
						this._topElementFrame.show();
					}
					else {
						this._topElementFrame = $j('<iframe src="javascript:\'<html></html>\';" scrolling="no" frameborder="0"></iframe>').hide().insertAfter(this);
						$j(this).reposWindowed();
						this._topElementFrame.show();
					}
				});
			}
			return this;
		},
		unsetWindowed: function(){
			if($j.browser.msie && $j.browser.version == "6.0"){
				this.each(function(){
					this._topElementFrame.hide();
				});
			}
			return this;
		},
		reposWindowed: function(){
			if($j.browser.msie && $j.browser.version == "6.0"){
				this.each(function(){
					if(this._topElementFrame){
						var cur_elmt = $j(this);
						this._topElementFrame.css({
							position: cur_elmt.css("position"),
							zIndex: "0",
							top: cur_elmt.css("top"),
							right: cur_elmt.css("right"),
							bottom: cur_elmt.css("bottom"),
							left: cur_elmt.css("left"),
							width: cur_elmt.width(),
							height: cur_elmt.height(),
							border: "0"
						});
					}
				});
			}
			return this;
		}
	});
})(jQuery);