/*
 * Compressed by JSA(www.xidea.org)
 */
function killErrors(){return true}window.onerror=killErrors;function IsIE8(){return!!window.XDomainRequest}function _o($){return document.getElementById($)}function ShowSelf($){$.style.display="block"}function getPosition($){var B,A,C=new Object(),_=$;B=0;A=0;while(_!=null&&_.nodeName!="BODY"){B+=_.offsetLeft;A+=_.offsetTop;if(_.nodeName=="DIV"){B-=_.scrollLeft;A-=_.scrollTop}_=_.offsetParent}C.x=B;C.y=A;return C}function showHint(C,A,B){var _=_o("hint"),$=document.body.clientWidth+document.body.scrollLeft-_.offsetWidth-30;C=(C>$)?$:C;var D=document.body.clientHeight+document.documentElement.scrollTop-_.offsetHeight;A=(A>D)?D:A;_.style.left=C+"px";_.style.top=A+"px";_.innerHTML=B;_.style.visibility="visible"}function hideHint(){var $=_o("hint");$.style.visibility="hidden"}function showChartHint(B,C,$){var A=_o("hint");if($!=null&&$!=undefined)A.style.width=$+"px";else A.style.width="400px";var _=getPosByEvent(B,A.offsetWidth);A.style.left=_.x+"px";A.style.top=parseInt(_.y+20)+"px";A.innerHTML=C;A.style.visibility="visible"}function hintFollowMouse(B){var A=_o("hint"),$=getPosByEvent(B,A.offsetWidth),C=$.x,_=$.y;A.style.left=C+"px";A.style.top=parseInt(_+20)+"px"}function getPosByEvent(A,C){var D=new Object();if(window.event){var B=event.x,$=document.documentElement.clientWidth+document.documentElement.scrollLeft-C;B=(B>$)?$:B;var _;if(IsIE8()){if(event.y>document.documentElement.scrollTop)_=event.y;else _=event.y+document.documentElement.scrollTop}else _=event.y+document.documentElement.scrollTop}else{B=A.pageX,$=document.documentElement.clientWidth+document.documentElement.scrollLeft-C;B=(B>$)?$:B;_=A.pageY}D.x=B;D.y=_;return D}function showLoading(){window.status="Loading..."}function hideLoading(){window.status="Finish"}function getCommandText(C){var D=decodeURI(location.href);D=D.replace(/\#/g,"");var _=D.indexOf("?"),A=D.substring(_+1),B=A.split("&");if(B!=null&&B.length>0)for(_=0;_<B.length;_++){var $=B[_].split("=");if($!=null&&$[0]==C)return $[1]}return""}function getNewsPolyURL($){var _=_newsPolymerizeURL;return _}function MyEncodeUrl($){return encodeURI($)}function getSearchURL($){var _=_searchURL+$+"&t=1";return encodeURI(_)}function getSearchURLNoEncoding($){var _=_searchURL+escape($)+"&t=2";return _}function getSymbolInfoSearchURL(_,$){var A=_symbolInfoSearchURL+"c=gbgg&v="+_+"&w="+$+"&q="+getCommandText("q");return encodeURI(A)}function gotoSearchURL($){var _=getSearchURL($);gotoURL(_);return false}function gotoSearchURLNoEncoding($){var _=getSearchURLNoEncoding($);gotoURL(_)}function gotoSymbolInfoSearchURL(_,$){var A;switch(_){case 1:A=(getSymbolInfoSearchURL("news",$));break;case 2:A=(getSymbolInfoSearchURL("filings",$));break;case 3:A=(getSymbolInfoSearchURL("fundfilings",$));break}window.open(A,"Windin","");return false}function gotoURL($){window.open($,"","")}function openWindow(C,_,A,B,$){if(_!=null&&A!=null&&B!=null&&$!=null)window.open(C,"","width="+_+",height="+A+",left="+B+",top="+$);else window.open(C,"","scrollbars=yes,location=yes,toolbar=yes,titlebar=yes,menubar=yes,status=yes,resizable=yes");return false}function gotoSearchURLinSelf($){var _=getSearchURL($);gotoURLinSelf(_)}function gotoURLinSelf($){window.top.location.href=$}function dyniframesize(iframename){var pTar=null;if(_o)pTar=_o(iframename);else eval("pTar = "+iframename+";");if(pTar&&!window.opera){pTar.style.display="block";if(pTar.contentDocument&&pTar.contentDocument.body.offsetHeight)pTar.height=pTar.contentDocument.body.offsetHeight+20;else if(pTar.Document&&pTar.Document.body.scrollHeight)pTar.height=pTar.Document.body.scrollHeight}}function ConvertDate(_){if(_.length==8){var B=_.substr(0,4),$=_.substr(4,2),A=_.substr(6,2);return $+"-"+A}else return _}function GetDateString($){var _=$.getMonth()+1,B="0"+_,A="0"+$.getDate();return $.getFullYear()+"-"+B.substr(B.length-2)+"-"+A.substr(A.length-2)}function CreateXmlHttp(){var $;if(getOs()=="MSIE")$=new ActiveXObject("msxml2.XMLHTTP");else $=new XMLHttpRequest();return $}function CreateDom(){var $=new ActiveXObject("Msxml2.DOMDocument");return $}function GetDom(B){var A=getOs(),$;if(A=="MSIE"){$=CreateDom();$.loadXML(B)}else{$=document.implementation.createDocument("","",null);var _=new DOMParser();$=_.parseFromString(B,"text/xml")}return $}function getOs(){if(navigator.userAgent.indexOf("MSIE")>0)return"MSIE";else return"Standard"}function ClearArray(_){for(var $=_.length-1;$>=0;$--)_.pop()}function jumpDetail(_){var $="../"+_+"/"+_windCode+".shtml";window.location.href=$}function openDetail(_){var $="../"+_+"/"+_windCode+".shtml";window.open($);return false}function GetArrayIndex(_,A){for(var $=0;$<_.length;$++)if(_[$]==A)return $;return-1}function initTab_common(C,F,$,B){for(var _=0;_<F.length;_++){var D=_o(F[_]);if(_==0)D.className="tab bul";else if(_==F.length-1)D.className="tab bur";else D.className="tab";D.style.cursor="pointer";if(B){var E=_o("img"+F[_]);if(E!=undefined&&E!=null&&$&&_!=C)E.style.display="block";else E.style.display="none"}var A=_o("dv"+F[_]);if(A!=null)A.style.display="none";if(_==C)$=false;else $=true}}function search($){var B=_o("txtSearch"+$).value,_=getCommandText("t");if(_==null||_=="")_="1";if(B!=""){var A=_searchURL+MyEncodeUrl(B)+"&t="+_;window.location.href=A}else{alert("\u8bf7\u8f93\u5165\u67e5\u8be2\u5185\u5bb9");_o("txtSearch"+$).select()}}function opensec($,_){var A="",B=$.substring(0,$.indexOf("."));switch(_){case"a":A="stock";break;case"j":A="fund";break;case"x":A="hkstock";break}if(A!="")window.open("/home/"+A+"/html/"+$+".shtml?q="+B+"&t=1");return false}function txtSearchKeyPress(_,A){var $=window.event?window.event.keyCode:_.which;if($==13)search(A)}function GetCookie(B){var C=document.cookie,_=C.split("; ");for(var $=0;$<_.length;$++){var A=_[$].split("=");if(B==A[0]&&A[1]!=""&&A[1]!=null&&A[1]!=undefined)return DecodeCookie(A[1])}return""}function DecodeCookie(str){var strArr,strRtn="";strArr=str.split("~");for(var i=strArr.length-1;i>=0;i--){var tmp=strArr[i];if(tmp!="")strRtn+=String.fromCharCode(eval(tmp))}strArr=strRtn.split(",");return strArr[0]}function ReplaceEnter($){var A=_o($),_=A.innerHTML.indexOf("<");if(_!=-1)A.innerHTML=A.innerHTML.substr(_)}function setInnerHTML(_,$){if(document.all)_o(_).innerHTML=_o($).innerText;else _o(_).innerHTML=_o($).textContent}function GetCopyRight(){var $=new Date();return $.getYear()}function setSearchTab($){_tab=$;var _=_o("img"+$);if(_!=null){_.src="/images/s_"+$+"2.jpg";_.style.cursor="auto"}}function setTab2(){var _,$=getCommandText("t"),A=["","profile","news","research","blog","forum"];_=A[$];setSearchTab(_)}function search2(_){var C,B=_o("txtSearch").value,$=_o("txtSearch2").value;if(B!="")C=B;else if($!="")C=$;if(C!=""){var A=_searchURL+MyEncodeUrl(C)+"&t="+_;window.location.href=A}else alert("\u8bf7\u8f93\u5165\u67e5\u8be2\u5185\u5bb9")}