
var bodyBlocker={"obj":null,'global_block':0,'type':null,'shared_blocker':0,'intervalId':null,'create':function(global)
{var oBlock;if(!global)
{if(bodyBlocker.obj&&bodyBlocker.type==1)
bodyBlocker.destroy();oBlock=$('blocker');}
else
{if(bodyBlocker.obj&&!bodyBlocker.type)
bodyBlocker.destroy();oBlock=$('global_blocker');}
bodyBlocker.type=global;oBlock.style.zIndex=1000;oBlock.style.opacity=0.6;oBlock.style.filter='alpha(opacity=60)';oBlock.style.top='0px';oBlock.style.left='0px';var oSize=system.get_document_size();oBlock.style.width=oSize.width+'px';oBlock.style.height=oSize.height+'px';if(typeof(share_file_promt)=='undefined')
oBlock.onclick=bodyBlocker.destroy_popup;oBlock.style.display='block';bodyBlocker.obj=oBlock;if(global)
bodyBlocker.set_global_block();},'destroy_popup':function()
{if(typeof(bug_popup)=='undefined'||(typeof(bug_popup)!='undefined'&&!bug_popup.obj))
{if(typeof(popups.progressPopup)=='undefined'||(typeof(popups.progressPopup!='undefined')&&!popups.progressPopup.obj))
{var popup;re=new RegExp('Popup$','');for(popup in popups)
{if(popup.match(re)&&popups[popup].obj)
{popups[popup].destroy();}}}}
else
{bug_popup.destroy();}},'destroy':function()
{if(bodyBlocker.type)
bodyBlocker.remove_global_block();if(bodyBlocker.obj)
{bodyBlocker.obj.style.display='none';bodyBlocker.obj=null;}
if(bodyBlocker.shared_blocker)
document.body.removeChild(bodyBlocker.shared_blocker);},'set_global_block':function()
{var x=0;var y=0;var oDiv=$('loading_bar');if(rm!='box_v2_show_shared')
{var oPos=system.get_object_position($('center_main_body'));oDiv.style.left=oPos.x+190+'px';oDiv.style.top=oPos.y+43+'px';var oBlock=document.createElement('div');oBlock.style.position='absolute';oBlock.style.left=oPos.x-10+'px';oBlock.style.top=oPos.y+'px';if($('center_main_body').offsetHeight>50&&!bodyBlocker.shared_blocker)
{oBlock.style.width=$('center_main_body').offsetWidth+10+'px';oBlock.style.height=$('center_main_body').offsetHeight+'px';oBlock.style.opacity='0.8';oBlock.style.filter='alpha(opacity=80)';oBlock.style.backgroundColor='#fff';bodyBlocker.shared_blocker=document.body.appendChild(oBlock);}
oDiv.style.display='block';}
else
{var oDiv=$('loading_bar');var oPos=system.get_object_position($('nodes_part'));oDiv.style.left=oPos.x+260+'px';oDiv.style.top=oPos.y+30+'px';if($('nodes_part').offsetHeight>50&&!bodyBlocker.shared_blocker)
{var oBlock=document.createElement('div');oBlock.style.position='absolute';oBlock.style.left=oPos.x+'px';oBlock.style.top=oPos.y+'px';oBlock.style.width=$('nodes_part').offsetWidth+'px';oBlock.style.height=$('nodes_part').offsetHeight+'px';oBlock.style.opacity='0.8';oBlock.style.filter='alpha(opacity=80)';oBlock.style.backgroundColor='#fff';bodyBlocker.shared_blocker=document.body.appendChild(oBlock);}
oDiv.style.display='block';}
oDiv.childNodes[1].innerHTML='';bodyBlocker.intervalId=setInterval("bodyBlocker.show_progress()",500);bodyBlocker.global_block=1;bodyBlocker.obj.style.zIndex=9999;},show_progress:function()
{var oDiv=$('loading_bar');if(oDiv.childNodes[1].innerHTML!='...')
oDiv.childNodes[1].innerHTML+='.';else
oDiv.childNodes[1].innerHTML='';},'remove_global_block':function()
{var oDiv=$('loading_bar');oDiv.style.display='none';bodyBlocker.global_block=0;if(bodyBlocker.obj!=null)
bodyBlocker.obj.style.zIndex=1000;if(bodyBlocker.shared_blocker)
{try
{document.body.removeChild(bodyBlocker.shared_blocker);}
catch(e)
{}
finally
{}
bodyBlocker.shared_blocker=null;}
if(bodyBlocker.intervalId)
{clearInterval(bodyBlocker.intervalId);bodyBlocker.intervalId=null;}}};