function dialog(s,img,w,h) {
if (!w) w = 450; if (!h) h = 300;
$("body").prepend('
')
.children(':first').css({"zIndex":999999,"height":Math.max($(window).height(),$(document).height())})
.children(':first').css({'opacity':0.2}).bind("click", function() { $("#dialog").empty().remove(); })
.next().css({left:Math.round(($(window).width()-w)/2)+$(window).scrollLeft(),top:Math.round(($(window).height()-h)/2)+$(window).scrollTop()}).bind("click", function() { $("#dialog").empty().remove(); })
.html('
'+s);
}