// JavaScript Document
function tab(name,index,count,className)
{
	for(i=0;i<count;i++)
	{
		var title=$(name+"title_" + i);
		var context = $(name+"context_" + i);
		if(title && title.className !="")
		{
			title.className="";
		}
		if(context)
		{
			context.style.display="none";
		}
	}
	$(name+"context_" + index).style.display="";
	$(name+"title_" + index).className=className;
}
function $(id)
{
	return document.getElementById(id);
}
/*
tab("news_",0,6,"pic01");
tab("wuchang_",0,5,"pic02");
tab("Life_",0,6,"pic03");
tab("wenshi_",0,2,"pic04");
tab("yake_",0,6,"pic05");*/
