/*
 * Compressed by JSA(www.xidea.org)
 */
function rowToCol(J,_){var E=1,I=GetDom(_),F=I.documentElement.childNodes.length,B=document.getElementById(J);for(var D=0;D<F;D++){currNode=I.documentElement.childNodes[D];childNodes=currNode.childNodes;for(var H=0;H<childNodes.length;H++){var A;if(E==0)A=B.insertRow(-1);else A=B.rows[H];var C=A.insertCell(-1),$=childNodes[H];C.innerHTML=$.firstChild.nodeValue;var G=$.getAttribute("align");if(G==null||G=="")G="right";C.setAttribute("align",G)}E++}}function rowToColNoAdd(I,E){var A=1,H=GetDom(E),C=H.documentElement.childNodes.length,G=document.getElementById(I);for(var _=0;_<C;_++){currNode=H.documentElement.childNodes[_];childNodes=currNode.childNodes;for(var D=0;D<childNodes.length;D++){var F=G.rows[D],$=F.cells[A],B=childNodes[D];$.innerHTML=B.firstChild.nodeValue}A++}}function dynamicCol(H,G,C){var A=0,D=A,_=0,F=H;for(var B=0;B<G.length;B++){if(D==C){_++;D=A}var E;if(_==0)E=F.insertRow(-1);else E=F.rows[D];var $=E.insertCell(-1);$.setAttribute("noWrap","true");$.innerHTML=G[B];D++}}function ProcessBigNum($){var A,_="";if($=="")return"--";if($>10000){A=$/10000;_="\u4ebf"}else _="\u4e07";return A.toFixed(2)+_}function setTitle(B,A,$,_){if($=="")document.title="Windin\u8d44\u6599\u641c\u7d22-"+B;else document.title="Windin\u8d44\u6599\u641c\u7d22-"+B+" "+$}function setDetailTitle(B,A,$,_){if($==""){document.title="Windin\u8d44\u6599\u641c\u7d22-"+B;_.value=B}else{document.title="Windin\u8d44\u6599\u641c\u7d22-"+B+" "+$;_.innerHTML=B+"\u7684"+$}}function getRealNews(){RealNews.GetRealNews(_windCode,fillRealNews)}function fillRealNews(B){_o("tdWaitRealNews").style.display="none";var A=B.value,_;if(A!=null){for(var $=A.length-1;$>=0;$--){_=_o("tbRealNews").insertRow(1);_=addCell(_,1);_.cells[0].innerHTML=A[$].C+"&nbsp;&nbsp;"+"<a href=\""+A[$].SNT+"&ad=1\" target=_blank>"+A[$].T+"</a>&nbsp;&nbsp;"+A[$].D}}else{_=_o("tbRealNews").insertRow(1);_=addCell(_,1);_.cells[0].innerHTML="(\u65e0)";_.cells[0].align="center"}}function getBulletin(){Bulletin.GetBulletin(_windCode,fillBulletin)}function fillBulletin(C){_o("tdWaitBulletin").style.display="none";var B=C.value,A;if(B!=null){for(var $=B.length-1;$>=0;$--){A=_o("tbBulletin").insertRow(1);A=addCell(A,1);var _=B[$].URL.replace("host.wind.com.cn","114.80.212.57");A.cells[0].innerHTML="<a href=\""+_+"\" target=_blank>"+B[$].T+"</a>&nbsp;&nbsp;"+B[$].D}}else{A=_o("tbBulletin").insertRow(1);A=addCell(A,1);A.cells[0].innerHTML="(\u65e0)";A.cells[0].align="center"}}function addCell(A,_){for(var $=0;$<_;$++)A.insertCell(-1);return A}function callGetQuoteData($){setTimeout("callGetQuoteData(_windCode)",180000);StockAjaxProxy.GetQuoteData($,getQuoteDataCallBack)}function $import(B,_){var D,$,C=document.getElementsByTagName("script");for($=0;$<C.length;$++)if(C[$].src&&C[$].src.indexOf(B)!=-1){C[$].src=B;return C[$]}D=document.createElement("script");D.type="text/javascript";D.src=B;var A=document.getElementsByTagName("head")[0];A.appendChild(D);return D}function GetRandom($){return Math.floor(Math.random()*$+1)}