Ok, we could add more delay and the old implementation would work again.

I would prefer a solution like this as it seems more robust:
````

        var allowOpen = false,
            datepicker = $( "#datepicker" ).datepicker({
                beforeOpen: function() {
                    return allowOpen;
                },
                open: function() {
                    allowOpen = false;
                }
            });

        $( "<img src='images/calendar.gif' alt='Open Datepicker'>")
            .insertAfter( datepicker )
            .click(function() {
                allowOpen = true;
                datepicker.focus();
            });
````

What do you think?