You will have to create a div like this:
$('body').append('
<div id="modal_wrapper">
<!--[if IE 6]>
<iframe id="modal_iframe"></iframe>
<![endif]-->
<div id="modal_overlay"></div>
<div id="modal_window">
<div id="modal_bar">
Modal window
<a href="#" id="modal_close">Close</a>
</div>
<div id="modal_content"></div>
</div>
');
Then in a click function use it like:
$('myelement').click(function() {
$('#modal_wrapper').show(); //to make visible
$('#modal_wrapper').hide(); // to hide
}