function menuBar()
{
	url = document.URL;
	pathType = 0;
	startIndex = 8;
	styleClass = "class='path_text'";
	menuText = "";

	path = url.substr(startIndex, url.length);
	pathName = path.split('/');

	if (pathName.length == 1)
		pathName = path.split('\\');

	pathSep = "&nbsp;&gt;&nbsp;"

	//menuText = "<a href='"+root+"/index.htm' " + styleClass + ">Home</a>";
		menuText = "<a href='"+root+"/index.htm'  >Home</a>";
	if (pathName.length == 2)
	{
		if (pathName[1] == 'grad_index.htm' || pathName[1] == 'grad_mba.htm' || pathName[1] == 'grad_master_of_scienice.htm' || pathName[1] == 'grad_executive_mba.htm' || pathName[1] == 'grad_mission.htm')
				menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a>";
	
	}
	
	if (pathName.length > 2)
	{
		if (pathName[1] == 'acy')
				menuText = menuText + pathSep + "<a href="+root+"/acy/index.htm " + styleClass + ">Accountancy</a>";
		if (pathName[1] == 'htm')
				menuText = menuText + pathSep + "<a href="+root+"/htm/index.htm " + styleClass + ">Hotel and Tourism Management</a>";
		if (pathName[1] == 'dse')
				menuText = menuText + pathSep + "<a href="+root+"/dse/index.htm " + styleClass + ">Decision Sciences & Managerial Economics</a>";
		if (pathName[1] == 'fin')
				menuText = menuText + pathSep + "<a href="+root+"/fin/index.htm " + styleClass + ">Finance</a>";
		if (pathName[1] == 'mgt')
				menuText = menuText + pathSep + "<a href="+root+"/mgt/index.htm " + styleClass + ">Management</a>";
		if (pathName[1] == 'mkt')
				menuText = menuText + pathSep + "<a href="+root+"/mkt/index.htm " + styleClass + ">Marketing</a>";
		if (pathName[1] == 'programmes')
				menuText = menuText + pathSep + "<a href="+root+"# " + styleClass + ">Programmes</a>";
		if (pathName[1] == 'research')
				menuText = menuText + pathSep + "<a href="+root+"/research/index.htm " + styleClass + ">Research</a>";
		if (pathName[1] == 'bba')
				menuText = menuText + pathSep + "<a href="+root+"/bba/index.htm " + styleClass + ">Undergraduate Programmes</a>";
		if (pathName[1] == 'alumni')
				menuText = menuText + pathSep + "<a href="+root+"/alumni/index.htm " + styleClass + ">Alumni</a>";
		if (pathName[1] == 'resources')
				menuText = menuText + pathSep + "<a href="+root+"/resources/academic_links.htm " + styleClass + ">Resources</a>";
		if (pathName[1] == 'apib')
				menuText = menuText + pathSep + "<a href="+root+"/apib/index.htm " + styleClass + ">APIB</a>";
		if (pathName[1] == 'mphilphd')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+ "<a href="+root+"/mphilphd/index.htm " + styleClass + ">Research</a>";
		if (pathName[1] == 'mscmkt')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mscmkt/index.htm " + styleClass + ">Master of Science in Marketing</a>";
		if (pathName[1] == 'mscfin')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mscfin/index.htm " + styleClass + ">Master of Science in Finance</a>";
		if (pathName[1] == 'mbafinance')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mbafinance/index.htm " + styleClass + ">MBA Programme in Finance</a>";
		if (pathName[1] == 'embachina')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/embachina/index.htm " + styleClass + ">Executive MBA in Xi'an</a>";
		if (pathName[1] == 'onemba')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/onemba/index.htm " + styleClass + ">OneMBA, Global Executive MBA Program</a>";
		if (pathName[1] == 'mbahealthc')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mbahealthc/index.htm " + styleClass + ">MBA Programme in Health Care</a>";
		if (pathName[1] == 'mscbe')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mscbe/index.htm " + styleClass + ">Master of Science in Business Economics</a>";
		if (pathName[1] == 'mscitm')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mscitm/index.htm " + styleClass + ">Master of Science in Info & Technology Management</a>";
		if (pathName[1] == 'mscglb')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mscglb/index.htm " + styleClass + ">Master of Science in Global Business</a>";
		if (pathName[1] == 'mscebm')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mscebm/index.htm " + styleClass + ">Master of Science in E-Business Management</a>";
		if (pathName[1] == 'apemba')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/apemba/index.htm " + styleClass + ">APEMBA</a>";
		if (pathName[1] == 'mbafin')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a> &gt; "+"<a href="+root+"/mbafin/index.htm " + styleClass + ">MBA Programme in Finance</a>";

	}
	

	if (pathName.length > 3)
	{
		if (pathName[2] == 'graduate')
			menuText = menuText + pathSep + "<a href="+root+"/grad_index.htm " + styleClass + ">Graduate Programmes</a>";
		if (pathName[2] == 'undergraduate')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/undergraduate/index.htm " + styleClass + ">Undergraduate Programmes</a>";
		if (pathName[2] == 'qfn')
			menuText = menuText + pathSep + "<a href="+root+"/fin/qfn/index.htm " + styleClass + ">Quantitative Finance programme</a>";
		if (pathName[2] == 'ifaa')
			menuText = menuText + pathSep + "<a href="+root+"/fin/ifaa/index.htm " + styleClass + ">Insurance, Financial & Actuarial Analysis</a>";
		if (pathName[2] == 'bba')
			menuText = menuText + pathSep + "<a href="+root+"/alumni/bba/index.htm " + styleClass + ">BBA Alumni</a>";
		if (pathName[2] == 'beta')
			menuText = menuText + pathSep + "<a href="+root+"/alumni/beta/index.htm " + styleClass + ">Beta Gamma Sigma</a>";
		if (pathName[2] == 'mrs')
			menuText = menuText + pathSep + "<a href="+root+"/mkt/mrs/index.htm " + styleClass + ">MRS</a>";
		if (pathName[2] == 'news')
			menuText = menuText + pathSep + "<a href="+root+"/htm/news/currentissue.asp " + styleClass + ">Newsletter</a>";

	}
	

	if (pathName.length > 4)
	{
		if (pathName[3] == 'research')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/research/index.htm " + styleClass + ">Research</a>";
		if (pathName[3] == 'market')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/mkt/index.htm " + styleClass + ">Master Of Science In Marketing</a>";
		if (pathName[3] == 'finance')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/fin/index.htm " + styleClass + ">Master Of Science In Finance</a>";
		if (pathName[3] == 'mbafinance')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/mbafinance/index.htm " + styleClass + ">MBA Programme In Finance</a>";
		if (pathName[3] == 'embachina')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/embachina/index.htm " + styleClass + ">Executive MBA in Xi'an</a>";
		if (pathName[3] == 'onemba')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/embachina/index.htm " + styleClass + ">OneMBA, Global Executive MBA Program</a>";
		if (pathName[3] == 'healthc')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/embachina/index.htm " + styleClass + ">MBA Programme In Health Care</a>";
		if (pathName[3] == 'econ')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/econ/index.htm " + styleClass + ">Master Of Science In Business Economics</a>";
		if (pathName[3] == 'info')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/info/index.htm " + styleClass + ">Master Of Science In Info & Technology Management</a>";

	}
	
	if (pathName.length > 5)
	{
		if (pathName[4] == 'mphil')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/research/mphil/index.htm " + styleClass + ">MPHIL</a>";
		if (pathName[4] == 'phd')
			menuText = menuText + pathSep + "<a href="+root+"/programmes/graduate/research/phd/index.htm " + styleClass + ">PHD</a>";

	}
/*
	if (pathName[1].indexOf('billquery') != -1)
	{
		menuText = menuText + pathSep + "<a href='" + menuLink_2_1_1 + "' " + styleClass + ">" + menuBarText_billquery + "</a>";
		sectionHeader = menuBarText_billquery;
	}
*/
	document.write(menuText);
}

function menuBar_c()
{
	url = document.URL;
	pathType = 0;
	startIndex = 8;
	styleClass = "class='path_text'";
	menuText = "";

	path = url.substr(startIndex, url.length);
	pathName = path.split('/');

	if (pathName.length == 1)
		pathName = path.split('\\');

	pathSep = "&nbsp;&gt;&nbsp;"

	menuText = "<a href='"+root+"/index.htm' " + styleClass + ">&#39318;&#38913;</a>";
	
	
	if (pathName.length > 2)
	{
		if (pathName[1] == 'bba')
				menuText = menuText + pathSep + "<a href="+root+"/bba/index_c.htm " + styleClass + ">&#26412;&#31185;&#29983;&#35506;&#31243;</a>";
	}
	

	document.write(menuText);
}
