
var _NS_F=new Object();_NS_F.sContainer='_ns_floating';_NS_F.sContainerForContent='_ns_floating_content';_NS_F.sContainerForClosing='_ns_floating_closing';_NS_F.sBackgroundColor='#5e5e5e';_NS_F.bEnableClosing=false;_NS_F.show=function(bShow,nCW,nCH,bSetClose)
{var nOpVal=bShow?60:0;bSetClose=bSetClose?bSetClose:false;var oBody=_NS_F._getRealBody();if(bShow==null||bShow==true)
{_NS_F.show(false);var oStyle={opacity:(nOpVal/100),filter:'alpha(opacity='+nOpVal+')',position:'absolute',backgroundColor:_NS_F.sBackgroundColor,top:0,left:0,zIndex:1000,width:oBody.scrollWidth+'px',height:(oBody.scrollHeight>oBody.clientHeight?oBody.scrollHeight:oBody.clientHeight)+'px',textAlign:'center'};var oBackg=document.createElement('div');oBackg.setAttribute('id',this.sContainer);if(bSetClose)
oBackg.onmousedown=function(){_NS_F.show(false);};window.onresize=function(){_NS_F.resize();}
Element.setStyle(oBackg,oStyle);document.getElementsByTagName("body")[0].appendChild(oBackg);nCW=nCW?nCW:100;nCH=nCH?nCH:100;oStyle={position:'absolute',display:'none',top:(document.documentElement.clientHeight/2)-(nCH/2)+oBody.scrollTop-3+'px',left:(oBody.clientWidth/2)-(nCW/2)-3+'px',width:nCW+'px',height:nCH+'px',zIndex:1001};var oFC=document.createElement('div');oFC.setAttribute('id',_NS_F.sContainerForContent);Element.setStyle(oFC,oStyle);document.getElementsByTagName("body")[0].appendChild(oFC);if(_NS_F.bEnableClosing)
{oStyle={position:'absolute',top:parseInt(oFC.style.top)+20+'px',left:parseInt(oFC.style.left)+parseInt(oFC.style.width)-35+'px',width:'25px',height:'24px',zIndex:1002};var oFCBtnCls=document.createElement('div');oFCBtnCls.setAttribute('id',_NS_F.sContainerForClosing);Element.setStyle(oFCBtnCls,oStyle);Element.update(oFCBtnCls,'<a onclick="_NS_F.show(false);"><img src="http://helizet.com/images/btn_option_close.gif" width="25" height="24" /></a>');document.getElementsByTagName("body")[0].appendChild(oFCBtnCls);_NS_F.bEnableClosing=false;}
return true;}else
{try
{Element.remove(_NS_F.sContainerForContent);Element.remove(_NS_F.sContainer);Element.remove(_NS_F.sContainerForClosing);}catch(e){}
return false;}}
_NS_F.setFCStyle=function(o)
{$(_NS_F.sContainerForContent).setStyle(o);}
_NS_F.setHTML=function(str,bRP)
{Element.update($(_NS_F.sContainerForContent),str);Element.show($(_NS_F.sContainerForContent));if(bRP)
_NS_F.repositionFC();_NS_F.resize();}
_NS_F.repositionFC=function(nT,nL)
{nT=nT?nT:0;nL=nL?nL:0;var oFC=$(_NS_F.sContainerForContent);var oDim=Element.getDimensions(oFC);if(nT)
oFC.style.top=nT+'px';else
oFC.style.top=(document.documentElement.clientHeight/2)-(oDim.height/2)+_NS_F._getRealBody().scrollTop+'px';if(nL)
oFC.style.left=nL+'px';else
oFC.style.left=(_NS_F._getRealBody().clientWidth/2)-(oDim.width/2)+'px';}
_NS_F.resize=function()
{try
{var oBackg=$(_NS_F.sContainer);var oBody=_NS_F._getRealBody();oBackg.style.width=oBody.scrollWidth+'px';oBackg.style.height=(oBody.scrollHeight>oBody.clientHeight?oBody.scrollHeight:oBody.clientHeight)+'px';}catch(e){}}
_NS_F._getRealBody=function()
{return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;}