var heading;
var foot;
var button_on = new Array();

heading="";
foot="";

var isPv = false;
var locat = window.location;
var strlocat = locat.toString();
var pad_right = 72;
var pad_left = 27;
var code ="";

var studying_on = "1";
var facilities_on = "1";
var faculties_on = "1";
var fee_on = "1";
var contact_on = "1";
var ref_on = "1";

if (strlocat.indexOf('#') != -1)
	strlocat = strlocat.substr(0, strlocat.indexOf('#'));

if (strlocat.substr(strlocat.lastIndexOf('?') + 1) == "pv")
	isPv = true;

function header(currSection, page, section, sectionLength, colorIndex, num, subPage, mycolor, mycolor2){
	
	var leftmargin;
	
	leftmargin = "20";
	
if(currSection == "studying" || currSection == "facilities" || currSection == "fee" || currSection == "contact" || currSection == "ref" || currSection == "studying"){
	leftmargin = "19";
}

var printbtnfile = "print.jpg";

if(currSection == "studying") studying_on = "2";
if(currSection == "facilities") facilities_on = "2";
if(currSection == "fee") fee_on = "2";
if(currSection.substr(0, 9) == "faculties"){ 
	faculties_on = "2";
	//printbtnfile = "print.gif";
}
if(currSection == "contact") contact_on = "2";
if(currSection == "ref") ref_on = "2";


if (isPv != true){

heading += "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">";
heading += "<html>";
heading += "<head>";
heading += "<title>HKU - Prospectus 11-12</title>";
heading += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">";
heading += "<meta http-equiv=\"imagetoolbar\" content=\"no\">";
heading += "<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">";
heading += "<script src=\"js/function.js\"></script>";
heading += "";
heading += "<script>";
heading += "function changeImg(o, v){";
heading += "	o.src = v;";
heading += "}";
heading += "function changeImgById(id, v){";
heading += "	document.getElementById(id).src = v;";
heading += "}";
heading += "</script>";
heading += "</head>";
heading += "";
heading += "<body style=\"margin:0\">";
heading += "<table border=0 cellspacing=0 cellpadding=0 width=800 align=center height=100%>";
heading += "";
heading += "<!--- START top banner --->";
heading += "<tr><Td valign=top align=left height=100><img src=\"" + currSection + "/top.jpg\" align=top></td></tr>";
heading += "<tr><td valign=top align=left>";
heading += "	<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%>";
heading += "	<tr>";
//heading += "	<Td width=13 bgcolor=\"" + mycolor + "\"></td>";
heading += " 	<Td valign=top align=left>";
heading += " 		<table border=0 cellspacing=0 cellpadding=0 width=100%>";
heading += " 		<tr>";
heading += " 		<td valign=top align=left>";
heading += " 			<!-- top menu -->";
heading += " 			<table border=0 cellspacing=0 cellpadding=0 width=100% height=32>";
heading += " 			<tr>";
heading += " 			<Td valign=top align=left><A href=\"studying_message.html\"><img src=\"" + currSection + "/top_menu1_"+studying_on+".jpg\" border=0 OnMouseOut=\"changeImg(this,'" + currSection + "/top_menu1_"+studying_on+".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/top_menu1_2.jpg');\"></a></td>";
heading += " 			<Td valign=top align=left><A href=\"faculties_index.html\"><img src=\"" + currSection + "/top_menu2_"+faculties_on+".jpg\" border=0 OnMouseOut=\"changeImg(this,'" + currSection + "/top_menu2_"+faculties_on+".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/top_menu2_2.jpg');\"></a></td>";
heading += " 			<Td valign=top align=left><A href=\"facilities_computer.html\"><img src=\"" + currSection + "/top_menu3_"+facilities_on+".jpg\" border=0 OnMouseOut=\"changeImg(this,'" + currSection + "/top_menu3_"+facilities_on+".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/top_menu3_2.jpg');\"></a></td>";
heading += " 			<Td valign=top align=left><A href=\"finance_fee.html\"><img src=\"" + currSection + "/top_menu4_"+fee_on+".jpg\" border=0 OnMouseOut=\"changeImg(this,'" + currSection + "/top_menu4_"+fee_on+".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/top_menu4_2.jpg');\"></a></td>";
heading += " 			<Td valign=top align=left><A href=\"contacts_additional.html\"><img src=\"" + currSection + "/top_menu5_"+contact_on+".jpg\" border=0 OnMouseOut=\"changeImg(this,'" + currSection + "/top_menu5_"+contact_on+".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/top_menu5_2.jpg');\"></a></td>";
heading += " 			<Td valign=top align=left><A href=\"reference_appendices.html\"><img src=\"" + currSection + "/top_menu6_"+ref_on+".jpg\" border=0 OnMouseOut=\"changeImg(this,'" + currSection + "/top_menu6_"+ref_on+".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/top_menu6_2.jpg');\"></a></td>";
heading += " 			</tr>";
heading += " 			</table>";
heading += " 		</td>";
heading += " 		</tr>";
heading += " 		<tr><Td height=18></td></tr>";
heading += " 		<tr><Td valign=top align=left>";
heading += " 			<table border=0 cellspacing=0 cellpadding=0 width=100% style='border-top:1px dashed #E4E4E5'>";
heading += " 			<tr>";
heading += " 			<td valign=top align=left style='border-right:1px dashed #E4E4E5'>";
heading += " 			<table border=0 cellpadding=0 cellspacing=0 width=100%>";
heading += " 			<tr><td colspan=2 style='border-bottom:1px dashed #E4E4E5'><img src=common/images/main_left_undergraduate.jpg border=0 align=top></td></tr>";
heading += "			<tr><td height=16></td></tr>";
heading += " 			<tr>";
heading += " 			<td width=7>&nbsp;</td>";
heading += " 			<td valign=top align=left>";

heading += "";

if(currSection == "studying"){
	for(var i=1; i<=sectionLength; i++)
		button_on[i] = "";
	button_on[page] = "_2";
	heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=187>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_message.html\"><img src=\"" + currSection + "/left_menu1" + button_on[1] + ".jpg\" OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu1" + button_on[1] + ".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/left_menu1_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_about.html\"><img src=\"" + currSection + "/left_menu2" + button_on[2] + ".jpg\" OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu2" + button_on[2] + ".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/left_menu2_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_programmes.html\"><img src=\"" + currSection + "/left_menu3" + button_on[3] + ".jpg\" OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu3" + button_on[3] + ".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/left_menu3_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_teaching.html\"><img src=\"" + currSection + "/left_menu4" + button_on[4] + ".jpg\"OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu4" + button_on[4] + ".jpg');\"  onMouseOver=\"changeImg(this,'" + currSection + "/left_menu4_2.jpg');\"  border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_application.html\"><img src=\"" + currSection + "/left_menu5" + button_on[5] + ".jpg\" OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu5" + button_on[5] + ".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/left_menu5_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_employment.html\"><img src=\"" + currSection + "/left_menu6" + button_on[6] + ".jpg\" OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu6" + button_on[6] + ".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/left_menu6_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"studying_overseas.html\"><img src=\"" + currSection + "/left_menu7" + button_on[7] + ".jpg\" OnMouseOut=\"changeImg(this,'" + currSection + "/left_menu7" + button_on[7] + ".jpg');\" onMouseOver=\"changeImg(this,'" + currSection + "/left_menu7_2.jpg');\" border=0></a></td></tr>";
	heading += "	 			</table>";
}
if(currSection == "facilities"){
	for(var i=1; i<=sectionLength; i++)
		button_on[i] = "";
	button_on[page] = "_2";
	heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=187>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"facilities_computer.html\"><img src=\"facilities/left_menu1" + button_on[1] + ".jpg\" OnMouseOut=\"changeImg(this,'facilities/left_menu1" + button_on[1] + ".jpg');\" onMouseOver=\"changeImg(this,'facilities/left_menu1_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"facilities_english.html\"><img src=\"facilities/left_menu2" + button_on[2] + ".jpg\" OnMouseOut=\"changeImg(this,'facilities/left_menu2" + button_on[2] + ".jpg');\" onMouseOver=\"changeImg(this,'facilities/left_menu2_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"facilities_libraries.html\"><img src=\"facilities/left_menu3" + button_on[3] + ".jpg\" OnMouseOut=\"changeImg(this,'facilities/left_menu3" + button_on[3] + ".jpg');\" onMouseOver=\"changeImg(this,'facilities/left_menu3_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"facilities_school.html\"><img src=\"facilities/left_menu4" + button_on[4] + ".jpg\" OnMouseOut=\"changeImg(this,'facilities/left_menu4" + button_on[4] + ".jpg');\" onMouseOver=\"changeImg(this,'facilities/left_menu4_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"facilities_students.html\"><img src=\"facilities/left_menu5" + button_on[5] + ".jpg\" OnMouseOut=\"changeImg(this,'facilities/left_menu5" + button_on[5] + ".jpg');\" onMouseOver=\"changeImg(this,'facilities/left_menu5_2.jpg');\" border=0></a></td></tr>";
	//heading += "	 			<tr><Td height=6></td></tr>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"facilities_halls.html\"><img src=\"facilities/left_menu6" + button_on[6] + ".jpg\" OnMouseOut=\"changeImg(this,'facilities/left_menu6" + button_on[6] + ".jpg');\" onMouseOver=\"changeImg(this,'facilities/left_menu6_2.jpg');\" border=0></a></td></tr>";
	heading += "	 			</table>";
}
if(currSection == "fee"){
	heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=187>";
	heading += "	 			<tr><Td valign=top align=left><A href=\"finance_fee.html\"><img src=\"fee/left_menu1_2.jpg\"  border=0></a></td></tr>";
	heading += "	 			</table>";
}

if(currSection == "contact"){
	for(var i=1; i<=sectionLength; i++)
		button_on[i] = "";
	button_on[page] = "_2";
	heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=187>";
	heading += "	 			<tr><Td colspan=2 valign=top align=left><A href=\"contacts_additional.html\"><img src=\"contact/left_menu1" + button_on[1] + ".jpg\" OnMouseOut=\"changeImg(this,'contact/left_menu1" + button_on[1] + ".jpg');\" onMouseOver=\"changeImg(this,'contact/left_menu1_2.jpg');\" border=0></a></td></tr>";
	heading += "	 			<tr><Td colspan=2 valign=top align=left><A href=\"contacts_location.html\"><img src=\"contact/left_menu2" + button_on[2] + ".jpg\" OnMouseOut=\"changeImg(this,'contact/left_menu2" + button_on[2] + ".jpg');\" onMouseOver=\"changeImg(this,'contact/left_menu2_2.jpg');\" border=0></a></td></tr>";
	heading += "	 			<tr><Td colspan=2 valign=top align=left><A href=\"contacts_campus.html\"><img src=\"contact/left_menu3" + button_on[3] + ".jpg\" OnMouseOut=\"changeImg(this,'contact/left_menu3" + button_on[3] + ".jpg');\" onMouseOver=\"changeImg(this,'contact/left_menu3_2.jpg');\" border=0></a></td></tr>";
	
	if(page == 3){
	heading += "	 			<tr>";
	heading += "				<td bgcolor=#997D9F width=14 style=\"background:url('contact/bar.jpg') repeat-y right top\"></td><Td valign=top align=left >";
	
	var menu = "";
	menu += "<table border=0 cellspacing=0 cellpadding=0>"
	menu += "<tr><td valign=top colspan=2 align=left >"
	menu += "<ul style=\"padding:0; margin:3px 0px 3px 25px\">"
	
	if (subpage == 1) {
	 	menu += "<li class=contact_leftNav2 onclick=\"location.href='#';\">Main Campus Map</li>"
	 } else {
	 	menu += "<li class=contact_leftNav onMouseOver=\"this.className='contact_leftNav2'\" onMouseOut=\"this.className='contact_leftNav'\" onclick=\"location.href='contacts_campus.html';\">Main Campus Map</li>"	
	}
	
	if (subpage == 2) {
	 	menu += "<li class=contact_leftNav2 onclick=\"location.href='#';\">Sassoon Road Campus Map</li>"
	 } else {
	 	menu += "<li class=contact_leftNav onMouseOver=\"this.className='contact_leftNav2'\" onMouseOut=\"this.className='contact_leftNav'\" onclick=\"location.href='contacts_session.html';\">Sassoon Road Campus Map</li>"	
	}	
	 						
	 menu += "</ul></td></tr></table>"
	
	heading += menu;
	
	heading += "	 			</td>";
	heading += "	 			</tr>";
	}
	heading += "	 			</table>";
}

if(currSection == "ref"){
	
	heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=199>";				
	heading += "	 			<tr><Td valign=top colspan=2 align=left><A href=\"reference_appendices.html\"><img src=\"ref/left_menu1_2.jpg\" OnMouseOut=\"changeImg(this,'ref/left_menu1_2.jpg');\" onMouseOver=\"changeImg(this,'ref/left_menu1_2.jpg');\" border=0></a></td></tr>";
	heading += "	 			<tr>";
	heading += "				<td bgcolor=#997D9F width=14 style=\"background:url('ref/bar.jpg') repeat-y right top\"></td><Td valign=top align=left >";
	
	var menu = "";
	menu += "<table border=0 cellspacing=0 cellpadding=0>"
	menu += "<tr><td valign=top colspan=2 align=left >"
	menu += "<ul style=\"padding:0; margin:3px 0px 3px 25px\">"
	
	if (page == 1) {
	 	menu += "<li class=ref_leftNav2 onclick=\"location.href='#';\">Appendix I <BR>University Entrance <BR>Requirements</li>"
	 } else {
	 	menu += "<li class=ref_leftNav onMouseOver=\"this.className='ref_leftNav2'\" onMouseOut=\"this.className='ref_leftNav'\" onclick=\"location.href='reference_appendices.html';\">Appendix I <BR>University Entrance <BR>Requirements</li>"	
	}
	
	if (page == 2) {
	 	menu += "<li class=ref_leftNav2 onclick=\"location.href='#';\">Appendix II <BR>Summary Chart of <BR>University Entrance <BR>Requirements</li>"
	 } else {
	 	menu += "<li class=ref_leftNav onMouseOver=\"this.className='ref_leftNav2'\" onMouseOut=\"this.className='ref_leftNav'\" onclick=\"location.href='reference_appendices2.html';\">Appendix II <BR>Summary Chart of <BR>University Entrance <BR>Requirements</li>"	
	}
	
	if (page == 3) {
	 	menu += "<li class=ref_leftNav2 onclick=\"location.href='#';\">Appendix III <BR>Summary Chart of <BR>Additional Programme Entrance <BR>Requirements for JUPAS Applicants</li>"
	 } else {
	 	menu += "<li class=ref_leftNav onMouseOver=\"this.className='ref_leftNav2'\" onMouseOut=\"this.className='ref_leftNav'\" onclick=\"location.href='reference_appendices3.html';\">Appendix III <BR>Summary Chart of <BR>Additional Programme Entrance <BR>Requirements for JUPAS Applicants</li>"
	}	
	
	if (page == 4) {
	 	menu += "<li class=ref_leftNav2 onclick=\"location.href='#';\">Appendix IV <BR>Study Programmes <BR>Offered (A-Z Index)</li>"	
	 } else {
	 	menu += "<li class=ref_leftNav onMouseOver=\"this.className='ref_leftNav2'\" onMouseOut=\"this.className='ref_leftNav'\" onclick=\"location.href='reference_appendices4.html';\">Appendix IV <BR>Study Programmes <BR>Offered (A-Z Index)</li>"	
	}	
	 						
	 menu += "</ul></td></tr></table>"
	
	heading += menu;
	
	heading += "	 			</td>";
	heading += "	 			</tr>";
	heading += "	 			</table>";
}	 			

if(currSection.substr(0, 9) == "faculties"){ 
	heading += "		<table border=0 cellspacing=0 cellpadding=0 width=199>";
	if(currSection == "faculties/1"){
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_arc_about.html\"><img src=\""+currSection+"/left_menu1_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_arc(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_arc_about.html\"><img src=\""+currSection+"/left_menu1.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu1.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu1_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	
	heading += "		<tr><Td height=6></td></tr>";
	if(currSection == "faculties/2"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_art_about.html\"><img src=\""+currSection+"/left_menu2_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_art(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_art_about.html\"><img src=\""+currSection+"/left_menu2.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu2.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu2_2.jpg');\" border=0></a></td></tr>";
	}
	
	heading += "		<tr><Td height=6></td></tr>";
	if(currSection == "faculties/3"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_busi_about.html\"><img src=\""+currSection+"/left_menu3_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_busi(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_busi_about.html\"><img src=\""+currSection+"/left_menu3.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu3.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu3_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	
	heading += "		<tr><Td height=6></td></tr>";
	if(currSection == "faculties/4"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_dent_about.html\"><img src=\""+currSection+"/left_menu4_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_dent(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_dent_about.html\"><img src=\""+currSection+"/left_menu4.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu4.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu4_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	
	heading += "		<tr><Td height=6></td></tr>";
	if(currSection == "faculties/5"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_edu_about.html\"><img src=\""+currSection+"/left_menu5_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_edu(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_edu_about.html\"><img src=\""+currSection+"/left_menu5.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu5.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu5_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	heading += "		<tr><Td height=6></td></tr>";
	if(currSection == "faculties/6"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_engg_about.html\"><img src=\""+currSection+"/left_menu6_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_engg(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_engg_about.html\"><img src=\""+currSection+"/left_menu6.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu6.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu6_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	heading += "		<tr><Td height=6></td></tr>";
	if(currSection == "faculties/7"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_law_about.html\"><img src=\""+currSection+"/left_menu7_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_law(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_law_about.html\"><img src=\""+currSection+"/left_menu7.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu7.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu7_2.jpg');\" border=0></a></td></tr>";
	}
	
	heading += "		<tr><Td height=6></td></tr>";
	
	if(currSection == "faculties/8"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_edu_about.html\"><img src=\""+currSection+"/left_menu8_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_medi(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_medi_about.html\"><img src=\""+currSection+"/left_menu8.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu8.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu8_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	heading += "		<tr><Td height=6></td></tr>";
	
	if(currSection == "faculties/9"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_scie_about.html\"><img src=\""+currSection+"/left_menu9_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_scie(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_scie_about.html\"><img src=\""+currSection+"/left_menu9.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu9.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu9_2.jpg');\" border=0></a></td></tr>";
	}
	
	
	
	heading += "		<tr><Td height=6></td></tr>";
	
	if(currSection == "faculties/10"){ 
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_soci_about.html\"><img src=\""+currSection+"/left_menu10_2.jpg\" border=0></a></td></tr>";
		heading += "		<tr><td bgcolor=#997D9F width=14 style=\"background:url('"+currSection+"/bar.jpg') repeat-y right top\"></td><Td valign=top align=left width=185>";
		heading += menu_soci(page);
		heading += "		</td></tr>";
	}else{
		heading += "		<tr><Td valign=top colspan=2 align=left><A href=\"faculties_soci_about.html\"><img src=\""+currSection+"/left_menu10.jpg\" OnMouseOut=\"changeImg(this,'"+currSection+"/left_menu10.jpg');\" onMouseOver=\"changeImg(this,'"+currSection+"/left_menu10_2.jpg');\" border=0></a></td></tr>";
	}
	
	heading += "		</table>";
}

heading += " 			</td></tr>";
heading += " 			</table>";
heading += "	 		</td>";
//heading += "	 		<td width=29></td>";
heading += "	 		<td valign=top align=left>";
heading += "	 		<!-- content -->";
heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=100%>";
heading += "	 			<tr ><td valign=top align=left bgcolor=\""+mycolor2+"\" height=60>";
heading += "	 				<table  border=0 cellspacing=0 cellpadding=0 width=100% height=100%>";
heading += "	 				<tr>";
//heading += "				<td width=5 bgcolor=\""+mycolor+"\"><img src=\"img/spacer.gif\" border=0 width=5 height=1 align=top></td>";

if(code != ""){
	
	heading += " 				<td align=center bgcolor="+mycolor3+" class=arc_title style='padding:0 10'>";
	for(c = 0;c < code.length;c++){
		subcode = code.substr(c,1);
		heading += "<img src=\""+currSection+"/"+subcode+".jpg\" align=absbottom>";	
	}
	heading += " 				</td>";
	heading += " 				<Td width=300 valign=center align=left style=\"padding-left:18px;\" class=arc_title2>";
	heading += msg;
	heading += " 				</td>";
	heading += " 				<Td valign=middle align=right style=\"padding-right:72px;\">";
	heading += " 				<A href=\"javascript:pv(getFileName());\"><img src=\""+currSection+"/" + printbtnfile + "\" border=0 align=absmiddle></a>";
	heading += " 				</td>";

}else{
	heading += "	 				<Td valign=middle align=left style=\"padding-left:27px\" class=sty_title>";
	heading += msg;
	heading += "	 				</td>";
	heading += "	 				<Td valign=middle align=right style=\"padding-right:72px\">";
	heading += "	 				<A href=\"javascript:pv(getFileName());\"><img src=\"" + currSection + "/" + printbtnfile + "\" border=0 align=absmiddle></a>";
	heading += "	 				</td>";
}

heading += "	 				</tr>";
heading += "	 				</table>";
heading += "	 			</td></tr>";
heading += "";
heading += "	 			<tr><td valign=top height=16 style='border-top:1px dashed #E4E4E5; font-size:0px'>&nbsp;</td></tr>";
heading += "";
heading += "	 			<tr><td valign=top align=left class=content style=\"padding-left:" + pad_left + "px; padding-right:" + pad_right + "px\">";

}else{
		heading += "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">																				";
		heading += "<head>                                                                                                                                                                                                                       ";
		heading += "<title>HKU - Prospectus 11-12</title>                                                                                                                                                                                           ";
		heading += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=big5\">                                                                                                                                                       ";
		heading += "<meta http-equiv=\"imagetoolbar\" content=\"no\">                                                                                                                                                                            ";
		heading += "<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">                                                                                                                                                               ";
		heading += "<script src=\"js/function.js\"></script>                                                                                                                                                                                  ";
		heading += "                                                                                                                                                                                                                             ";
		heading += "<style> #aaa { padding:10 10 10 20 !important ;}</style>";

		heading += "</head>                                                                                                                                                                                                                      ";
		heading += "                                                                                                                                                                                                                             ";
		heading += "<body style=\"margin:0;\">                                                                                                                                                                                                   ";
		heading += "<table border=0 cellspacing=0 cellpadding=0 width=540>";
		heading += "<tr><td >";
		heading += "	 			<table border=0 cellspacing=0 cellpadding=0 width=100%>";
		heading += "	 			<tr><Td valign=top align=left bgcolor=\""+mycolor2+"\" height=62>";
		heading += "	 				<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%>";
		heading += "	 				<tr>";
if(code != ""){
	heading += " 				<td align=center bgcolor="+mycolor3+" class=arc_title style='padding:0 10'>";
	for(c = 0;c < code.length;c++){
		subcode = code.substr(c,1);
		heading += "<img src=\""+currSection+"/"+subcode+".jpg\" align=absbottom>";	
	}
	heading += " 				</td>";
	heading += " 				<Td width=100% valign=center align=left style=\"padding-left:18px;\" class=arc_title2>";
	heading += msg;
	heading += " 				</td>";
	heading += " 				<Td valign=top align=right style=\"padding-right:20px; padding-top:10px\">";
	heading += " 				<br>";
	heading += " 				</td>";

}else{		
		heading += "	 				<Td valign=middle align=left style=\"padding-left:" + leftmargin + "px\" class=sty_title>";
		heading += msg;
		heading += "	 				</td>";
		heading += "	 				<Td valign=middle align=right style=\"padding-right:20px\">";
		heading += "	 				<br>";
		heading += "	 				</td>";
}		
		heading += "	 				</tr>";
		heading += "	 				</table>";
		heading += "	 			</td></tr>";
		heading += "";
		heading += "	 			<tr><td valign=top height=16 style='border-top:1px dashed #E4E4E5; font-size:0px'>&nbsp;</td></tr>";
		heading += "";
		heading += "	 			<tr><Td valign=top align=left class=content style=\"padding-left:20px; padding-right:72px\">";

	}

	document.writeln(heading);

}


function footer(color){

	if (isPv != true){
		foot += "</td></tr>";
		foot += "";
		foot += "				<tr><Td height=25></td></tr>";
		foot += "				<tr><Td valign=top align=right style=\"padding-right:72px\" class=content>";
		foot += "	 			<a href=\"#\"><img src=\"" + currSection + "/btn_top.jpg\" border=0></a>";
		foot += "	 			</td></tr>";
		foot += "";
		foot += "	 			</table>";
		foot += "	 		</td>";
		foot += "	 		</tr>";
		foot += "	 		</table>";
		foot += " 		</td></tr>";
		foot += " 		<tr><Td height=15></td></tr>";
		foot += " 		</table>";
		foot += " 	</td>";
//		foot += "	<Td width=13 bgcolor=\"" + color + "\"></td>";
		foot += "	</tr>";
		foot += "	</table>";
		foot += "";
		foot += "</td><tr>";
		foot += "";
		foot += "</table>";
		foot += "";
		foot += "</body>";
		foot += "</html>";
	}else{
		foot += "</td></tr></table>";
		foot += "</body>";
		foot += "</html>";
	}
	document.writeln(foot);

}

