	function lookup(inputString) {
		if(inputString.length == 0) {
			// Hide the suggestion box.
			$('#suggestions').hide();
		} else {
			$.post("/scripts/jquery/rpc.php", {queryString: ""+inputString+""}, function(data){
				if(data.length >0) {
					$('#suggestions').show();
					$('#autoSuggestionsList').html(data);
				}
			});
		}
	} // lookup
	
	function fill(thisValue) {
		$('#inputString').val(thisValue);
		setTimeout("$('#suggestions').hide();", 200);
	}
	
	


	$(function() {
	
		$("#dialog").dialog({
			width: 420,
			bgiframe: true,
			modal: true,
			buttons: {
				Ok: function() {
					$(this).dialog('close');
				}
			}
		});
	});


	$(function() {
		$("#tabs").tabs();
	});

	$(function() {
		$("#tabs2").tabs();
	});

	
	$(function() {
		$('#gallery a').lightBox({fixedNavigation:true});
	});

	$(function() {
		$("#datepicker").datepicker();

	});
