I have tweaked an automatic refresh script to close a div after a given time when I have opened it. It's working, but if I reopen the div, and the script has to work again it won't close the div by itself and stays open.

You can see the page over here: http://home.student.uva.nl/alexander...closingbug.htm

Can someone look at this script and tell me why this is happening and give me a possible solution?

Thanks! Alex