/**
 * Call jQuery using a special handler to avoid namespaces difficulties
 *
 * @link http://api.jquery.com/ready/ - "Aliasing the jQuery Namespace"
 */
jQuery(document).ready( function($) {
	// Set ul#submenu position dynamically
	$( '#submenu' ).css( 'margin-right', $( '#pages' ).width() - 1 * $( '.current_page_ancestor' ).width() - 14 );
	$( '#submenu' ).css( 'margin-top', 5 - $( '.current_page_ancestor' ).offset().top );

	// Add ul#submenu li:first a border-top attribute
	$( '#submenu > li:first' ).css( 'border-top', '1px solid #222' );
});

