var clickevent = new Array();
clickevent[0] = 0;
clickevent[1] = 0;
clickevent[2] = 0;
clickevent[3] = 0;
clickevent[4] = 0;
clickevent[5] = 0;
clickevent[6] = 0;
clickevent[7] = 0;
clickevent[8] = 0;
clickevent[10] = 0;
clickevent[11] = 0;

found = false;
for (i=0;i<webLocate.length;i++) {
		if (webLocate.substring(i,i+1)=="/") {
			found = true;
			for (j=0;j<folder2index.length;j++) 
				if (webLocate.substring(0,i) == folder2index[j]) {
					clickevent[j] = 3;
				}
		}

}

if (!found) {
	clickevent[0] = 3;
}

//for (i=0;i<clickevent.length;i++)
//	alert ("clickevent value of "+i+" is "+clickevent[i]);

document.write ("    <\/tr>"+
"    <tr height=\"100%\">"+
"      <td valign=\"top\">"+
"        <table width=\"760\" border=\"0\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\">"+
"          <tr>"+
"            <td align=\"left\" valign=\"top\" width=\"153\" background=\"\/phisweb\/images\/leftbar\/fillhead.png\">"+
"<!-- START: LHS MENU -->"+
"<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"+
" <tr valign=\"bottom\">"+
"    <td valign=\"top\" width=\"100%\">"+
"		<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"153\" height=\"100\" title=\"Healthyhk Logo\">"+
"      		<param name=\"movie\" value=\"\/phisweb\/images\/leftbar\/leftconer.swf\">"+
"		    <param name=\"quality\" value=\"high\">"+
"			<param name=\"wmode\" value=\"transparent\">"+
"		    <embed src=\"\/phisweb\/images\/leftbar\/leftconer.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"153\" height=\"100\" wmode=\"transparent\"><\/embed>"+
"	    <\/object>"+
//"	 	<img src=\"\/phisweb\/images\/leftbar\/left_1.png\">"+
"	 <\/td>"+
" <\/tr>"+
" <tr valign=\"top\" height=\"25\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[0][wordlang+clickevent[0]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[0][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[0][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[0][wordlang+clickevent[0]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/welcome\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[1][wordlang+clickevent[1]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[1][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[1][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[1][wordlang+clickevent[1]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/whats_new\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[2][wordlang+clickevent[2]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[2][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[2][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[2][wordlang+clickevent[2]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/about_us\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[3][wordlang+clickevent[3]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[3][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[3][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[3][wordlang+clickevent[3]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/contact_us\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[4][wordlang+clickevent[4]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[4][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[4][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[4][wordlang+clickevent[4]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/links\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[5][wordlang+clickevent[5]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[5][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[5][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[5][wordlang+clickevent[5]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"   <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/download\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[6][wordlang+clickevent[6]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[6][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[6][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[6][wordlang+clickevent[6]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/healthy_facts\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[7][wordlang+clickevent[7]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[7][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[7][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[7][wordlang+clickevent[7]])+"'\"><\/a>"+
"    <\/td>"+
"  <\/tr>"+
"  <tr valign=\"top\">"+
"    <td valign=\"top\" width=\"100%\">"+
"      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/publications\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[8][wordlang+clickevent[8]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[8][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[8][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[8][wordlang+clickevent[8]])+"'\"><\/a>"+
"   <\/td>"+
"  <\/tr>"+
"<!-- Begin: Advanced Features Menu "+
"      <TR vAlign=top>"+
"        <TD class=MenuItem vAlign=top width=\"100%\"><br><IMG src=\"\/phisweb\/images\/delimiter.gif\" border=\"0\" align=\"center\"><\/TD>"+
"	<\/TR>-->"+
//"      <TR vAlign=top>"+
//"        <TD vAlign=top width=\"100%\"><br><img src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[9][wordlang])+"\"><\/TD>"+
//"	  <\/TR>"+
"	  <TR vAlign=top>"+
"	    <TD vAlign=top width=\"100%\">"+
//"	   onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
//"	   onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
//"	   onClick=\"showHidesubmenu('show');\">"+
"		<a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/health_info\/\"><IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[10][wordlang+clickevent[10]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[10][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[10][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[10][wordlang+clickevent[10]])+"'\"><\/a>"+
"		<\/TD>"+
"	  <\/TR>"+
"	  <\/TR>"+
"	  <tr valign=\"top\">"+
"	    <td valign=\"top\" width=\"100%\">"+
"	      <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/enquiry\/\" onmouseOver=\"holdsubmenu('hold');\" onmouseOut=\"holdsubmenu('hide')\">"+
"		<IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[11][wordlang+clickevent[11]])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[11][wordlang])+"\" onmouseover=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp2[11][wordlang])+"'\" onmouseout=\"this.src='\/phisweb\/images\/leftbar\/"+(leftmenugrp[11][wordlang+clickevent[11]])+"'\"><\/a>"+
"	      <\/a>"+
"	    <\/td>"+
"	  <\/tr>"+
"	  <tr valign=\"top\">"+
"	    <td valign=\"top\" width=\"100%\">&nbsp;"+
"	    <\/td>"+
"	  <\/tr>"+
"	  <tr valign=\"top\" style=\"display:none\">"+
"	    <td valign=\"top\" width=\"100%\" align=\"center\">"+
"	      <a href=\"\/phisweb\/include\/ApplicationForm_01082006.doc\" target=\"_blank\">"+
"		<IMG src=\"\/phisweb\/images\/leftbar\/"+(leftmenugrp[12][wordlang])+"\" border=\"0\" align=\"absmiddle\" alt=\""+(left_menu_items[12][wordlang])+"\"><\/a>"+
"	      <\/a>"+
"	    <\/td>"+
"	  <\/tr>"+
"<\/table>"+
"<!-- END: LHS MENU -->"+
"<!-- START: LHS TIER 2 MENU -->"+
"<div id=\"layer_health_info\" style=\"position:absolute; width:230px; z-index:2; left: 150px; top: 350px; visibility: hidden\">"+
"  <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
"    <tr valign=\"top\">"+
"      <td class=\"Tier2MenuItem\""+
"          onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
"          onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
"        <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/health_info\/comm_dis\/\">"+(left_menu_2items[0][wordlang])+"<\/a>"+
"      <\/td>"+
"    <\/tr>"+
"    <tr valign=\"top\">"+
"      <td class=\"Tier2MenuItem\""+
"          onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
"          onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
"        <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/health_info\/non_comm_dis\/\">"+(left_menu_2items[1][wordlang])+"<\/a>"+
"      <\/td>"+
"    <\/tr>"+
"    <tr valign=\"top\">"+
"      <td class=\"Tier2MenuItem\""+
"          onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
"          onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
"        <a href=\""+linksOfStat[wordlang]+"\" target=\"_Blank\">"+(left_menu_2items[5][wordlang])+"<\/a>"+
"      <\/td>"+
"    <\/tr>"+
"    <tr valign=\"top\">"+
"      <td class=\"Tier2MenuItem\""+
"          onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
"          onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
"        <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/health_info\/vit_stat\/\"><nobr>"+(left_menu_2items[2][wordlang])+"<\/nobr><\/a>"+
"      <\/td>"+
"    <\/tr>"+
"    <tr valign=\"top\">"+
"      <td class=\"Tier2MenuItem\""+
"          onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
"          onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
"          <a href=\""+linksOfPED[wordlang]+"\" target=\"_blank\">"+
"          <nobr>"+(left_menu_2items[3][wordlang])+"<\/nobr><\/a>"+
"      <\/td>"+
"   <\/tr>"+
"    <tr valign=\"top\">"+
"      <td class=\"Tier2MenuItem\""+
"          onMouseOut=\"MM_showHideLayers('layer_health_info','','hide')\""+
"          onMouseOver=\"MM_showHideLayers('layer_health_info','','show')\">"+
"          <a href=\"\/phisweb\/"+(lang_ver[wordlang])+"\/health_info\/social_env\/\">"+
"          <nobr>"+(left_menu_2items[4][wordlang])+"<\/nobr><\/a>"+
"      <\/td>"+
"    <\/tr>"
);

function showHidesubmenu(actions) {
	if (document.getElementById("secondMenu").style.display == "none") {
		document.getElementById("secondMenu").style.display = "block";
	}
	else {
		document.getElementById("secondMenu").style.display = "none";
		//mouseBehaviour = 1;
	}
}

function holdsubmenu(actions) {
	if (actions == "hold") {
		//document.getElementById("secondMenu").style.display = "block";
	}
	else {
		//document.getElementById("secondMenu").style.display = "none";

	}
}
