function _showtable(tablename,tableorder,num)
{
	var table_id=tablename+'_'+tableorder;
	var showtable=document.getElementById(table_id);
	for(var i=1;i<=num;i++)
	{
		var temp=tablename+'_'+i;
		var temptable=document.getElementById(temp);
		temptable.style.display='none';
	}
	showtable.style.display='block';
}
function _hidetable(tablename,tableorder,num)
{
	var table_id=tablename+'_'+tableorder;
	var showtable=document.getElementById(table_id);
	for(var i=1;i<=num;i++)
	{
		var temp=tablename+'_'+i;
		var temptable=document.getElementById(temp);
		temptable.style.display='none';
	}
}
function _changeimg(tdname,tdorder,imgpath,num,type)
{
	var td_id=tdname+'_'+tdorder;
	var showtd=document.getElementById(td_id);
	if(type=='bk')
	{
		for(var i=1;i<=num;i++)
		{
			var temp=tdname+'_'+i;
			var temptd=document.getElementById(temp);
			temptd.background=imgpath+tdname+'_'+'off.jpg';
		}
		showtd.background=imgpath+tdname+'_'+'on.jpg';
	}
	else if(type=='img')
	{
		for(var i=1;i<=num;i++)
		{
			var temp=tdname+'_'+i;
			var temptd=document.getElementById(temp);
			temptd.src=imgpath+tdname+'_'+'off_'+i+'.jpg';
		}
		showtd.src=imgpath+tdname+'_'+'on_'+tdorder+'.jpg';
	}
}



function GetObj(objName){
if(document.getElementById){
return eval('document.getElementById("' + objName + '")');
}else if(document.layers){
return eval("document.layers['" + objName +"']");
}else{
return eval('document.all.' + objName);
}
}

function t1Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t1con"+i)&&GetObj("t1m"+i)){
GetObj("t1con"+i).style.display = 'none';
GetObj("t1m"+i).className = "t1menuOff";
GetObj("t1m"+i).style.background = 'url(images2008/center1_off.gif)';
//GetObj("t1m"+i).style.color = '#000000';
}
}
if(GetObj("t1con"+index)&&GetObj("t1m"+index)){
GetObj("t1con"+index).style.display = 'block';
GetObj("t1m"+index).className = "t1menuOn";
GetObj("t1m"+index).style.background = 'url(images2008/center1_on.gif)';
//GetObj("t1m"+index).style.color = '#ffffff';
}
}


function t2Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t2con"+i)&&GetObj("t2m"+i)){
GetObj("t2con"+i).style.display = 'none';
GetObj("t2m"+i).className = "t2menuOff";
GetObj("t2m"+i).style.background = 'url(images2008/right1_off.gif)';
//GetObj("t2m"+i).style.color = '#000000';
}
}
if(GetObj("t2con"+index)&&GetObj("t2m"+index)){
GetObj("t2con"+index).style.display = 'block';
GetObj("t2m"+index).className = "t2menuOn";
GetObj("t2m"+index).style.background = 'url(images2008/right1_on.gif)';
//GetObj("t2m"+index).style.color = '#ffffff';
}
}

function t3Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t3con"+i)&&GetObj("t3m"+i)){
GetObj("t3con"+i).style.display = 'none';
GetObj("t3m"+i).className = "t3menuOff";
GetObj("t3m"+i).style.background = 'url(images2008/left2_off.gif)';
//GetObj("t3m"+i).style.color = '#000000';
}
}
if(GetObj("t3con"+index)&&GetObj("t3m"+index)){
GetObj("t3con"+index).style.display = 'block';
GetObj("t3m"+index).className = "t3menuOn";
GetObj("t3m"+index).style.background = 'url(images2008/left2_on.gif)';
//GetObj("t3m"+index).style.color = '#ffffff';
}
}

function t4Menu(index,flag){
for(var i=0;i<7;i++){
if(GetObj("t4con"+i)&&GetObj("t4m"+i)){
GetObj("t4con"+i).style.display = 'none';
GetObj("t4m"+i).className = "t4menuOff";
GetObj("t4m"+i).style.background = 'url(images2008/left1_off.gif)';
//GetObj("t4m"+i).style.color = '#000000';
}
}
if(GetObj("t4con"+index)&&GetObj("t4m"+index)){
GetObj("t4con"+index).style.display = 'block';
GetObj("t4m"+index).className = "t4menuOn";
GetObj("t4m"+index).style.background = 'url(images2008/left1_on.gif)';
//GetObj("t4m"+index).style.color = '#ffffff';
}
}

function t5Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t5con"+i)&&GetObj("t5m"+i)){
GetObj("t5con"+i).style.display = 'none';
GetObj("t5m"+i).className = "t5menuOff";
GetObj("t5m"+i).style.background = 'url(images2008/left0_off.gif)';
//GetObj("t5m"+i).style.color = '#000000';
}
}
if(GetObj("t5con"+index)&&GetObj("t5m"+index)){
GetObj("t5con"+index).style.display = 'block';
GetObj("t5m"+index).className = "t5menuOn";
GetObj("t5m"+index).style.background = 'url(images2008/left0_on.gif)';
//GetObj("t5m"+index).style.color = '#ffffff';
}
}


function t6Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t6con"+i)&&GetObj("t6m"+i)){
GetObj("t6con"+i).style.display = 'none';
GetObj("t6m"+i).className = "t6menuOff";
GetObj("t6m"+i).style.background = 'url(images2008/right3_off.gif)';
//GetObj("t6m"+i).style.color = '#000000';
}
}
if(GetObj("t6con"+index)&&GetObj("t6m"+index)){
GetObj("t6con"+index).style.display = 'block';
GetObj("t6m"+index).className = "t6menuOn";
GetObj("t6m"+index).style.background = 'url(images2008/right3_on.gif)';
//GetObj("t6m"+index).style.color = '#ffffff';
}
}


function t7Menu(index,flag){
for(var i=0;i<7;i++){
if(GetObj("t7con"+i)&&GetObj("t7m"+i)){
GetObj("t7con"+i).style.display = 'none';
GetObj("t7m"+i).className = "t7menuOff";
GetObj("t7m"+i).style.background = 'url(images2008/center2_off.gif)';
//GetObj("t7m"+i).style.color = '#000000';
}
}
if(GetObj("t7con"+index)&&GetObj("t7m"+index)){
GetObj("t7con"+index).style.display = 'block';
GetObj("t7m"+index).className = "t7menuOn";
GetObj("t7m"+index).style.background = 'url(images2008/center2_on.gif)';
//GetObj("t7m"+index).style.color = '#ffffff';
}
}



function t9Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t9con"+i)&&GetObj("t9m"+i)){
GetObj("t9con"+i).style.display = 'none';
GetObj("t9m"+i).className = "t9menuOff";
//GetObj("t9m"+i).style.background = 'url("images2008/right4_off.gif")';
//GetObj("t9m"+i).style.color = '#EA6B35';
}
}
if(GetObj("t9con"+index)&&GetObj("t9m"+index)){
GetObj("t9con"+index).style.display = 'block';
GetObj("t9m"+index).className = "t9menuOn";
//GetObj("t9m"+index).style.background = 'url("images2008/right4_on.gif")';
//GetObj("t9m"+index).style.color = '#000000';
}
}