var clickname = "youku";
var bolleanVal = true;
function $N(name) {
	return document.getElementsByName(name);
}
function changeStyle(obj, name, class1, class2) {
	var objs = $N(name);
	for (var i = 0; i < objs.length; i++) {
			//objs[i].className=class2;
			objs[i].style.backgroundColor="";
			objs[i].style.color="#ffffff";
			}
			//obj.className=class1;
			//if(obj.id!="swshouye"&&obj.id!="syxiufu"){
			obj.style.backgroundColor="#ffffff";
			obj.style.color="#000000";
			//}

}
function item_eve(obj, name, isNewWindow, url) {
	clickname = obj.id;
	bolleanVal = true;
	changeStyle(obj, name, "item_a_click", "item_a");
	if (url != null&&url != "") {
		if (isNewWindow && window.parent.parent.isIE()) {
			window.open(url);
		} else {
			window.parent.content_page.location = url;
		}
	}
}
function item_eve1(obj,name,isNewWindow,url){
    changeStyle(obj,name,"item_a_click","item_a");
}
function to_black(obj){
//alert("----------");
	if(obj.id!=clickname){
	//obj.className = "head_a_click";
	obj.style.backgroundColor = "white";
	obj.style.color = "#000000";
	obj.style.textDecoration = "none";
	}


}
function to_back(obj){
	if(bolleanVal == true){
	//obj.className = "head_a";
	obj.style.backgroundColor = "#949294";
	obj.style.color = "#000000";
	bolleanVal = false;
	
	}
	///alert("obj.id----------"+obj.id);
	//alert("clickname----------"+clickname);
	if(obj.id!=clickname){//alert(obj.id+"---------------"+clickname);
	//obj.className = "head_a";
	obj.style.backgroundColor = "";
	obj.style.color = "#ffffff";

	}else{
	obj.style.backgroundColor = "#ffffff";
	obj.style.color = "#000000";
	}
}

function item_load(id){
	var obj = document.getElementById(id);
	clickname = id;
	
	bolleanVal = true;
	obj.style.backgroundColor = "#ffffff";
	obj.style.color = "#000000";

}