function MenuStr(name,value,provalue,hasmore,fileurl)  //***频道导航菜单结构***
{
	this.name=name			
	this.value=value		//菜单代号
	this.provalue=provalue		//上级菜单代号
	this.hasmore=hasmore		//'1'--有下级目录；'0'--最终项目
	this.fileurl=fileurl
}

ChanItem=new Array()
ChanItem[1 ]=new MenuStr('item01.jpg','101','0','0','/english/TouchChina/Express/index.html')
ChanItem[2 ]=new MenuStr('item02.jpg','102','0','1','/english/TouchChina/RediscoveringChina/RediscoveringChina.html')
ChanItem[3 ]=new MenuStr('item03.jpg','103','0','1','/english/TouchChina/GloryofChineseCivilization/index.html')
ChanItem[4 ]=new MenuStr('item04.jpg','104','0','0','/english/TouchChina/China20th/index.html')
ChanItem[5 ]=new MenuStr('item05.jpg','105','0','1','/english/TouchChina/CenterStage/index.html')
ChanItem[6 ]=new MenuStr('item06.jpg','106','0','1','/english/TouchChina/ChineseCooking/index.html')
ChanItem[7 ]=new MenuStr('item07.jpg','107','0','0','/english/tc/sanji07.html')
ChanItem[8 ]=new MenuStr('item08.jpg','108','0','0','/english/TouchChina/School/index.html')

var tempid=8 

tempid++
ChanItem[tempid]=new MenuStr('Gansu','102'+((1>9)?'1':'01'),'102','0','/english/TouchChina/RediscoveringChina/20020514/100075.html')

tempid++
ChanItem[tempid]=new MenuStr('Qinghai','102'+((2>9)?'2':'02'),'102','0','/english/TouchChina/RediscoveringChina/20020509/100032.html')

tempid++
ChanItem[tempid]=new MenuStr('Tibet','102'+((3>9)?'3':'03'),'102','0','/english/TouchChina/RediscoveringChina/20020516/100080.html')

tempid++
ChanItem[tempid]=new MenuStr('Xinjiang','102'+((4>9)?'4':'04'),'102','0','/english/TouchChina/RediscoveringChina/20020621/100068.html')

tempid++
ChanItem[tempid]=new MenuStr('Inner Mongolia','102'+((5>9)?'5':'05'),'102','0','/english/TouchChina/RediscoveringChina/20020724/100048.html')

tempid++
ChanItem[tempid]=new MenuStr('Guangxi ','102'+((6>9)?'6':'06'),'102','0','/english/TouchChina/RediscoveringChina/20020820/100042.html')

tempid++
ChanItem[tempid]=new MenuStr('Guizhou','102'+((7>9)?'7':'07'),'102','0','/english/TouchChina/RediscoveringChina/20020906/100011.html')

tempid++
ChanItem[tempid]=new MenuStr('Shannxi','102'+((8>9)?'8':'08'),'102','0','/english/TouchChina/RediscoveringChina/20020913/100455.html')

tempid++
ChanItem[tempid]=new MenuStr('Yunnan','102'+((9>9)?'9':'09'),'102','0','/english/TouchChina/RediscoveringChina/20020913/100441.html')

tempid++
ChanItem[tempid]=new MenuStr('Chongqing','102'+((10>9)?'10':'010'),'102','0','/english/TouchChina/RediscoveringChina/20021015/100211.html')

tempid++
ChanItem[tempid]=new MenuStr('Sichuan','102'+((11>9)?'11':'011'),'102','0','/english/TouchChina/RediscoveringChina/20021018/100358.html')

tempid++
ChanItem[tempid]=new MenuStr('Focus on orphans...','102'+((12>9)?'12':'012'),'102','0','#')



tempid++
ChanItem[tempid]=new MenuStr('Historical Celebrities','10301','103','1','/english/tc/renwu/index.html')
tempid++
ChanItem[tempid]=new MenuStr('Historical Sites','10302','103','0','/english/TouchChina/GloryofChineseCivilization/HistoricalSites/index.html')
tempid++
ChanItem[tempid]=new MenuStr('Folk Arts','10303','103','0','/english/TouchChina/GloryofChineseCivilization/FolkArts/index.html')
tempid++
ChanItem[tempid]=new MenuStr('Literature','10304','103','0','/english/TouchChina/GloryofChineseCivilization/Literature/index.html')
tempid++
ChanItem[tempid]=new MenuStr('Education','10305','103','0','/english/TouchChina/GloryofChineseCivilization/Education/index.html')
tempid++
ChanItem[tempid]=new MenuStr('Science & Technology','10306','103','0','/english/TouchChina/GloryofChineseCivilization/ScienceTechnology/index.html')

//tempid++
//ChanItem[tempid]=new MenuStr('Beijing Opera','10501','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Movies','10502','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Modern Chinese Drama','10503','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Acrobatics','10504','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Dance','10505','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Folk Song','10506','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Folk Music','10507','105','0','sanji/sanji.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Costume','10508','105','0','sanji/sanji.html')

//tempid++
//ChanItem[tempid]=new MenuStr('Chinese Style Cookbook','10601','106','0','sanji/more.html')
//tempid++
//ChanItem[tempid]=new MenuStr('History of Chinese Cooking','10602','106','0','sanji/more.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Specials','10603','106','0','sanji/more.html')
//tempid++
//ChanItem[tempid]=new MenuStr('What\'s New','10604','106','0','sanji/more.html')
//tempid++
//ChanItem[tempid]=new MenuStr('Chinese Cooking','10605','106','0','sanji/more.html')

//tempid++
//ChanItem[tempid]=new MenuStr('','10801','108','0','nf4.html')


img1=new Image()
img2=new Image()


img1.src='/engchannel/TouchChina/RediscoveringChina/images/cbg01.jpg'
img2.src='/engchannel/TouchChina/RediscoveringChina/images/cc.gif'

chans1="<table width=158 border=0 cellpadding=0 cellspacing=0><tr><td height=23>"
chans2="<a href="
chans3=""
chans5=" onmouseover=chanmover("
chans51=") onmouseout=chanmout("
chans6=")><img src=/engchannel/TouchChina/RediscoveringChina/images/"
chans7=" border=0></a></td></tr><tr><td height=1><img src=/engchannel/TouchChina/RediscoveringChina/images/c.gif width=1 height=1></td></tr></table>"


chandivs1="<div style='display:none' id=cdiv"
chandivs11=" onmouseover=chanmover("
chandivs12=") onmouseout=chanmout("
chandivs2=")>"
chandivs21="<table width=158 border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=#B0D3F3 height=18 id=turn"
chandivs22=">&nbsp;&nbsp;<a href="

chans221=" onmouseover='turn"
chans2211=".background=img2.src'"
chans222="  onmouseout='turn"
chans2221=".background=img1.src'"
chans223=""

chandivs24=">"
chandivs25="</a></td></tr><tr><td height=1><img src=/engchannel/TouchChina/RediscoveringChina/images/c.gif width=1 height=1></td></tr></table>"
chandivs3="</div>"

function leftwrt()
{
	
	
	
	
	
	stemp=''
	for(i=1;i<ChanItem.length;i++)
	{
		if(ChanItem[i].provalue==0)
		{
			ii=ChanItem[i].value         //本级菜单代号
			if(!ChanItem[i].fileurl)	
				stemp+=chans1+chans2+"javascript:void(null)"+chans5+ii+chans51+ii+chans6+ChanItem[i].name+chans7
			else
				stemp+=chans1+chans2+ChanItem[i].fileurl+chans5+ii+chans51+ii+chans6+ChanItem[i].name+chans7
			if(ChanItem[i].hasmore)        //是否有更多页
			{
				stemp+=chandivs1+ii+chandivs11+ii+chandivs12+ii+chandivs2 //开始写下面菜单
				
				
				for(j=1;j<ChanItem.length;j++)
				{
					
					
					if(ChanItem[j].provalue==ii)
					{
						stemp+=chandivs21+j+chandivs22+ChanItem[j].fileurl+chans221+j+chans2211+chans222+j+chans2221+chans223+chandivs24+ChanItem[j].name+chandivs25
					}
				}
				stemp+=chandivs3
			}
		}
	}
	document.write(stemp)
}



curchanmenu='000'
curtempmenu='000'

function chanclk(nvalue)
{
	if(curchanmenu!='000')
	{
		eval("cdiv"+curchanmenu+".style.display='none'")
		
		if(curchanmenu==nvalue)
		{
			curchanmenu='000'
			return false;
		}
	}
	if(curchanmenu!=nvalue) 
	{
		eval("cdiv"+nvalue+".style.display='block'")
		curchanmenu=nvalue
	}
}



/*

function chanmover(nvalue)
{
	
			eval("cdiv"+"10301"+".style.display='block'")
			
	
}

function chanmout(nvalue)
{
	
	
		eval("cdiv"+"10301"+".style.display='none'")
	
}

*/


function chanmover(nvalue)
{
	if(curchanmenu!=nvalue)
	{
		if(curtempmenu!=nvalue) 
		{
			if(curtempmenu!='000') eval("cdiv"+curtempmenu+".style.display='none'")
			eval("cdiv"+nvalue+".style.display='block'")
			curtempmenu=nvalue
		}
		
	}
}

function chanmout(nvalue)
{
	
	//alert(curchanmenu+"!="+nvalue)
	if(curchanmenu!=nvalue)
	{
		
		if(curtempmenu!='000')
		{
			eval("cdiv"+curtempmenu+".style.display='none'")
			curtempmenu='000'
		}
	}
}

