//the menu 
a_menu_myAccount = new Array("My Course","courses.asp","Profile","profile.asp","Logout","logout.asp");
a_menu_courses = new Array("All Programmes","allCourse.asp","Core Programmes","coreProgrammes.asp","Skills-Based","skillsBased.asp","Industry Specific","industrySpecific.asp","Fully Customised","customised.asp","Study in England","studyInEngland.asp");
a_menu_method = new Array("Learning Process","learningpro.asp","Training Consultants","consultants.asp","Teachers","teachers.asp","OE Method","method.asp","GEM Materials","materials.asp","Online Consolidation","demo.asp","Needs Analysis","needsAnalysis.asp");
a_menu_club = new Array("About Culture Club","about.asp","Current Event","event.asp","Past Events","pastEvents.asp","Subscribe","subscribe.asp");
a_menu_alumni = new Array("About Alumni","about.asp","Students","students.asp","Members Directory","directory.asp");
a_menu_about = new Array("Company","companyInfo.asp","News & Events","newsevents.asp","Team","team.asp","Contact","contact.asp","Partners","partners.asp","Jobs","jobs.asp","Downloads","downloads.asp");

a_menuData = new Array("",a_menu_myAccount,a_menu_courses,a_menu_method,a_menu_club,a_menu_alumni,a_menu_about);

a_titlePic = new Array("","channel_1.gif","channel_2.gif","channel_3.gif","channel_4.gif","channel_5.gif","channel_6.gif");
title_pic = "../../SITEShared/images/channel_3.gif";

//---------------------
function showMenu(n_menuNum,n_itemNum){

	s_htmlStr = '<img src="../../SITEShared/images/' + a_titlePic[n_menuNum] + '" ><br>';
	s_htmlStr += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	for (i=1;i<=(a_menuData[n_menuNum].length+1)/2;i++){
		if(n_itemNum == i){
			s_htmlStr += '<td align="right"><img src="../../SITEShared/images/bulletWhite.gif" width="9" height="9">&nbsp; </td>';
			s_htmlStr += '<td><a href="' + a_menuData[n_menuNum][(i-1)*2+1] + '" class="linkWhiteMenu">' + a_menuData[n_menuNum][(i-1)*2] + '</a></td></tr>';
		}else{
			s_htmlStr += '<tr><td width="18%" align="right" valign="top"><img src="../../SITEShared/images/d1.gif" width="7" height="7">&nbsp; </td>';
			s_htmlStr += '<td width="82%"><a href="' + a_menuData[n_menuNum][(i-1)*2+1] + '" class="linkBalckMenu">' + a_menuData[n_menuNum][(i-1)*2] + '</a></td></tr>';
		}
	}
	s_htmlStr += '</table>';
	
	document.write(s_htmlStr);
}

function showAboutUsMenu(n_menuNum,n_itemNum){
	s_htmlStr = '<img src="../../SITEShared/images/' + a_titlePic[n_menuNum] + '" width="231" height="37"><br>';
	s_htmlStr += '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	for (i=1;i<=4;i++){
		s_htmlStr += '<tr>';
		if(n_itemNum == i){	
			s_htmlStr += '<td width="45" align="right"><img src="../../SITEShared/images/bulletWhite.gif" width="9" height="9">&nbsp; </td>';
			s_htmlStr += '<td width="70"><a href="' + a_menuData[n_menuNum][(i-1)*2+1] + '" class="linkWhiteMenu">' + a_menuData[n_menuNum][(i-1)*2] + '</a></td>';
		}else{
			s_htmlStr += '<td width="45" align="right" valign="top"><img src="../../SITEShared/images/d1.gif" width="7" height="7">&nbsp; </td>';
			s_htmlStr += '<td width="70"><strong><a href="' + a_menuData[n_menuNum][(i-1)*2+1] + '" class="linkBalckMenu">' + a_menuData[n_menuNum][(i-1)*2] + '</a></strong></td>';                  
		}
		//----
		if(a_menuData[n_menuNum][((i+4)-1)*2+1]!=null){
			if(n_itemNum == (i+4)){	
				s_htmlStr += '<td width="10" align="right"><img src="../../SITEShared/images/bulletWhite.gif" width="9" height="9">&nbsp; </td>';
				s_htmlStr += '<td width="70"><a href="' + a_menuData[n_menuNum][((i+4)-1)*2+1] + '" class="linkWhiteMenu">' + a_menuData[n_menuNum][((i+4)-1)*2] + '</a></td>';
			}else{
				s_htmlStr += '<td width="10" align="right" valign="top"><img src="../../SITEShared/images/d1.gif" width="7" height="7">&nbsp; </td>';
				s_htmlStr += '<td width="70"><strong><a href="' + a_menuData[n_menuNum][((i+4)-1)*2+1] + '" class="linkBalckMenu">' + a_menuData[n_menuNum][((i+4)-1)*2] + '</a></strong></td>';                  
			}
		}
		
		s_htmlStr += '</tr>';
	}
	s_htmlStr += '</table>';
	
	document.write(s_htmlStr);
}

//-----------------------------

function showTopLinks(){
	s_htmlStr = '<img src="../../SITEShared/images/topLinks.gif" border="0" usemap="#Map">';
	s_htmlStr += '<map name="Map">';
  	s_htmlStr += '<area shape="rect" coords="0,3,30,14" href="../myAccount/logout.asp">';
 	s_htmlStr += '<area shape="rect" coords="34,3,102,14" href="../myAccount/register.asp">';
 	s_htmlStr += '<area shape="rect" coords="116,1,145,15" href="../../../site_cn/SITEPages/main/index.asp">';
	s_htmlStr += '</map>';
	
	document.write(s_htmlStr);
}

function showFooter(){
	s_htmlStr = '&copy;2002-2009 Oxford English Training Limited. <a href="../footer/allRight.asp" class="linkWhite">All rights reserved.</a><br>';
	s_htmlStr += 'Use of this website signifies your agreement to our <a href="../footer/PrivacyPolicy.asp" class="linkWhite">Privacy Policy</a>.<br>';
    s_htmlStr += 'Hotline: 010-65669768(Beijing) 021-24193197(Shanghai) 0755-33305150(Shenzhen)  | <a href="../aboutUs/contact.asp" class="linkWhite">Contact Us</a> | <a href="../footer/sitemap.asp" class="linkWhite">Sitemap</a> ';

	document.write(s_htmlStr);
}

function CovertEnToGb(url){ 
	
	var i; 
	var newurl;
	url = url.toLowerCase();
	if(url.indexOf("/site/")>0){
		i = url.indexOf("/site/");
		newurl = url.substring(0,i) + "/site_cn/" + url.substring(i+6,url.length);
	}
	else{
		newurl = url;
	}
	return newurl;
} 