﻿     //=====子栏目
   changeColor = function() {
	var lis = document.getElementById("subtitleLink").getElementsByTagName("span");
	var temp;
	for (var i=0; i<lis.length; i++) 
	{
		lis[i].onmouseover=function() 
		{
		    for (var j=0; j<lis.length; j++) 
	        {
	            if(lis[j].className=="tored")
	            {
	               lis[j].className="toold";
	               temp=j;
	            }
	          
	        }
			this.className="tored";
		}
		lis[i].onmouseout=function() 
		{
                //this.className=this.className.replace(new RegExp(" tored\\b"), "");
                this.className="toold";
	            lis[temp].className="tored";
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", changeColor);