$(document).ready(
	function() {

		//
		// BEGIN handling login form fields
		$("#login :text").focus(
			function() {
				$(this).val("");
			}
		);
		
		$("#login :text").blur(
			function() {
				$(this).val("E-mail Address");
			}
		);

		$("#login :password").focus(
			function() {
				$(this).val("");
			}
		);
		
		$("#login :password").blur(
			function() {
				$(this).val("Password");
			}
		);
		// END handling login form fields
		//
		
		//
		// BEGIN handling footer "Go To" pulldown
		$("#footer_nav select").change(
			function() {
			window.location = $("#footer_nav select").val();
			}
		);
		// END handling footer "Go To" pulldown
		//
		
		//
		// BEGIN handling date/time fields
		$("#vascular_start_date").datepicker({
			showAnim: 'fadeIn',
			showOn: 'both',
			buttonImage: '/themes/site_themes/firstresponse/images/layout/calendar.gif',
			buttonImageOnly: true
		});

		$("#vascular_start_clockpick").clockpick({
			valuefield: 'vascular_start_time',
			starthour: 0,
			endhour: 23,
			minutedivisions: 12,
			layout: 'Horizontal',
			useBgiframe: true
		});
	
		$("#vascular_end_date").datepicker({
			showAnim: 'fadeIn',
			showOn: 'both',
			buttonImage: '/themes/site_themes/firstresponse/images/layout/calendar.gif',
			buttonImageOnly: true
		});

		$("#vascular_end_clockpick").clockpick({
			valuefield: 'vascular_end_time',
			starthour: 0,
			endhour: 23,
			minutedivisions: 12,
			layout: 'Horizontal',
			useBgiframe: true
		});
		// END handling date/time fields
		//

	}
);