
document.write("<table width=580 cellpadding=\"0\" cellspacing=\"0\">");
arrStock=js.skif.split(',');

//quote picutre
document.write("<tr><td height=\"30\" valign=\"middle\" align=\"center\"><br>");
document.write("<a href=\"http://quote.eastmoney.com/"+arrStock[1]+".html\" target=\"_blank\"><img src=\"http://hqpick.eastmoney.com/EM_Quote2007/PictureK.aspx?StockCode="+arrStock[1]+"&StockMarket="+arrStock[0]+"&StockStyle=0&StockLayer=2&StockCurve=9\" width=\"578\" height=\"276\" border=\"0\"></a>");
document.write("</td></tr>");

//quote info
  document.write("<tr>");
  document.write("<td align=center style=\"font-size:12px;\">");

  
  strColor="";
  if(arrStock[4]<0)
    strColor="color=green"
  if(arrStock[4]>0)
    strColor="color=red"
  if(arrStock[4]==0)
    strColor="color=black"
  document.write("现价：<font "+strColor+">"+arrStock[3]+"</font>&nbsp;");
  document.write("涨跌：<font "+strColor+">"+arrStock[4]+"</font>&nbsp;");
  document.write("涨幅：<font "+strColor+">"+arrStock[5]+"</font>&nbsp;");
  document.write("总手："+arrStock[6]+"&nbsp;");
  document.write("金额（万）："+arrStock[7]+"&nbsp;");
  document.write("换手率："+arrStock[12]);

  document.write("</td>");
  document.write("</tr>");
  
  document.write("<tr>");
  document.write("<td align=\"center\" style=\"padding-top:5px;\">");
  document.write("<img src=\"images/stkbt1.gif\" border=0 style=\"padding-right:5px;\" /><a href='http://quote.eastmoney.com/"+arrStock[1]+".html' target='_blank'><span style=\"font-size:12px;margin-bottom:5px;\">实时查询该股行情</span></a>&nbsp;&nbsp;");
  document.write("<img src=\"images/stkbt2.gif\" border=0 style=\"padding-right:5px;\" /><a href='http://guba.eastmoney.com/"+arrStock[1]+",guba.html' target='_blank'><span style=\"font-size:12px;\">进入"+arrStock[2]+"吧</span></a>&nbsp;&nbsp;");
  document.write("<img src=\"images/stkbt3.gif\" border=0 style=\"padding-right:5px;\" /><a href='http://so.eastmoney.com/index.aspx?Page=1&t=body&q="+arrStock[1]+"' target='_blank'><span style=\"font-size:12px;\">"+arrStock[2]+"最新资讯</span></a>&nbsp;&nbsp;");
  document.write("<img src=\"images/stkbt4.gif\" border=0 style=\"padding-right:5px;\" /><a href='http://quote.eastmoney.com/f1.aspx?code="+arrStock[1]+"&market="+arrStock[0]+"' target='_blank'><span style=\"font-size:12px;\">大单成交</a>");
  document.write("</td></tr>");

//byQuote list
var jsByQuote=js_infoq.idsif;
var jsByQuote_length = jsByQuote.length;
var arrQuote=new Array(jsByQuote_length);
for(i=0;i<jsByQuote_length;i++){
  arrQuote[i] = jsByQuote[i].split(',');
}

document.write("<style>");
document.write(".spByquote {float:left;width:150px;font-size:12px;}");
document.write(".spByquote a{color:blue;}");
document.write("</style>");
document.write("<tr><td>");
document.write("	<div style=\"float:left;margin:20px 20px;border:1px solid #ccc;background-color:#fff;]\">");
document.write("		<div style=\"float:left;padding:5px 20px;font-size:12px;font-weight:bold;border-right:1px solid #ccc;\">相关<br>股票</div>");
document.write("		<div style=\"float:left;padding-top:5px;padding-left:20px;\">");
			for(i=0;i<3;i++){
			  if(i >=  jsByQuote_length)
			    break;
			  strColor="color=black";
			  if(arrQuote[i][5]>0)
				  strColor="color=red";
			  if(arrQuote[i][5]<0)
				  strColor="color=green";
			  document.write("<div class=\"spByquote\"><a href=\"http://quote.eastmoney.com/"+arrQuote[i][1]+".html\" target=\"_blank\">"+arrQuote[i][2]+"</a>("+arrQuote[i][3]+" <font "+strColor+">"+arrQuote[i][4]+"</font>)</div>")
		  }
document.write("		  </div>");
document.write("		<div style=\"float:left;padding-left:20px;\">");
			for(i=3;i<6;i++){
			  if(i >=  jsByQuote_length)
			    break;
			  strColor="color=black";
			  if(arrQuote[i][5]>0)
			  	strColor="color=red";
			  if(arrQuote[i][5]<0)
			  	strColor="color=green";
			  document.write("<div class=\"spByquote\"><a href=\"http://quote.eastmoney.com/"+arrQuote[i][1]+".html\" target=\"_blank\">"+arrQuote[i][2]+"</a>("+arrQuote[i][3]+" <font "+strColor+">"+arrQuote[i][4]+"</font>)</div>")
		  }
document.write("			</div>");
document.write("		</div>");
document.write("</td></tr>");

document.write("</table><br>");