var timeout  = null;
var rollback = true;
jQuery(document).ready( function() {
	jQuery('#page-nav li a:not(.selected)').hover( function() {
		var el = this;
		clearTimeout(timeout);
		timeout = setTimeout( function() { jQuery(el).animate({marginLeft: '0px'}) }, 100);
	}, function() {
		clearTimeout(timeout);
		if (rollback) {
			var el = this;
			setTimeout( function() { jQuery(el).animate({marginLeft: '-11px'}) }, 100);
		}
	}).click( function() {
		rollback = false;
	});
});