+} )();
+
+// Better focus for hidden submenu items for accessibility.
+( function( $ ) {
+ $( '.main-navigation' ).find( 'a' ).on( 'focus.twentytwelve blur.twentytwelve', function() {
+ $( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' );
+ } );
+} )( jQuery );