# Patch for Ticket #: 1021 http://trac.buddypress.org/ticket/1021
# - Added an IE6 conditional around the Suckerfish classes
# - Checks if browser supports the CSS max-height attribute; IE6 is the only modern browser that doesn't support max-height
# - Thickbox also uses this technique to check IE6
# - Replaced mouseover() and mouseout() with jQuery.hover()
# - v1.01 (deleted stupid new line at end of patch)
# r-a-y
--- buddypress/bp-core/js/admin-bar.js
+++ buddypress/bp-core/js/admin-bar.js
@@ -1,9 +1,9 @@
 jQuery(document).ready( function() {
-	jQuery("#wp-admin-bar ul.main-nav li").mouseover( function() {
-		jQuery(this).addClass('sfhover');
-	});
-	
-	jQuery("#wp-admin-bar ul.main-nav li").mouseout( function() {
-		jQuery(this).removeClass('sfhover');
-	});
+	if(typeof document.body.style.maxHeight === "undefined") {
+		jQuery("ul.main-nav li").hover( function() {
+			jQuery(this).addClass('sfhover');
+		},function() {
+			jQuery(this).removeClass('sfhover');
+		});
+	}
 });