The question is in in transitionBackground function. In this case, the function triggers when the up button is pressed on the page.
Here's an example using the toggle function with two divs: http://jsfiddle.net/SmAHU/ (loosely based on Nick011's reply)