Index: wp-admin\jscommon.dev.js
--- wp-admin\jscommon.dev.js Base (BASE)
+++ wp-admin\jscommon.dev.js Locally Modified (Based On LOCAL)
@@ -2,21 +2,23 @@
 (function($){
 // sidebar admin menu
 adminMenu = {
+	$wpHasSubmenu : $('#adminmenu').find( 'li.wp-has-submenu' ),
 	init : function() {
-		var menu = $('#adminmenu');
+		var menu = $('#adminmenu'),
+			body = $('body');
 
-		$('.wp-menu-toggle', menu).each( function() {
-			var t = $(this), sub = t.siblings('.wp-submenu');
+		menu.find( '.wp-menu-toggle' ).each( function() {
+			var $this = $(this), sub = $this.siblings( '.wp-submenu' );
 			if ( sub.length )
-				t.click(function(){ adminMenu.toggle( sub ); });
+				$this.click(function(){ adminMenu.toggle( sub ); });
 			else
-				t.hide();
+				$this.hide();
 		});
 
 		this.favorites();
 
-		$('.separator', menu).click(function(){
-			if ( $('body').hasClass('folded') ) {
+		menu.find('.separator').click(function(){
+			if ( body.hasClass( 'folded' ) ) {
 				adminMenu.fold(1);
 				deleteUserSetting( 'mfold' );
 			} else {
@@ -26,33 +28,33 @@
 			return false;
 		});
 
-		if ( $('body').hasClass('folded') )
+		if ( body.hasClass('folded') )
 			this.fold();
 
 		this.restoreMenuState();
 	},
 
 	restoreMenuState : function() {
-		$('li.wp-has-submenu', '#adminmenu').each(function(i, e) {
-			var v = getUserSetting( 'm'+i );
-			if ( $(e).hasClass('wp-has-current-submenu') )
+		this.$wpHasSubmenu.each(function(index, element) {
+			var value = getUserSetting( 'm' + index );
+			if ( $(element).hasClass('wp-has-current-submenu') )
 				return true; // leave the current parent open
 
-			if ( 'o' == v )
-				$(e).addClass('wp-menu-open');
-			else if ( 'c' == v )
-				$(e).removeClass('wp-menu-open');
+			if ( 'o' == value )
+				$(element).addClass('wp-menu-open');
+			else if ( 'c' == value )
+				$(element).removeClass('wp-menu-open');
 		});
 	},
 
-	toggle : function(el) {			
-		el.slideToggle(150, function() {
-			var id = el.parent().toggleClass( 'wp-menu-open' ).attr('id');			
+	toggle : function(element) {			
+		element.slideToggle(150, function() {
+			var id = element.parent().toggleClass( 'wp-menu-open' ).attr('id');			
 			if ( id ) {
-				$('li.wp-has-submenu', '#adminmenu').each(function(i, e) {
-					if ( id == e.id ) {
-						var v = $(e).hasClass('wp-menu-open') ? 'o' : 'c';						
-						setUserSetting( 'm'+i, v );
+				this.$wpHasSubmenu.each(function(index, element) {
+					if ( id == element.id ) {
+						var value = $(element).hasClass('wp-menu-open') ? 'o' : 'c';						
+						setUserSetting( 'm' + index, value );
 					}
 				});
 			}
@@ -64,28 +66,30 @@
 	fold : function(off) {
 		if (off) {
 			$('body').removeClass('folded');
-			$('#adminmenu li.wp-has-submenu').unbind();
+			this.$wpHasSubmenu.unbind();
 		} else {
 			$('body').addClass('folded');
-			$('#adminmenu li.wp-has-submenu').hoverIntent({
-				over: function(e){
-					var m, b, h, o, f;
-					m = $(this).find('.wp-submenu');
-					b = $(this).offset().top + m.height() + 1; // Bottom offset of the menu
-					h = $('#wpwrap').height(); // Height of the entire page
-					o = 60 + b - h;
-					f = $(window).height() + $(window).scrollTop() - 15; // The fold
-					if ( f < (b - o) ) {
-						o = b - f;
+			this.$wpHasSubmenu.hoverIntent({
+				over: function(){
+					var menu, bottom, height, offset, fold;
+					menu   = $(this).find('.wp-submenu');
+					bottom = $(this).offset().top + menu.height() + 1; // Bottom offset of the menu
+					height = $('#wpwrap').height(); // Height of the entire page
+					offset = 60 + bottom - height;
+					fold = $(window).height() + $(window).scrollTop() - 15; // The fold
+					if ( fold < (bottom - offset) ) {
+						offset = bottom - fold;
 					}
-					if ( o > 1 ) {
-						m.css({'marginTop':'-'+o+'px'});
-					} else if ( m.css('marginTop') ) {
-						m.css({'marginTop':''});
+					if ( offset > 1 ) {
+						menu.css({ 'marginTop': '-' + offset + 'px' });
+					} else if ( menu.css('marginTop') ) {
+						menu.css({'marginTop': ''});
 					}
-					m.addClass('sub-open');
+					menu.addClass('sub-open');
 				},
-				out: function(){ $(this).find('.wp-submenu').removeClass('sub-open').css({'marginTop':''}); },
+				out: function(){
+					$(this).find('.wp-submenu').removeClass('sub-open').css({'marginTop': ''});
+				},
 				timeout: 220,
 				sensitivity: 8,
 				interval: 100
@@ -95,21 +99,24 @@
 	},
 
 	favorites : function() {
-		$('#favorite-inside').width( $('#favorite-actions').width() - 4 );
-		$('#favorite-toggle, #favorite-inside').bind('mouseenter', function() {
-			$('#favorite-inside').removeClass('slideUp').addClass('slideDown');
+      var favoriteFirst = $('#favorite-first'),
+          favoriteInside = $('#favorite-inside');
+          
+		favoriteInside.width( $('#favorite-actions').width() - 4 );
+		$('#favorite-toggle').add(favoriteInside).bind('mouseenter', function() {
+			favoriteInside.removeClass('slideUp').addClass('slideDown');
 			setTimeout(function() {
-				if ( $('#favorite-inside').hasClass('slideDown') ) {
-					$('#favorite-inside').slideDown(100);
-					$('#favorite-first').addClass('slide-down');
+				if ( favoriteInside.hasClass('slideDown') ) {
+					favoriteInside.slideDown(100);
+					favoriteFirst.addClass('slide-down');
 				}
 			}, 200);
 		}).bind('mouseleave', function() {
-			$('#favorite-inside').removeClass('slideDown').addClass('slideUp');
+			favoriteInside.removeClass('slideDown').addClass('slideUp');
 			setTimeout(function() {
-				if ( $('#favorite-inside').hasClass('slideUp') ) {
-					$('#favorite-inside').slideUp(100, function() {
-						$('#favorite-first').removeClass('slide-down');
+				if ( favoriteInside.hasClass('slideUp') ) {
+					favoriteInside.slideUp(100, function() {
+						favoriteFirst.removeClass('slide-down');
 					});
 				}
 			}, 300);
@@ -124,8 +131,8 @@
 	init : function() {
 		var that = this;
 		$('.hide-column-tog', '#adv-settings').click( function() {
-			var $t = $(this), column = $t.val();
-			if ( $t.attr('checked') )
+			var $this = $(this), column = $this.val();
+			if ( $this.attr('checked') )
 				that.checked(column);
 			else
 				that.unchecked(column);
@@ -168,18 +175,28 @@
 	},
 
 	colSpanChange : function(diff) {
-		var $t = $('table').find('.colspanchange'), n;
-		if ( !$t.length )
+		var $table = $('table').find('.colspanchange'), number;
+		if ( !$table.length )
 			return;
-		n = parseInt( $t.attr('colspan'), 10 ) + diff;
-		$t.attr('colspan', n.toString());
+		number = parseInt( $table.attr('colspan'), 10 ) + diff;
+		$table.attr('colspan', number.toString());
 	}
 }
 
 $(document).ready(function(){columns.init();});
 
 validateForm = function( form ) {
-	return !$( form ).find('.form-required').filter( function() { return $('input:visible', this).val() == ''; } ).addClass( 'form-invalid' ).find('input:visible').change( function() { $(this).closest('.form-invalid').removeClass( 'form-invalid' ); } ).size();
+	return !$( form )
+			.find('.form-required')
+			.filter( function() {
+				return $(this).find( 'input:visible' ).val() == '';
+			} )
+			.addClass( 'form-invalid' )
+			.find( 'input:visible' )
+			.change( function() {
+				$(this).closest( '.form-invalid' ).removeClass( 'form-invalid' );
+			} )
+			.size();
 }
 
 })(jQuery);
@@ -201,24 +218,35 @@
 };
 
 jQuery(document).ready( function($) {
-	var lastClicked = false, checks, first, last, checked, bgx = ( isRtl ? 'left' : 'right' );
+	var checked,
+		checks,
+		first,
+		last,
+		bgx                   = ( isRtl ? 'left' : 'right' ),
+		lastClicked           = false,
+		helpLink              = $('#contextual-help-link'),
+		helpLinkWrap          = $('#contextual-help-link-wrap'),
+		helpWrap              = $('#contextual-help-wrap'),
+		screenOptionsLinkWrap = $('#screen-options-link-wrap'),
+		screenOptionsWrap     = $('#screen-options-wrap'),
+		showSettingsLink      = $('#show-settings-link');
 
 	// Move .updated and .error alert boxes. Don't move boxes designed to be inline.
 	$('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2');
 	$('div.updated, div.error').not('.below-h2, .inline').insertAfter( $('div.wrap h2:first') );
 
 	// screen settings tab
-	$('#show-settings-link').click(function () {
-		if ( ! $('#screen-options-wrap').hasClass('screen-options-open') )
-			$('#contextual-help-link-wrap').css('visibility', 'hidden');
+	showSettingsLink.click(function () {
+		if ( ! screenOptionsWrap.hasClass('screen-options-open') )
+			helpLinkWrap.css('visibility', 'hidden');
 
-		$('#screen-options-wrap').slideToggle('fast', function(){
+		screenOptionsWrap.slideToggle('fast', function(){
 			if ( $(this).hasClass('screen-options-open') ) {
-				$('#show-settings-link').css({'backgroundPosition':'top '+bgx});
-				$('#contextual-help-link-wrap').css('visibility', '');
+				showSettingsLink.css({'backgroundPosition': 'top ' + bgx});
+				helpLinkWrap.css('visibility', '');
 				$(this).removeClass('screen-options-open');
 			} else {
-				$('#show-settings-link').css({'backgroundPosition':'bottom '+bgx});
+				showSettingsLink.css({'backgroundPosition': 'bottom ' + bgx});
 				$(this).addClass('screen-options-open');
 			}
 		});
@@ -226,17 +254,17 @@
 	});
 
 	// help tab
-	$('#contextual-help-link').click(function () {
-		if ( ! $('#contextual-help-wrap').hasClass('contextual-help-open') )
-			$('#screen-options-link-wrap').css('visibility', 'hidden');
+	helpLink.click(function () {
+		if ( ! helpWrap.hasClass('contextual-help-open') )
+			screenOptionsLinkWrap.css('visibility', 'hidden');
 
-		$('#contextual-help-wrap').slideToggle('fast', function() {
+		helpWrap.slideToggle('fast', function() {
 			if ( $(this).hasClass('contextual-help-open') ) {
-				$('#contextual-help-link').css({'backgroundPosition':'top '+bgx});
-				$('#screen-options-link-wrap').css('visibility', '');
+				helpLink.css({'backgroundPosition': 'top ' + bgx});
+				screenOptionsLinkWrap.css('visibility', '');
 				$(this).removeClass('contextual-help-open');
 			} else {
-				$('#contextual-help-link').css({'backgroundPosition':'bottom '+bgx});
+				helpLink.css({'backgroundPosition': 'bottom ' + bgx});
 				$(this).addClass('contextual-help-open');
 			}
 		});
@@ -244,10 +272,10 @@
 	});
 
 	// check all checkboxes
-	$('tbody').children().children('.check-column').find(':checkbox').click( function(e) {
-		if ( 'undefined' == e.shiftKey ) { return true; }
-		if ( e.shiftKey ) {
-			if ( !lastClicked ) { return true; }
+	$('tbody').children().children('.check-column').find(':checkbox').click( function(event) {		
+		if ( 'undefined' == event.shiftKey ) { return true; }
+		if ( event.shiftKey ) {
+			if ( ! lastClicked ) { return true; }
 			checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' );
 			first = checks.index( lastClicked );
 			last = checks.index( this );
@@ -265,10 +293,10 @@
 		return true;
 	});
 
-	$('thead, tfoot').find('.check-column :checkbox').click( function(e) {
-		var c = $(this).attr('checked'),
+	$('thead, tfoot').find('.check-column :checkbox').click( function(event) {
+		var checked  = $(this).attr('checked'),
 			kbtoggle = 'undefined' == typeof toggleWithKeyboard ? false : toggleWithKeyboard,
-			toggle = e.shiftKey || kbtoggle;
+			toggle   = event.shiftKey || kbtoggle;
 
 		$(this).closest( 'table' ).children( 'tbody' ).filter(':visible')
 		.children().children('.check-column').find(':checkbox')
@@ -277,7 +305,7 @@
 				return '';
 			if ( toggle )
 				return $(this).attr( 'checked' ) ? '' : 'checked';
-			else if (c)
+			else if (checked)
 				return 'checked';
 			return '';
 		});
@@ -287,7 +315,7 @@
 		.attr('checked', function() {
 			if ( toggle )
 				return '';
-			else if (c)
+			else if (checked)
 				return 'checked';
 			return '';
 		});
@@ -300,34 +328,37 @@
 	});
 
 	// tab in textareas
-	$('#newcontent').keydown(function(e) {
-		if ( e.keyCode != 9 )
+	$('#newcontent').keydown(function(event) {
+		if ( 9 != event.keyCode )
 			return true;
 
-		var el = e.target, selStart = el.selectionStart, selEnd = el.selectionEnd, val = el.value, scroll, sel;
+		var scrollTop,
+			selection,
+			element        = event.target,
+			selectionEnd   = element.selectionEnd,
+			selectionStart = element.selectionStart,
+			value          = element.value;
 
 		try {
 			this.lastKey = 9; // not a standard DOM property, lastKey is to help stop Opera tab event.  See blur handler below.
 		} catch(err) {}
 
 		if ( document.selection ) {
-			el.focus();
-			sel = document.selection.createRange();
-			sel.text = '\t';
-		} else if ( selStart >= 0 ) {
-			scroll = this.scrollTop;
-			el.value = val.substring(0, selStart).concat('\t', val.substring(selEnd) );
-			el.selectionStart = el.selectionEnd = selStart + 1;
-			this.scrollTop = scroll;
+			element.focus();
+			selection = document.selection.createRange();
+			selection.text = '\t';
+		} else if ( selectionStart >= 0 ) {
+			scrollTop = this.scrollTop;
+			element.value = value.substring(0, selectionStart).concat('\t', value.substring(selectionEnd) );
+			element.selectionStart = element.selectionEnd = selectionStart + 1;
+			this.scrollTop = scrollTop;
 		}
 
-		if ( e.stopPropagation )
-			e.stopPropagation();
-		if ( e.preventDefault )
-			e.preventDefault();
-	});
-
-	$('#newcontent').blur(function(e) {
+		if ( event.stopPropagation )
+			event.stopPropagation();
+		if ( event.preventDefault )
+			event.preventDefault();
+	}).blur(function() {
\ No newline at end of file
 		if ( this.lastKey && 9 == this.lastKey )
 			this.focus();
 	});
