﻿// JScript 文件

function selectTag(tags,showContent,selfObj,tagContent,selectTag){
	
	//var tag = document.getElementById(tags).getElementsByTagName("li");
	var tag = document.getElementById(tags);
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	if(showContent=="tagContent0")
	 {   
	    document.getElementById (tags).style.backgroundImage="url(/images1/bg22_03.gif)";
	    document.getElementById (tags).style.backgroundRepeat="no-repeat";
	 }
	else
	{
	    document.getElementById (tags).style.backgroundImage="url(/images1/bg23_03.gif)";
	    document.getElementById (tags).style.backgroundRepeat="no-repeat";
	}
	for(i=0; j=document.getElementById(tagContent+i); i++){
		j.style.display = "none";
	}
	
	document.getElementById(showContent).style.display = "block";
	
}