The last piece of the puzzle (F5) HELP PLEASE!

heres what im working on:

when you click on DATES it will bring up an event calendar

everything works fine but when i click on another nav link like PHOTOS the dates remain visible!

this is a serious problem and i cant figure out how to unload whatever operations cause that layer

i used the script from this page: