Added timeout to ModalWindow.attach

The action of setting ModalWindow.animate to true must be deferred by a few milliseconds such that the .in class is added after .fade.