Datepicker not working unless page is clicked

Datepicker not working unless page is clicked

OK, I have an interesting problem.  The page has a datepicker on it. When the page first loads I'm required to click somewhere on the page (just in blank space) and then click the datepicker in order for it to come up. If the page loads and I immediately move the mouse to the date picker it does not load.  I think the problem is related to the menu bar that is on the page (this menu bar was created by another programmer and is a created using php and jquery). Why could this be happening?  I'm thinking that it is related to his code and its halting javascript from being executed until the focus is on another part of the page (just a guess, i'm very new at this).  Is there a way to make the focus change automatically?

I'm not sure if I explained myself well, so if you have any questions about the situation I'll try to explain better.  Thanks for your help.

talonosi