            dojo.require('dojox.widget.Dialog');
            var logindialog;
            function signin(){
                if(!logindialog){
                        logindialog=new dojox.widget.Dialog({
                        dimensions: [420,380], /* 260 width without extra text */
                        content: '<div style="text-align: center; font-family: Verdana,Sans-serif; color: gray;"><p><span style="font-size:2em">Tired of passwords?</span><br/>\
                        <span style="font-size:1.1em">Log in using an account you already have.</span><br/>\
                        <span style="font-size:0.9em"><a href="openid.html">learn more</a></span></p></div>\
                        <iframe src="https://login-teampatent.rpxnow.com/openid/embed?token_url=https://docs.teampatent.com/auth/rpx" scrolling="no" frameBorder="no" style="width:400px;height:240px;"></iframe>'
                        });
                        logindialog.startup();
                        logindialog.setVisible=function(v){
                                var swf=dojo.byId('csSWF');
                                if(swf){
                                        swf.style.visibility=v?"visible":"hidden";
                                }
                        }
                        logindialog.show=function(){
                                this.setVisible(false);
                                dojox.widget.Dialog.prototype.show.apply(this);
                        }
                        logindialog.hide=function(){
                                this.setVisible(true);
                                dojox.widget.Dialog.prototype.hide.apply(this);
                        }
                }
                logindialog.show();
            }