频道>理财资讯
function changenavbg(k)
{if(k==1)
{getObject('li1').className='onsec';}
else
{getObject('li1').className='unsec1';}
for(i=2;i<=7;i++)
{if(i==k)
{getObject('li'+i).className='onsec';}
else
{getObject('li'+i).className='unsec';}
}
}
function showSubmenu(n)
{var navID = new Array ("subnav_0","subnav_1")
if (n>-1)
{for (var i=0;i < navID.length;i++)
{if (n==i)
{getObject(navID[i]).style.display=""}
else
{getObject(navID[i]).style.display="none"}
}
}
else
{for (var i=0;i < navID.length;i++)
{getObject(navID[i]).style.display="none"}
}
}
function getObject(objectId)
{if(document.getElementById && document.getElementById(objectId))
{// W3C DOM
return document.getElementById(objectId);}
else if (document.all && document.all(objectId))
{// MSIE 4 DOM
return document.all(objectId);}
else if (document.layers && document.layers[objectId])
{// NN 4 DOM.. note: this won't find nested layers
return document.layers[objectId];}
else
{return false;}
}