function be() {

$(document).ready(calcpos); $(window).resize(calcpos);

}

function calcpos() {

if (this.busy) {alert('reentry detected'); return;} this.busy=1;
$("#d").css("left",Math.max(0,Math.floor(50*($("#d").offsetParent().width())/100-($("#d").width())*50/100+0.5+(0)))+"px");


$("#d").css("top",Math.max(0,Math.floor(50*($(window).height())/100-($("#d").height())*50/100+0.5+(-15)))+"px");


this.busy=0;

}

