﻿//idShow-要显示的ID
//idHid -要隐藏的ID
function ShowDiv(idShow,idHid)
{
	try
	{
		eval("document.getElementById('btn"+idShow+"').className='btn1 font14Green'");
		eval("document.getElementById('block"+idShow+"').style.display='block'");
		eval("document.getElementById('btn"+idHid+"').className='btn2 font14Green'");
		eval("document.getElementById('block"+idHid+"').style.display='none'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
function ShowDiv1(idShow,idHid)
{
		try
	{
		eval("document.getElementById('btn"+idShow+"').className='btn3 fontGreen'");
		eval("document.getElementById('block"+idShow+"').style.display='block'");
		eval("document.getElementById('btn"+idHid+"').className='btn4 fontGreen'");
		eval("document.getElementById('block"+idHid+"').style.display='none'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
function ShowDiv2(idShow,idHid)
{
	try
	{	
	eval("document.getElementById('btn"+idShow+"').className='btn5 fontGreen'");
	eval("document.getElementById('block"+idShow+"').style.display='block'");
	eval("document.getElementById('btn"+idHid+"').className='btn6 fontGreen'");
	eval("document.getElementById('block"+idHid+"').style.display='none'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
function ShowDiv3(idShow,idHid1,idHid2)
{
	try
	{
	eval("document.getElementById('btn"+idShow+"').className='btn7 fontGreen'");
	eval("document.getElementById('block"+idShow+"').style.display='block'");
	eval("document.getElementById('btn"+idHid1+"').className='btn8 fontGreen'");
	eval("document.getElementById('block"+idHid1+"').style.display='none'");
	eval("document.getElementById('btn"+idHid2+"').className='btn8 fontGreen'");
	eval("document.getElementById('block"+idHid2+"').style.display='none'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
function ShowDiv3_1(idShow,idHid1,idHid2)
{
	try
	{
	eval("document.getElementById('btn"+idShow+"').className='btn7_1 fontGreen'");
	eval("document.getElementById('block"+idShow+"').style.display='block'");
	eval("document.getElementById('btn"+idHid1+"').className='btn8_1 fontGreen'");
	eval("document.getElementById('block"+idHid1+"').style.display='none'");
	eval("document.getElementById('btn"+idHid2+"').className='btn8_1 fontGreen'");
	eval("document.getElementById('block"+idHid2+"').style.display='none'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
function ShowDiv4(idShow,idHid)
{
	try
	{
	eval("document.getElementById('btn"+idShow+"').className='btn10'");
	eval("document.getElementById('block"+idShow+"').style.display='block'");
	eval("document.getElementById('btn"+idHid+"').className='btn11'");
	eval("document.getElementById('block"+idHid+"').style.display='none'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
//主要用于中间显示点击排行(图片)
function ShowDiv5(idShow,idHid1,idHid2)
{
	try
	{
	eval("document.getElementById('block"+idShow+"').style.display='block'");
	eval("document.getElementById('btn"+idShow+"').className='btn12'");
	eval("document.getElementById('block"+idHid1+"').style.display='none'");
	eval("document.getElementById('btn"+idHid1+"').className='btn13'");
	eval("document.getElementById('block"+idHid2+"').style.display='none'");
	eval("document.getElementById('btn"+idHid2+"').className='btn13'");
	}
	catch(e)
	{}
}

//idShow-要显示的ID
//idHid -要隐藏的ID
//主要用于首页中间代码列表
function ShowList(idShow,idHid1,idHid2)
{
	try
	{
	eval("document.getElementById('block"+idShow+"').style.display='block'");
	eval("document.getElementById('btn"+idShow+"').className='btnList1'");
	eval("document.getElementById('block"+idHid1+"').style.display='none'");
	eval("document.getElementById('btn"+idHid1+"').className='btnList2'");
	eval("document.getElementById('block"+idHid2+"').style.display='none'");
	eval("document.getElementById('btn"+idHid2+"').className='btnList2'");
	}
	catch(e)
	{}
}
