var NOBG_FLAG=true;var iframeColor="FFF";setFloatWindow=function(s,c,g,l,i){var o=document.getElementById("float_window");if(o!=null){return false}else{var d=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);if(i==null||i=="undefined"||i==false){var m=document.createElement("iframe");m.setAttribute("id","ifObj");document.body.appendChild(m);m.style.borderWidth="0";m.style.position="absolute";m.style.zIndex="1000";m.style.top="0";m.style.left="0";m.style.marginLeft="-"+(Math.abs(window.screen.availWidth-document.body.clientWidth))/2+"px";m.style.width=(window.screen.availWidth)+"px";m.style.height=d+"px";m.style.background=iframeColor;m.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=80)";m.style.opacity="0.8";m.allowTransparency=false;var b=m.contentWindow;if(b!=null){b.document.open();b.document.writeln("<html><head>");b.document.writeln("</head><body></body></html>");b.document.body.style.backgroundColor=iframeColor;b.document.close()}NOBG_FLAG=false}var h=document.createElement("div");h.setAttribute("id","float_window");document.body.appendChild(h);h.style.backgroundColor="#fff";h.style.marginLeft="3px";h.style.marginTop="3px";h.style.left=(document.body.clientWidth-g)/2+"px";h.style.position="absolute";h.style.zIndex="1003";h.style.width=g+"px";h.style.border="3px #ddd solid";var f='<h3 id="titleBar" style="padding:0 8px;height:30px;line-height:30px;background:#ddd;font-size:14px;"><span class="l bold">'+s+'</span><span id="_CLOSEX" onmousedown="javascript:closeFloatWindow();"style="font-size:14px;font-weight:bold;color:#000;float:right;cursor:pointer;font-family:taho,verdana,sans-serif;">×</span></h3>';f+=c;h.innerHTML=f;if(navigator.userAgent.indexOf("Chrome")>-1){h.style.top=document.body.scrollTop+(window.screen.availHeight-h.offsetHeight)/4+"px"}else{h.style.top=document.documentElement.scrollTop+(window.screen.availHeight-h.offsetHeight)/4+"px"}h.focus();if(l==true){var a=document.getElementById("titleBar");a.style.cursor="move";var k=0;var n=0;var r=0;var q=0;var p=false;var e=document.onmousemove;var j=document.onmouseup;a.onmousedown=function(){var t=getEvent();p=true;k=parseInt(h.style.top);n=parseInt(h.style.left);r=t.clientX;q=t.clientY;document.onmousemove=function(){if(p){var v=getEvent();var u=n+v.clientX-r;var w=k+v.clientY-q;if(u>0&&w>0&&(u+g<document.body.clientWidth)&&(w+h.offsetHeight)<d){h.style.left=u-2+"px";h.style.top=w-2+"px"}}};document.onmouseup=function(){if(p){document.onmousemove=e;document.onmouseup=j;p=false;k=0;n=0;r=0;q=0}}}}document.documentElement.style.overflowX="hidden";return true}};closeFloatWindow=function(){if(NOBG_FLAG==false){document.body.removeChild(document.getElementById("ifObj"));NOBG_FLAG=true}if(document.getElementById("float_window")!=null){document.body.removeChild(document.getElementById("float_window"))}document.documentElement.style.overflowX=""};getEvent=function(){return window.event||arguments.callee.caller.arguments[0]};