function openOffersDialog() {
$('#overlay').fadeIn('fast', function() {
$('#boxpopup').css('display', 'block');
$('#boxpopup').animate({'left':'30px'},500);
});
}
<div>
<div id="overlay"></div>
<a önclick="openOffersDialog();">Click Here To See The PopUp</a>
<div id="boxpopup">Here your code (any Panel)</div>
</div>
I hope this will help Your work