
var _NS_FF=new Object();_NS_FF.sContainer='_ns_floatingforheliprofile';_NS_FF.sContainerForContent='_ns_floating_contentforheliprofile';_NS_FF.sBackgroundColor='#5e5e5e';_NS_FF.show=function(bShow,nCW,nCH,bSetClose)
{var nOpVal=bShow?50:0;bSetClose=bSetClose?bSetClose:false;var oBody=_NS_FF._getRealBody();if(bShow==null||bShow==true)
{_NS_FF.show(false);var oBackg=document.createElement('div');oBackg.setAttribute('id',this.sContainer);oBackg.style.opacity=(nOpVal/100);oBackg.style.filter='alpha(opacity='+nOpVal+')';oBackg.style.position='absolute';oBackg.style.backgroundColor=_NS_FF.sBackgroundColor;oBackg.style.top=0;oBackg.style.left=0;oBackg.style.zIndex=1000001;oBackg.style.width=oBody.scrollWidth+'px';oBackg.style.height=(oBody.scrollHeight>oBody.clientHeight?oBody.scrollHeight:oBody.clientHeight)+'px';oBackg.style.textAlign='center';if(bSetClose)
oBackg.onmousedown=function(){_NS_FF.show(false);};window.onresize=function(){_NS_FF.resize();}
document.getElementsByTagName("body")[0].appendChild(oBackg);nCW=nCW?nCW:100;nCH=nCH?nCH:100;var oFC=document.createElement('div');oFC.setAttribute('id',_NS_FF.sContainerForContent);oFC.style.position='absolute';oFC.style.display='none';oFC.style.top=(document.documentElement.clientHeight/2)-(nCH/2)+oBody.scrollTop+'px';oFC.style.left=(oBody.clientWidth/2)-(nCW/2)+'px';oFC.style.width=nCW+'px';oFC.style.height=nCH+'px';oFC.style.zIndex=1000002;document.getElementsByTagName("body")[0].appendChild(oFC);return true;}else
{try
{_NS_FF.$(_NS_FF.sContainerForContent).innerHTML='';_NS_FF._removeElement(_NS_FF.sContainerForContent);_NS_FF._removeElement(_NS_FF.sContainer);}catch(e){}
return false;}}
_NS_FF.$=function(ele)
{return(typeof ele=='string'?document.getElementById(ele):ele);}
_NS_FF._removeElement=function(element)
{element=_NS_FF.$(element);element.parentNode.removeChild(element);return element;}
_NS_FF.setHTML=function(str,bRP)
{_NS_FF.$(_NS_FF.sContainerForContent).innerHTML=str;_NS_FF.$(_NS_FF.sContainerForContent).style.display='';_NS_FF.resize();}
_NS_FF.resize=function()
{try
{var oBackg=_NS_FF.$(_NS_FF.sContainer);var oBody=_NS_FF._getRealBody();oBackg.style.width=oBody.scrollWidth+'px';oBackg.style.height=(oBody.scrollHeight>oBody.clientHeight?oBody.scrollHeight:oBody.clientHeight)+'px';}catch(e){}}
_NS_FF._getRealBody=function()
{return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;}
function _NS_GET_Iframe(sUrl,oParam)
{return'<iframe src="'+sUrl+'" width="'+oParam.width+'" height="'+oParam.height+'" style="border:none"></iframe>';}
if(location.href.indexOf('#_NS_C#')>-1)
{var sC=location.href.substr(location.href.lastIndexOf('#')+1);var oS={};var aTokens=sC.split(';');for(var i=0;i<aTokens.length;i++)
oS[aTokens[i].split(':')[0]]=aTokens[i].split(':')[1];var sHtml=_NS_GET_Iframe(decodeURIComponent(oS.src).replace('%3A',':'),{width:oS.w,height:oS.h});_NS_FF.show(true,oS.w,oS.h,_NS_FF.sContainer);_NS_FF.setHTML(sHtml);}
function _NS_OpenLayer(url,width,height){try{var sHtml=_NS_GET_Iframe(url,{width:width,height:height});_NS_FF.show(true,width,height,_NS_FF.sContainer);_NS_FF.setHTML(sHtml);return false;}catch(e){}
return true;}