Euca 7511 - when the advanced section is open on the dialog, re-center the dialog


https://eucalyptus.atlassian.net/browse/EUCA-7527

Added a line in the toggleAdvance function to re-center the dialog when the advanced section is open in the dialog.

Extra: auto-center the dialogs when the size of the window changes