function be() {

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

}

function calcpos() {

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


$("#j3").css("left",Math.floor($("#g2").position().left+100*($("#g2").width())/100+0.5+(2))+"px");


$("#j3").height(Math.floor(100*($("#g2").height())/100+0.5+(0))+"px");


this.busy=0;

}
