var gbXML=false; var gaDef=new Array(); var gsBgColor="#ffffff"; var gsBgImage=""; var goFont=null; var goHoverFont=null; var gsMargin="2pt"; var gsIndent="2pt"; var gsActiveBgColor="#cccccc"; var gbWhGHost=false; function setBackground(sBgImage) { gsBgImage=sBgImage; } function setBackgroundcolor(sBgColor) { gsBgColor=sBgColor; } function setFont(sType,sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration) { var vFont=new whFont(sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration); if(sType=="Normal") goFont=vFont; else if(sType=="Hover") goHoverFont=vFont; } function setActiveBgColor(sBgColor) { gsActiveBgColor=sBgColor; } function setMargin(sMargin) { gsMargin=sMargin; } function setIndent(sIndent) { gsIndent=sIndent; } function writeOneItem(oHTML,bDown,aDataCon,aCurIdxSet,n,aPos,nLevel) { var sHTML=""; var nIdxSet=aCurIdxSet[n]; var nIIdx=aPos[nIdxSet]; var sRawKName = getItemName(aDataCon,nIdxSet,nIIdx); var sKName=_textToHtml(sRawKName); var nIndex=insertDef(sKName,_textToHtml_nonbsp(getDef(aDataCon,nIdxSet,nIIdx))); if(nLevel==1){ sHTML+="

"+sKName+"

"; } oHTML.addHTML(sHTML,1,bDown,true,sRawKName); } function insertDef(sKName,sDef) { var nLength=gaDef.length var oGlo=new nameDefPair(sKName,sDef); gaDef[nLength]=oGlo; return nLength; } function showDef(nDef) { if(nDefnIIdx) return aDataCon[nIdxSet].aKs[nIIdx].sDef; else return null; } function getItemName(aDataCon,nIdxSet,nIIdx) { if(nIdxSetnIIdx) return aDataCon[nIdxSet].aKs[nIIdx].sName; else return null; } function window_OnLoad() { if(gsBgImage&&gsBgImage.length>0) document.body.background=gsBgImage; if(gsBgColor&&gsBgColor.length>0) document.body.bgColor=gsBgColor; document.body.insertAdjacentHTML("beforeEnd",writeLoadingDiv()); loadGlo(); var oMsg=new whMessage(WH_MSG_SHOWGLO,this,1,null) SendMessage(oMsg); } function loadGlo() { if(!gbReady) { var oResMsg=new whMessage(WH_MSG_GETPROJINFO,this,1,null); if(SendMessage(oResMsg)&&oResMsg.oParam) { gbReady=true; var oProj=oResMsg.oParam; var aProj=oProj.aProj; gbXML=oProj.bXML; if(aProj.length>0) { var sLangId=aProj[0].sLangId; for(var i=0;i