 
 # Called when the slide up animation is done.
 animationDone = ->
-	console.debug('animationDone()')
 	animationActive = false
 	updateResultPane()
 

#
# @param e Key event.
keyDown = (e) ->
	console.debug('keyDown()')
	switch e.keyCode
		when 38
			moveUp()

# Hides the result pane. When the animation is done, the ``animationDone()``
# will be called.
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 = ->
	if ajaxActive || animationActive
		return

	if currentData is null
		return

	initResultPane()
