	jQuery(function() {
		var bar = jQuery('#top');
		var top = bar.css('top');
		jQuery(window).scroll(function() {
			if(jQuery(this).scrollTop() > 50) {
				bar.stop().animate({'top' : '0px'}, 500);
			} else {
				bar.stop().animate({'top' : top}, 500);
			}
		});
	});
	

	jQuery(function() {
		var bar = jQuery('#nav-container');
		var top = bar.css('top');
		jQuery(window).scroll(function() {
			if(jQuery(this).scrollTop() > 50) {
				bar.stop().animate({'top' : '-105px'}, 500);
			} else {
				bar.stop().animate({'top' : '0px'}, 500);
			}
		});
	});
