I playing around with a function that I want to bind to all the links. At the present the function fires when the page loads, instead of when I click on the link.
Looks like you're calling the function showDiv directly there (and binding the return result of showDiv() to the click handler instead of binding it directly.