// JavaScript Document
function SwitchNewsTags(id,num,count)
{
	ClearTagClasss(id,count);
	document.getElementById("tagname_" + id + num).className = "tagf";
	document.getElementById(id + num).className = "hexunShow";
}
function ClearTagClasss(id,count)
{
	for(i=1;i<=count;i++)
	{
		document.getElementById("tagname_" + id + i).className = "tagn";
		document.getElementById(id + i).className = "hexunHidden";
	}
}

/*债券*/
function ChangeIndexPic2(nIndex)
{
	if(nIndex == 1)
	{
		document.getElementById("indexhref2").href="http://bond.money.hexun.com/data/yield_curve.aspx";
		document.images["indexpic2"].src = "http://bond.money.hexun.com/gif/YieldIcon.jpg";
		
		document.getElementById("qx_zz").className="defbold";
		document.getElementById("qx_hd").className="defnormal";
		
	}
	if(nIndex == 2)
	{
		document.getElementById("indexhref2").href="http://bond.money.hexun.com/data/yield.aspx";
		document.images["indexpic2"].src = "http://bond.money.hexun.com/gif/small_gif/small_hw_ycs.gif";
		
		document.getElementById("qx_hd").className="defbold";
		document.getElementById("qx_zz").className="defnormal";
	}
}

/*黄金*/
function SelectTab1()
{

		if(document.getElementById('rtt1').innerHTML == '元/克图')
	{
		document.getElementById('rtt').src='http://www.kitco.cn/cn/live_charts/t24_au_ch_gr_182x116.gif';
		document.getElementById('rtt1').innerHTML = '美元/盎司';
		return;
	}

		if(document.getElementById('rtt1').innerHTML == '美元/盎司')
		{
			document.getElementById('rtt').src='http://www.kitco.cn/cn/live_charts/t24_au_ch_usoz_182x116.gif';
			document.getElementById('rtt1').innerHTML = '元/克图';
			return;
		}

}