$(function () {
	var msie6 = $.browser == 'msie' && $.browser.version < 7;
	if (!msie6) {
		var top = $('#nav_contents').offset().top - parseFloat($('#nav_contents').css('margin-top').replace(/auto/, 0));
		$(window).scroll(function (event) {
			// what the y position of the scroll isEqual
			var y = $(this).scrollTop();
			// whether that's below the form
			if (y >= top) {
				// if so, ad the fixed class
				$('#nav_contents').addClass('fixed');
			} else {
				// otherwise remove it
				$('#nav_contents').removeClass('fixed');
			}
		});
	}
});
