Is it possible to have multiple BD instances on the same page? For example, if I have in the HTML:

Code:
<div id='logout-dlg' style='visibility:hidden;overflow:hidden;position:absolute;top:0px;'>
	<div class='ydlg-hd'>Logout</div>
        ...
</div>

<div id='login-dlg' style='visibility:hidden;overflow:hidden;position:absolute;top:0px;'>
	<div class='ydlg-hd'>Login</div>
        ...
</div>
and in the JavaScript file:

Code:
logoutDlg = new YAHOO.ext.BasicDialog("logout-dlg", { modal:true, ... });
						
loginDlg = new YAHOO.ext.BasicDialog("login-dlg", { modal:true, ... });

It would seem like only the first one that appears in the HTML can work correctly while the second dlg even fails to show. Does anyone have any idea? I know it's possible since I have seen wayki.com does it. Please help. Thanks