function be() {

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

}

function calcpos() {

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


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


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


this.busy=0;

}
