hello!
i'm looking for a proper way of placing popup div-elemnt in the center of current view area.
for example: we have some div element with {display:none; position:absolute} and few buttons, one on the top of document, second in the center and last one, somewhere in the bottom. By clicking on any of this button, div should appear in the center of current viewing area
$(".btnClass").click(function(){
//some actions for positioning here
$(div_id).show()
})