function doMenu()
{
document.write (
'<div id="masterdiv">'+
<!--------Menu 1---------->
//<img src="../Images/arrow.gif" width="10" height="13">  <img src="../Images/circle.gif" width="8" height="8" border="0"> 
'  <div class="menutitle" onclick="SwitchMenu(\'sub1\')"><img src="../Images/ICO_240.gif" width="10" height="10"> About College</div>'+
'  <span class="submenu" id="sub1">'+
'    <a href="background.html"><img src="../Images/circle.gif" width="8" height="8" border="0"> Background</a><BR />'+
'    <a href="patron.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Patron</a><BR />'+
'    <a href="motto.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Motto & Slogan</a><BR />'+
'    <a href="constitution.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Constitution</a><BR />'+
'    <a href="building.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Buildings &amp; Facilities</a><BR />'+
'  </span>'+
<!--------Menu 2---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub2\')"><img src="../Images/bg_0015.gif" alt="Organization" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub2\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Organization</div>'+
'  <span class="submenu" id="sub2">'+
'    <a href="trustees_intro.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Board of Trustees</a><BR />'+
'    <a href="assembly_intro.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Assembly of Fellows</a><BR />'+
'    <a href="standing_intro.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Standing Committee</a><BR />'+
'    <a href="assembly_com.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Committees under the <BR /><img src="../Images/space.gif" width="12" height="10" border="0">Assembly of Fellows</a><BR />'+
'  </span>'+
<!--------Menu 3---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub3\')"><img src="../Images/bg_0016.gif" alt="Staff" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub3\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Staff</div>'+
'  <span class="submenu" id="sub3">'+
'    <a href="department.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Department <BR /><img src="../Images/space.gif" width="12" height="10" border="0">Co-ordinators</a><BR />'+
'    <a href="college_admin.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> College Administrators <BR /><img src="../Images/space.gif" width="14" height="10" border="0">and Academics</a><BR />'+
'    <a href="../scsa/index.html" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Staff Association</a><BR />'+
'  </span>'+
<!--------Menu 4---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub4\')"><img src="../Images/bg_0015.gif" alt="Student" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub4\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Student</div>'+
'  <span class="submenu" id="sub4">'+
'    <a href="student_dev.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Student Development</a><BR />'+
'    <a href="welfare.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Student Welfare</a><BR />'+
'    <a href="student_activities.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Student Activities</a><BR />'+
'    <a href="ge.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> General Education</a><BR />'+
'    <a href="../hostel/index.html" target="_blank"><img src="../Images/circle.gif" width="8" height="8" border="0"> Student Hostel</a><BR />'+
'  </span>'+
<!--------Menu 5---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub5\')"><img src="../Images/bg_0015.gif" alt="Alumni" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub5\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Alumni</div>'+
'  <span class="submenu" id="sub5">'+
'    <a href="http://www.alumni.cuhk.edu.hk/aasc/index.html" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Alumni Website</a><BR />'+
'  </span>'+
<!--------Menu 6---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub6\')"><img src="../Images/bg_0015.gif" alt="Publication" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub6\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Publication & &nbsp;&nbsp;&nbsp;Speech</div>'+
'  <span class="submenu" id="sub6">'+
'    <a href="../handbook/09-10_HandBook_E.pdf" ><img src="../Images/circle.gif" width="8" height="8" border="0"> College Handbook</a><BR />'+
'    <a href="shawlink.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Shaw Link</a><BR />'+
'    <a href="http://mmlab.itsc.cuhk.edu.hk/eNewsASP/app/article.aspx?appid=4" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Shaw Net</a><BR />'+
'    <a href="speech.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Speech</a><BR />'+
'    <a href="speech.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> High Table Dinners</a><BR />'+
'  </span>'+
<!--------Menu 7---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub7\')"><img src="../Images/bg_0015.gif" alt="Download &amp; Online" width="150" height="20"></div>'+

'  <div class="menutitle"><img src="../Images/ICO_240.gif" width="10" height="10"> <a href="downloadApp.html">Download &amp; Online <BR /><img src="../Images/space.gif" width="14" height="10" border="0">Application</a>'+
'  </div>'+
//'  <div class="menutitle" onclick="SwitchMenu(\'sub7\')">Download &amp; Online Application </div>'+
//'  <span class="submenu" id="sub7">'+
//'    <a href="downloadApp.html" >Download &amp; Online Application </a><BR />'+
//'  </span>'+
<!--------Menu 8---------->
//'  <a href="download.html"><img src="images/menu/download.gif" alt="¤U¸ü°Ï" width="150" height="20" border="0"></a>'+
//'  <div class="menutitle" onclick="SwitchMenu(\'sub8\')"><img src="../Images/bg_0015.gif" alt="News & Update" width="150" height="20"></div>'+

'  <div class="menutitle"><img src="../Images/ICO_240.gif" width="10" height="10"> <a href="whatsnew.html">News & Update</a>'+
'  </div>'+
//'  <div class="menutitle" onclick="SwitchMenu(\'sub8\')">News & Update </div>'+
//'  <span class="submenu" id="sub8">'+
//'    <a href="whatsnew.html" >News & Update </a><BR />'+
//'  </span>'+

<!--------Menu 9---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub9\')"><img src="../Images/bg_0015.gif" alt="Link" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub9\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Link</div>'+
'  <span class="submenu" id="sub9">'+
'    <a href="http://www.cuhk.edu.hk/v5/en/" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> CUHK</a><BR />'+
'    <a href="http://www.cuhk.edu.hk/ccc/" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Chung Chi College</a><BR />'+
'    <a href="http://naweb.na.cuhk.edu.hk/?lang=eng" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> New Asia College</a><BR />'+
'    <a href="http://www.cuhk.edu.hk/uc/indexe.html" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> United College</a></a><BR />'+
'    <a href="http://www.cuhk.edu.hk/uhs/smokefree/index_eng.html" target="_blank" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Non-Smoking Campus</a></a><BR />'+
//'    <a href="http://www.cuhk.edu.hk/health_promote_protect/chinese/index.html" target="_blank" >CUHK Campus (SARS/Flu) Task Force</a><BR />'+
'  </span>'+
<!--------Menu 10---------->
//'  <div class="menutitle" onclick="SwitchMenu(\'sub10\')"><img src="../Images/bg_0015.gif" alt="Contact Us" width="150" height="20"></div>'+
'  <div class="menutitle" onclick="SwitchMenu(\'sub10\')"><img src="../Images/ICO_240.gif" width="10" height="10"> Contact Us</div>'+
'  <span class="submenu" id="sub10">'+
'    <a href="enquiry.html" ><img src="../Images/circle.gif" width="8" height="8" border="0"> Enquiry</a><BR />'+
'  </span>'+
'</div>');
}

function goENG() {
	if (window.location.href.indexOf("gb") > 0) //it is GB version now
	{
		s = window.location.href;
		re = 'http://translate.itsc.cuhk.edu.hk/gb/';
    	s = s.replace(re, 'ht'+'tp://');
		s = s.replace("chi", "eng");		
		window.location = s;
//		s = window.location.href;
//		s = s.replace(s, 'ht'+'tp://www.cuhk.edu.hk/shaw/kan/eng/');
//		window.location = s;
	}
	else //it is CHI version now
	{
		s = window.location.href;
		s = s.replace("chi", "eng");
		window.location = s;
	}
}

function goCHI() {
	if (window.location.href.indexOf("gb") > 0) //it is GB version now
	{
		s = window.location.href;
		re = 'http://translate.itsc.cuhk.edu.hk/gb/';
    	s = s.replace(re, 'ht'+'tp://');
		window.location = s;
//		s = window.location.href;
//		s = s.replace(s, 'ht'+'tp://www.cuhk.edu.hk/shaw/kan/chi');
//		window.location = s;

	}
	else //it is ENG version now
	{
		s = window.location.href;
		s = s.replace("eng", "chi");
		window.location = s;
	}
}

function goGB() {
	if (window.location.href.indexOf("gb") > 0) //it is gb version now, so to Chi
	{
//		s = window.location.href;
//		re = 'http://translate.itsc.cuhk.edu.hk:8080/gb/';
//		s = s.replace(re, 'ht'+'tp://');
//		window.location = s; 
//		s = window.location.href;
//		s = s.replace(s, 'ht'+'tp://www.cuhk.edu.hk/shaw/kan/chi');
//		re = 'http://';
//		s = s.replace(re, 'http://translate.itsc.cuhk.edu.hk/gb/');
//		window.location = s;
	}
	else //it is ENG version nowm, so go to gb
	{	if (window.location.href.indexOf("gb") > 0) //it is gb version now, so to Chi
	    {
//		s = window.location.href;
//		re = 'http://translate.itsc.cuhk.edu.hk:8080/gb/';
//		s = s.replace(re, 'ht'+'tp://');
//		window.location = s; 
		s = window.location.href;
		s = s.replace(s, 'ht'+'tp://www.cuhk.edu.hk/shaw/kan/chi');
		re = 'http://';
		s = s.replace(re, 'http://translate.itsc.cuhk.edu.hk/gb/');
		window.location = s;
	    }else
	    {
		s = window.location.href;
		s = s.replace("eng", "chi");
		re = 'http://';
		s = s.replace(re, 'http://translate.itsc.cuhk.edu.hk/gb/');
		window.location = s;
	    }
	}
}

function goChiT() {
	window.location = 'http://www.cuhk.edu.hk/shaw/kan/chi';
}
function goChiS() {
	window.location = 'http://translate.itsc.cuhk.edu.hk/gb/www.cuhk.edu.hk/shaw/kan/chi';
}
