function be() {

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

}

function calcpos() {

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


$("#jc").css('min-height',$("#fc").height()+$("#fc").position().top-$("#jc").position().top+(0)+"px");


$("#cd").css("left",Math.floor($("#cc").position().left+0*($("#cc").width())/100+0.5+(10))+"px");


$("#dd").css("left",Math.floor($("#cc").position().left+0*($("#cc").width())/100+0.5+(12))+"px");


$("#ed").css("left",Math.floor($("#cc").position().left+0*($("#cc").width())/100+0.5+(0))+"px");


$("#ed").css("top",Math.floor($("#cc").position().top+100*($("#cc").height())/100+0.5+(2))+"px");


$("#fd").css("left",Math.floor($("#cc").position().left+0*($("#cc").width())/100+0.5+(7))+"px");


$("#fd").css("top",Math.floor($("#cc").position().top+100*($("#cc").height())/100+0.5+(2))+"px");


$("#fd").width(Math.floor(100*($("#cc").width())/100+0.5+(-5))+"px");


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


$("#gd").css("top",Math.floor($("#cc").position().top+100*($("#cc").height())/100+0.5+(2))+"px");


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


$("#hd").css("top",Math.floor($("#cc").position().top+0*($("#cc").height())/100+0.5+(0))+"px");


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


$("#id").css("top",Math.floor($("#cc").position().top+0*($("#cc").height())/100+0.5+(12))+"px");


$("#id").height(Math.floor(100*($("#cc").height())/100+0.5+(-10))+"px");


this.busy=0;

}
