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('cbu01.gif','101','0','1','/english/news/TVNews/index.html')
ChanItem[2 ]=new MenuStr('cbu02.gif','102','0','1','/english/news/China/index.html')
ChanItem[3 ]=new MenuStr('cbu03.gif','103','0','1','/english/news/NewsFeatures/index.html')
ChanItem[4 ]=new MenuStr('cbu04.gif','104','0','0','/english/news/TopNewsReview/index.html')
ChanItem[5 ]=new MenuStr('cbu05.gif','105','0','0','/english/news/Video/index.html')

ChanItem[6 ]=new MenuStr('Morning News','10101','101','0','/english/news/TVNews/MorningNews/index.html')                        
ChanItem[7 ]=new MenuStr('Noon News','10102','101','0','/english/news/TVNews/NoonNews/index.html')
ChanItem[8 ]=new MenuStr('Afternoon News','10103','101','0','/english/news/TVNews/AfternoonNews/index.html')

ChanItem[9]=new MenuStr('Politics','10201','102','0','/english/news/China/Politics/index.html')
ChanItem[10]=new MenuStr('Finance & Business','10202','102','0','/english/news/China/FinanceABusiness/index.html')
ChanItem[11]=new MenuStr('Edu/Sci/Cul','10203','102','0','/english/news/China/EduASciACul/index.html')

ChanItem[12]=new MenuStr('China','10301','103','0','/english/news/NewsFeatures/China/index.html')
ChanItem[13]=new MenuStr('World','10302','103','0','/english/news/NewsFeatures/World/index.html')
ChanItem[14]=new MenuStr('Finance & Business','10303','103','0','/english/news/NewsFeatures/FinanceABusiness/index.html')
ChanItem[15]=new MenuStr('Culture & Sports','10304','103','0','/english/news/NewsFeatures/CultureASports/index.html')

img1=new Image()
img2=new Image()


img1.src='/english/news/images/bj01.gif'
img2.src='/english/news/images/bj02.gif'


chans1="<img src=/english/news/images/c.gif width=1 height=5><br><table width=131 border=0 cellpadding=0 cellspacing=0><tr><td height=23>"
chans2="<a href="
chans3=""
chans5=" onmouseover=chanmover("
chans51=") onmouseout=chanmout("
chans6=")><img src=/english/news/images/"
chans7=" width=131 height=23 border=0></a></td></tr><tr><td height=1><img src=/english/news/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=131 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=/english/news/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)
{
	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)
{
	if(curchanmenu!=nvalue)
	{
		
		if(curtempmenu!='000')
		{
			eval("cdiv"+curtempmenu+".style.display='none'")
			curtempmenu='000'
		}
	}
}


