--- jquery.old.js	2006-07-01 16:15:52.000000000 +0200
+++ jquery.js	2006-07-01 18:11:59.000000000 +0200
@@ -148,14 +148,14 @@ function jQuery(a,c) {
 		return this.each(function(){
 			this.style.display = this.oldblock ? this.oldblock : "";
 			if ( jQuery.css(this,"display") == "none" )
-				this.style.display = "block";
+				this.style.display = jQuery.getDisplay(this);
 		});
 	},
 	hide: function() {
 		return this.each(function(){
 			this.oldblock = jQuery.css(this,"display");
 			if ( this.oldblock == "none" )
-				this.oldblock = "block";
+				this.oldblock = jQuery.getDisplay(this);
 			this.style.display = "none";
 		});
 	},
@@ -463,6 +463,10 @@ function jQuery(a,c) {
 	return r;
 };
 
+jQuery.getDisplay = function(el) {
+  return (jQuery.browser != "msie" && { TABLE: 'table', TD: 'table-cell' }[el.nodeName]) || 'block';
+}
+
 jQuery.g = {
 	"": "m[2]== '*'||a.nodeName.toUpperCase()==m[2].toUpperCase()",
 	"#": "a.getAttribute('id')&&a.getAttribute('id')==m[2]",
@@ -1244,7 +1248,7 @@ function jQuery(a,c) {
 
 	// Simple 'show' function
 	z.show = function(){
-		y.display = "block";
+		y.display = jQuery.getDisplay(z.el);
 		z.o.auto = true;
 		z.custom(0,z.max());
 	};
