.trigger("click") not firing
Never mind. I figured it out:

&lt;?php
drupal_add_js('http://code.jquery.com/jquery-1.9.1.js','external');
drupal_add_js('http://code.jquery.com/ui/1.10.1/jquery-ui.js','external');
drupal_add_js('jQuery(document).ready(function() {

jQuery(document).mousemove(function(e) {

if (e.pageY&lt;=5) {
        jQuery("#dialog").dialog("open");
}
});

    jQuery("#dialog").dialog({
        autoOpen: false,
        position: "center",
        title: "         ",
        draggable: true,
        width: 850,
        height: 700,
        resizable: false,
        modal: true,
    });

});', 'inline');
?&gt;

&lt;button id="dialog_trigger" style="display:none;"&gt;Open The Dialog&lt;/button&gt;
&lt;div id="dialog" style="display:none;" title="Dialog Title"&gt;
    &lt;iframe frameborder="0" scrolling="yes" width="800" height="650" src="http://www.google.com" style="padding-left:25px;"&gt; &lt;/iframe&gt;
&lt;/div&gt;