$(document).ready(
	function() {

		//
		// BEGIN script for "Quick Links" select menu
		$("#business_type").change(
			function() {
				window.location.href = $("#business_type").val();
			}
		);
		// END script for "Quick Links" select menu
		//

		// BEGIN handling login form fields
		$("#search_directory").focus(
			function() {
				$(this).val("");
			}
		);
		
		$("#search_directory").blur(
			function() {
				$(this).val("Search available spaces...");
			}
		);
		// END handling login form fields
		
		//
		// BEGIN handling "prev/next month" links for calendar
		calendar_nav_links();
		// END handling "prev/next month" links for calendar
		//

		//
		// BEGIN lightbox gallery
		$('ul.gallery a').lightBox({
			imageLoading: 'http://downtownlincoln.org/themes/site_themes/2009/shared/images/lightbox/loading.gif',
			imageBtnClose: 'http://downtownlincoln.org/themes/site_themes/2009/shared/images/lightbox/close.gif',
			imageBtnNext: 'http://downtownlincoln.org/themes/site_themes/2009/shared/images/lightbox/next.gif',
			imageBtnPrev: 'http://downtownlincoln.org/themes/site_themes/2009/shared/images/lightbox/prev.gif'
		});
		// BEGIN lightbox gallery
		//
		
	}
);

calendar_nav_links = function() {

	$('#prev-month a').click(
		function() {
			$('#events-nav').load(this.href, calendar_nav_links);
			return false;
		}
	);

	$('#next-month a').click(
		function() {
			$('#events-nav').load(this.href, calendar_nav_links);
			return false;
		}
	);
	
};