function printtopcell() {
 	var i = 0;
  	var t='';
	var j = new Array(1000);
	var s = new String(document.location.pathname);
	var s1='';
	var u = new String(document.location.pathname);
	var min = 0;
	var k = 0;
	var max = 0;
	var fn = '';
	var pa = '';
	var g ='';	
	var ln ='';
	var wrd ='';
	var t_value= 0;
	var t_value1= 0;
	var temp = '';
	var pai = new Array(44);
	var paii = new Array("blank_for_choose_e.html","blank_for_choose.html","index_e.html","index.html","main_e.html","main.html","Leader_e.html","Leader.html","Maths_e.html","Maths.html","Humans_e.html","Humans.html","Science_e.html","Science.html","leaderhkfygII03_e.html","leaderhkfygII03.html","IMO_03_04tra_e.html","IMO_03_04tra.html","hk_sttour2_e.html","hk_sttour2.html","leader_prog_e.html","leader_prog.html","gtprog_e.html","gtprog.html","sumschtutor03_e.html","sumschtutor03.html","sumsch_recruit03_e.html","sumsch_recruit03.html","mentor03_e.html","mentor03.html","satsch_recruit03_e.html","satsch_recruit03.html","IMO2003_e.html","IMO2003.html","IMO_Training_phase2_e.html","IMO_Training_phase2.html","leaderhkfyg03_e.html","leaderhkfyg03.html","maththtrain_e.html","maththtrain.html","teacherpro2003-04_e.html","teacherpro2003-04.html","feedbackindex_e.html","feedbackindex.html","spacescience_e.html","spacescience.html","0506TrainingProgrammes_e.html","0506TrainingProgrammes.html");	
//	setTimeout("MM_preloadImages('/Gifted/shared/images/menu_on.gif','/Gifted/shared/images/menu_dn.gif','/Gifted/shared/images/menu1_on.gif','/Gifted/shared/images/menu1_dn.gif','/Gifted/shared/images/menu3_on.gif','/Gifted/shared/images/menu3_dn.gif','/Gifted/shared/images/menu4_on.gif','/Gifted/shared/images/menu4_dn.gif','/Gifted/shared/images/menu15_on.gif','/Gifted/shared/images/menu15_dn.gif','/Gifted/shared/images/menu6_on.gif','/Gifted/shared/images/menu6_dn.gif','/Gifted/shared/images/menu7_on.gif','/Gifted/shared/images/menu7_dn.gif','/Gifted/shared/images/menu8_on.gif','/Gifted/shared/images/menu8_dn.gif','/Gifted/shared/images/menu9_on.gif','/Gifted/shared/images/menu9_dn.gif','/Gifted/shared/images/menu10_on.gif','/Gifted/shared/images/menu10_dn.gif','/Gifted/shared/images/menu11_on.gif','/Gifted/shared/images/menu11_dn.gif','/Gifted/shared/images/menu12_on.gif','/Gifted/shared/images/menu12_dn.gif','/Gifted/shared/images/menu13_on.gif','/Gifted/shared/images/menu13_dn.gif','/Gifted/shared/images/menu14_on.gif','/Gifted/shared/images/menu14_dn.gif','/Gifted/shared/images/menu18_on.gif','/Gifted/shared/images/menu18_dn.gif')",10);


t+='  <table width="100%" style="background-repeat: no-repeat" border="0" cellspacing="0" cellpadding="0" height="97" background="/Gifted/shared/images/bg_top001.png"><tr><td valign="top"><!--Table for including every thing.-->';
t+='  <table width="770" border="0" cellspacing="0" cellpadding="0" height="97" background="">';
t+='    <tr>';
t+='      <td width="160" valign="top">';
t+='      <!--LOGO-CELL-->';
t+='        <img src="/Gifted/shared/images/blank.gif" width="20" height="1"><a href="/Gifted/main.html"><img border="0" src="/Gifted/shared/images/title.gif" width="278" height="70" hspace="0" vspace="0"></a></td>';
t+='      <!--END-LOGO-CELL-->';
t+='      <td width="600" valign="top">';
t+='      <!--TOP-BANNER-CELL-->';
t+='        <table width="510" border="0" cellspacing="0" cellpadding="0">';
t+='          <tr>';
t+='            <td align="center">';
t+='			  <a href="/Gifted/IMO/index.html"><img src="/Gifted/shared/images/banner08a.gif" border="0" style="margin-top:10px"></a><a href="/Gifted/Physics/index.html"><img src="/Gifted/shared/images/banner08b.gif" border="0" style="margin-top:10px"></a>';
//t+='            <img src="/blank.gif" width="1" height="5"><br><a href="/Gifted/Objective/0607/index.html"><img src="/Gifted/shared/images/0607TrainingProgrammes.gif" border="0"></a> ';
//t+='            <img src="/blank.gif" width="1" height="5"><br><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="310" height="60"><param name=movie value="/Gifted/shared/images/phy_math.swf"><param name=quality value=high><embed src="/Gifted/shared/images/phy_math.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="310" height="60"></embed> </object>';
	
//t+='            <td width="120">';
//t+='              <table width="120" height="60" border="1" cellspacing="0" cellpadding="0">';
//t+='                <tr>';
//t+='                  <td bgcolor="white">&nbsp;';
//t+='                  </td>';
//t+='                </tr>';
//t+='              </table>';
t+='            </td>';
t+='          </tr>';
t+='        </table>';
t+='      <!--END-TOP-BANNER-CELL-->';
t+='      </td>';
t+='    </tr>';
t+='  </table></td></tr></table><!--end Table including everything-->';
t+='  <table width="100%" style="background-repeat: no-repeat" border="0" cellspacing="0" cellpadding="0" height="45" background="/Gifted/shared/images/bg_top002.png"><tr><td valign="top"><!--Table for including every thing.-->';
t+='  <table width="768" border="0" cellspacing="0" cellpadding="0" height="45" background="">';

for(k=u.length; k >=0 ; k--)
	{
		if (u.charCodeAt(k) == 47)
		{
			if (t_value >= 1) 
			{
				temp = '';
				for (t_value1=wrd.length; t_value1 >=0; t_value1--)
				{
					temp = temp.concat(wrd.charAt(t_value1));
				}
			
				pai[t_value] = temp;
				
			}
			else
			{
				for (t_value1=wrd.length; t_value1 >=0; t_value1--)
				{
					g = g.concat(wrd.charAt(t_value1));
				}
			}
			
			t_value++;
			wrd ='';

		}
		else
		{
			wrd = wrd.concat(u.charAt(k));
		}
	}

	for (k=(t_value-1); k >=1; k--)
	{
		pa = pa.concat('/');
		pa = pa.concat(pai[k]);
	}
	pa = pa.concat('/');
			

	
	for (k=0;k<=47;k++)
	{
		if (g == paii[k])
		{
			g = paii[k-1];			
			k++;
		}
	}


t+='	<tr>';
t+='	<td width="64" valign="top"><a href="/Gifted/main.html" OnMouseOver="lswap(\'mainpage\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'mainpage\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'mainpage\',\'dn\',\'/Gifted/shared/images/\')"><img name="mainpage" border="0" src="/Gifted/shared/images/mainpage.gif" width="64" alt="主頁"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/Objective/index.html" OnMouseOver="lswap(\'objective\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'objective\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'objective\',\'dn\',\'/Gifted/shared/images/\')"><img name="objective" border="0" src="/Gifted/shared/images/objective.gif" alt="計劃簡介"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/Objective/pdf/Full_Circular_Memo_07_Chi.pdf" OnMouseOver="lswap(\'nomin\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'nomin\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'nomin\',\'dn\',\'/Gifted/shared/images/\')"><img name="nomin" border="0" src="/Gifted/shared/images/nomin.gif" alt="提名指引"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/Review/index.html" OnMouseOver="lswap(\'summ\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'summ\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'summ\',\'dn\',\'/Gifted/shared/images/\')"><img name="summ" border="0" src="/Gifted/shared/images/summ.gif" alt="活動總覽"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/Enroll/index.html" OnMouseOver="lswap(\'enroll\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'enroll\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'enroll\',\'dn\',\'/Gifted/shared/images/\')"><img name="enroll" border="0" src="/Gifted/shared/images/enroll.gif" alt="活動報名"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/WhatsNew/index.html" OnMouseOver="lswap(\'result\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'result\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'result\',\'dn\',\'/Gifted/shared/images/\')"><img name="result" border="0" src="/Gifted/shared/images/result.gif" alt="報名結果"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/ActReview/index.html" OnMouseOver="lswap(\'actsum\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'actsum\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'actsum\',\'dn\',\'/Gifted/shared/images/\')"><img name="actsum" border="0" src="/Gifted/shared/images/actsum.gif" alt="活動花絮"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/Download/index.html" OnMouseOver="lswap(\'download\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'download\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'download\',\'dn\',\'/Gifted/shared/images/\')"><img name="download" border="0" src="/Gifted/shared/images/download.gif" alt="資源下載"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/QnA/index.html" OnMouseOver="lswap(\'public\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'public\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'public\',\'dn\',\'/Gifted/shared/images/\')"><img name="public" border="0" src="/Gifted/shared/images/public.gif" alt="大眾園地"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/r_site/index.html" OnMouseOver="lswap(\'related\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'related\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'related\',\'dn\',\'/Gifted/shared/images/\')"><img name="related" border="0" src="/Gifted/shared/images/related.gif" alt="相關網頁"></a></td>';
t+='	<td width="64" valign="top"><a href="/Gifted/con_us/index.html" OnMouseOver="lswap(\'contact\',\'on\',\'/Gifted/shared/images/\')" OnMouseOut="lswap(\'contact\',\'out\',\'/Gifted/shared/images/\')" OnClick="lswap(\'contact\',\'dn\',\'/Gifted/shared/images/\')"><img name="contact" border="0" src="/Gifted/shared/images/contact.gif" alt="聯絡我們"></a></td>';
//t+='	<td width="64" valign="top"><img name="englishV" border="0" src="/Gifted/shared/images/englishV.gif" alt="English Version"></td>';
t+='	<td width="64" valign="top"><a href="'  +  g  + '"><img name="menu_ev" border="0" src="/Gifted/shared/images/englishV.gif"  alt="English Version"></a></td></tr>';	


t+='        </tr>';
t+='        </table>';
  document.writeln(t);
}
printtopcell();

