$(document).ready(function()
	{
		// Auto-populate form fields with their titles
		$('.populate').each(function(){
			var e = $(this);
			if (!e.val()) { e.val(e.attr('title')); }
			e.focus(function(){
				var e = $(this);
				if (e.attr('title') == e.val()) { e.val(''); }
			});
					
			e.blur(function(){
				var e = $(this);
				if (!e.val()) { e.val(e.attr('title')); }
			});
		});	
		
		// Quick-Pick Menu
		$('form#roster-quick-pick input[type=submit]').hide();
		$('form#roster-quick-pick select').change(function()
		{
			window.location = $(this).val();
		});
		
		// Smooth top link
		$("a[href=#top]").click(function()
		{
			$("html, body").animate(
				{ scrollTop:0 }, 500
			);
			return false;
		}
	);
		
	}
);
