<!--
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use

Modified by Terence Chan
*/

if (section=="home") currentSection = -1
else if (section=="about") currentSection = 0
else if (section=="news") currentSection = 1
else if (section=="investor") currentSection = 2
else if (section=="games") currentSection = 3
else if (section=="wireless") currentSection = 4
else if (section=="portal") currentSection = 5
else if (section=="advertising") currentSection = 6


var totalnav = 7;

var submenu=new Array();
var total=new Array(), sectionName=new Array;
var menulink=new Array();
var menuDesc= new Array();

//no. of menus per dropdown
total[0]=3, sectionName[0]="about";
total[1]=3, sectionName[1]="news";
total[2]=8, sectionName[2]="inv";
total[3]=5, sectionName[3]="games";
total[4]=1, sectionName[4]="wireless";
total[5]=1, sectionName[5]="portal";
total[6]=1, sectionName[6]="adv";

//menu links 0 (About Netease)
menulink[0]=new Array();
menulink[0][1]="/eng/about/overview.html";
menulink[0][2]="/eng/about/management.html";
menulink[0][3]="/eng/about/milestone.html";

menuDesc[0]=new Array();
menuDesc[0][1]="Overview";
menuDesc[0][2]="Management Team";
menuDesc[0][3]="Milestones";

//menu links 1 (News)
menulink[1]=new Array();
menulink[1][1]="http://corp.163.com/englishnews/financial.html";
menulink[1][2]="http://corp.163.com/englishnews/General.html";
menulink[1][3]="http://corp.163.com/englishnews/Press.html";
//menulink[1][4]="http://corp.163.com/englishnews/Product.html";

menuDesc[1]=new Array();
menuDesc[1][1]="Financial Releases";
menuDesc[1][2]="General Releases";
menuDesc[1][3]="Press Coverage";
//menuDesc[1][4]="Product News";

//menu links 2 (Investor Info)
menulink[2]=new Array();
menulink[2][1]="/eng/investor/fin_statement.html";
menulink[2][2]="/eng/investor/annual_report.html";
menulink[2][3]="/eng/investor/sec_filing.html";
menulink[2][4]="/eng/investor/analyst_coverage.html";
menulink[2][5]="/eng/investor/inv_presentation.html";
menulink[2][6]="/eng/investor/earnings_call.html";
menulink[2][7]="/eng/investor/code_of_conduct.html";
menulink[2][8]="/eng/investor/annual_shareholders_meeting.html";

menuDesc[2]=new Array();
menuDesc[2][1]="Financial Statements";
menuDesc[2][2]="Annual Reports";
menuDesc[2][3]="SEC Fillings";
menuDesc[2][4]="Analyst Coverage";
menuDesc[2][5]="Investor Presentations";
menuDesc[2][6]="Earnings Call";
menuDesc[2][7]="Code of Conduct";
menuDesc[2][8]="Annual shareholders' meeting";

//menu links 3 (Games)
menulink[3]=new Array();
menulink[3][1]="/eng/games/overview.html";
menulink[3][2]="/eng/games/westward_journey.html";
menulink[3][3]="/eng/games/fantasy_westward.html";
//menulink[3][4]="/eng/games/priston_tale.html";
menulink[3][4]="/eng/games/fly_for_fun.html";
menulink[3][5]="/eng/games/westward_journey3.html";

menuDesc[3]=new Array();
menuDesc[3][1]="Overview";
menuDesc[3][2]="Westward Journey Online II";
menuDesc[3][3]="Fantasy Westward Journey";
menuDesc[3][4]="Fly For Fun";
menuDesc[3][5]="Westward Journey 3";

//menu links 4 (Wireless)
menulink[4]=new Array();
menulink[4][1]="/eng/wireless/overview.html";

menuDesc[4]=new Array();
menuDesc[4][1]="Overview";

//menu links 5 (Internet Portal)
menulink[5]=new Array();
menulink[5][1]="/eng/portal/overview.html";

menuDesc[5]=new Array();
menuDesc[5][1]="Overview";

//menu links 6 (Advertising)
menulink[6]=new Array();
menulink[6][1]="/eng/advertising/overview.html";

menuDesc[6]=new Array();
menuDesc[6][1]="Overview";


//generator

for (i=0;i<=(totalnav-1);i++) {
	var tmpstr='<table width="100%" height="20" border="0" cellspacing="0" cellpadding="0"><tr><td width="6"><img src="/eng/images/spacer.gif" width="6" height="1"></td>';
	for (j=1;j<=total[i];j++) {
		if (currentSection==i && subO==j) {
			oflag="o";
			osStr1="<font color='#CCCCCC'>";
			osStr2="</font>";
		} else {
			oflag="n";
			osStr1="";
			osStr2="";
		}
		tmpstr += "<td><image src=/eng/images/spacer.gif width=3 height=1></td><td nowrap><a href=\""+
		menulink[i][j]+"\" class='navlinks'>"+osStr1+menuDesc[i][j]+osStr2+"</a></td><td width="+Math.floor(100/total[i])+"%></td>"
		/* tmpstr += "<td><image src=/eng/images/spacer.gif width=3 height=1></td><td><a href=\""+
		menulink[i][j]+"\"onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('nav2-"+
		j+"','','/eng/images/2nd_nav/"+sectionName[i]+j+"_o.gif',1)\"><img src=\"/eng/images/2nd_nav/"+sectionName[i]+
		j+"_"+oflag+".gif\" height=14 border=\"0\" name=\"nav2-"+j+"\"></a></td><td width="+Math.floor(100/total[i])+"%></td>" */
	}
	submenu[i]=tmpstr+'</tr></table>';
}

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which,f){
	clear_delayhide()
	thecontent=(which==-1)? "" : submenu[which]
	if (document.getElementById||document.all)
		menuobj.innerHTML=thecontent
	else if (document.layers){
		menuobj.document.write(thecontent)
		menuobj.document.close()
	}
	if (f) resetMenuOver();
}

function resetit(e){
	if (document.all&&!menuobj.contains(e.toElement)) {
		delayhide=setTimeout("showit(currentSection,true)",delay_hide);
	} else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) {
		delayhide=setTimeout("showit(currentSection,true)",delay_hide);
	} else {
		delayhide=setTimeout("showit(currentSection,true)",delay_hide);
	}
}

function clear_delayhide(){
	if (window.delayhide)
	clearTimeout(delayhide)
}

function contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
}

function resetMenuOver() {
	for (i=1;i<=totalnav;i++) {
		if (currentSection!=i-1) {
			x=MM_findObj("main_nav"+i);
			x.src = x.src.replace("_o.gif","_n.gif");
		} else {
			x=MM_findObj("main_nav"+i);
			x.src = x.src.replace("_n.gif","_o.gif");
		}
	}
}

function resetAllMenu() {
	for (i=1;i<=totalnav;i++) {
		x=MM_findObj("main_nav"+i);
		x.src = x.src.replace("_o.gif","_n.gif");
	}
}

//-->