 
 # Hides the result pane. When the animation is done, the ``animationDone()``
 # will be called.
-hideResultPane = () ->
+hideResultPane = ->
 	console.debug 'hideResultPane()'
 	if $('#search_result_pane').length > 0
 		animationActive = true
 		$('#search_result_pane').slideUp(animationTime, animationDone)
 
 # Inserts the current data into the results pane and slides it down.
-updateResultPane = () ->
+updateResultPane = ->
 	console.debug('updateResultPane()')
 
 	if ajaxActive || animationActive

		ajaxActive

# Inserts the search field into the DOM and focuses it.
showField = () ->
	console.debug 'showField()'
	$('#navigation').after '<div id="search"><input id="search_input" type="text" /></div>'
	$('#search_input').focus()

# Attaches the listeners to the search input field.
attachListener = () ->
	console.debug 'attachListener()'
	$('#search_input').keyup formChanged
	$('#search_input').keydown keyDown

#
# It does not necessarily fire off an AJAX request if the last one was just a
# little time ago.
formChanged = ->
	console.debug 'formChanged()'
	newQuery = $(this).val()

