function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf('#')!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function mtdCreateTopIndex(){
	var html="";
if(mstrLang == "e" && mstrlevel == "first"){
html +="<table width='984' border='0' cellspacing='0' cellpadding='0'>";
html +="<tr>";
html +="<td background='image/top_bg.gif'><span style='float: left'><img src='image/fubonlogo.gif'/></span></td>";
html +="<td  background='image/top_bg.gif' align='right'><div align='right'><img src='image/tradelogo.gif'/></div></td>";
html +="</tr>";
html +="</table>";
html +="<table width='984' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";

if (mstrSection == "home_se"){
html +="<td><img src='image/btn_home_se_e.gif' name='home' border='0' title='Home'></td>";
}
else{
html +="<td><a href='index_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('home','','image/btn_home_se_e.gif',1)><img src='image/btn_home_e.gif' name='home' border='0' title='Home'></a></td>";
}

if (mstrSection == "services_se"){
html +="<td><img src='image/btn_services_se_e.gif' name='services' border='0' title='Securities Services'></td>";
}
else{
html +="<td><a href='services/services_intro_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('services','','image/btn_services_se_e.gif',1)><img src='image/btn_services_e.gif' name='services' border='0' title='Securities Services'></a></td>";
}

if (mstrSection == "hkmarket_se"){
html +="<td><img src='image/btn_hkmarket_se_e.gif' name='hkmarket' border='0' title='Hong Kong Market'></td>";
}
else{
html +="<td><a href='hkmarket/hkmarket_info_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('hkmarket','','image/btn_hkmarket_se_e.gif',1)><img src='image/btn_hkmarket_e.gif' name='hkmarket' border='0' title='Hong Kong Market'></a></td>";
}

if (mstrSection == "twmarket_se"){
html +="<td><img src='image/btn_twmarket_se_e.gif' name='twmarket' border='0' title='Taiwan Market'></td>";
}
else{
html +="<td><a href='twmarket/twmarket_info_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('twmarket','','image/btn_twmarket_se_e.gif',1)><img src='image/btn_twmarket_e.gif' name='twmarket' border='0' title='Taiwan Market'></a></td>";
}

if (mstrSection == "onlinetrade_se"){
html +="<td><img src='image/btn_onlinetrade_se_e.gif' name='onlinetrade' border='0' title='Internet Stock Trading'></td>";
}
else{
html +="<td><a href='javascript:neweWin(\"SEC_LOGIN\")' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('onlinetrade','','image/btn_onlinetrade_se_e.gif',1)><img src='image/btn_onlinetrade_e.gif' name='onlinetrade' border='0' title='Internet Stock Trading'></a></td>";
}

html +="<td><a href='demo/demo_e.html' target='_blank' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('onlinedemo','','image/btn_onlinedemo_se_e.gif',1)><img src='image/btn_onlinedemo_e.gif' name='onlinedemo' border='0' title='Platform Demo'></a></td>";

if (mstrSection == "contact_se"){
html +="<td><img src='image/btn_contact_se_e.gif' name='contactus' border='0' title='Contact Us'></td>";
}
else{
html +="<td><a href='contactus/contact_openac_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('contactus','','image/btn_contact_se_e.gif',1)><img src='image/btn_contact_e.gif' name='contactus' border='0' title='Contact Us'></a></td>";
}

html +="<td><img src='image/btn_bg.gif' border='0' width='73' height='25'></td>";
html +="<td><a href='http://www.fubonbank.com.hk/web/html/index_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('fubonbank','','image/btn_fubonbank_se_e.gif',1)><img src='image/btn_fubonbank_e.gif' name='fubonbank' border='0' title='Fubon Bank Home'></a></td>";
html +="<td><a href='javascript: mtdChangeLanguage()' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('chinese','','image/btn_chinese_se.gif',1)><img src='image/btn_chinese.gif' name='chinese' border='0' title='中文'></a></td>";
html +="</tr>";
html +="</table>";
html +="<table width='984' border='0' cellpadding='0' cellspacing='0' background='image/title_onlinetrade_e.gif'>";
html +="<tr>";
html +="<td width='190' height='34'>&nbsp;</td>";
html +="<td width='61' style='padding:6px 7px 5px 8px'><a href='javascript:neweWin(\"SEC_LOGIN\")' onmouseout=MM_swapImgRestore() onmouseover=MM_swapImage('login','','image/btn_login_se_e.gif',1)><img src='image/btn_login_e.gif' title='Login' name='login' width='61' height='22' border='0' id='login' /></a></td>";
html +="<td width='84' style='padding:6px 7px 5px 0px'><a href='contactus/contact_openac_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('openac','','image/btn_openac_se_e.gif',1)><img src='image/btn_openac_e.gif' title='Account Opening' name='openac' border='0' id='openac' /></a></td>";
html +="<td align='right'><table border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td style='padding:0px 8px 0px 8px'><a href='maintime/ist_maintime_e.html' class='grey'>System Maintenance Schedule</a></td>";
html +="<td><div align='center'><img src='image/vline.gif' width='5' height='13' border='0'/></div></td>";
html +="<td style='padding:0px 8px 0px 8px'><a href='http://www.fubonbank.com.hk/web/doc/iv_istsmod.pdf'  target='_blank' class='grey' height='50px'>Share Margin Overdraft List</a></td>";
//html +="<td><div align='center'><img src='image/vline.gif' width='5' height='13' border='0'/></div></td>";
//html +="<td style='padding:0px 13px 0px 8px'><a href='doc/WithholdingFundsPolicy.pdf' target='_blank' class='grey'>Withholding Funds Policy</a>";
html +="</tr>";
html +="</table></td>";
html +="</tr>";
html +="</table>";
html +="<table width='984' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td width='984'><img src='image/greyline.gif' width='984' height='1' /></td>";
html +="</tr>";
html +="</table>";
    }

else if(mstrLang == "e" && mstrlevel == "sec"){
html +="<table width='984' border='0' cellspacing='0' cellpadding='0'>";
html +="<tr>";
html +="<td background='../image/top_bg.gif'><span style='float: left'><img src='../image/fubonlogo.gif'/></span></td>";
html +="<td  background='../image/top_bg.gif' align='right'><div align='right'><img src='../image/tradelogo.gif'/></div></td>";
html +="</tr>";
html +="</table>";
html +="<table width='984' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";

if (mstrSection == "home_se"){
html +="<td><img src='../image/btn_home_se_e.gif' name='home' border='0' title='Home'></td>";
}
else{
html +="<td><a href='../index_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('home','','../image/btn_home_se_e.gif',1)><img src='../image/btn_home_e.gif' name='home' border='0' ../title='Home'></a></td>";
}

if (mstrSection == "services_se"){
html +="<td><img src='../image/btn_services_se_e.gif' name='services' border='0' title='Securities Services'></td>";
}
else{
html +="<td><a href='../services/services_intro_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('services','','../image/btn_services_se_e.gif',1)><img src='../image/btn_services_e.gif' name='services' border='0' title='Securities Services'></a></td>";
}

if (mstrSection == "hkmarket_se"){
html +="<td><img src='../image/btn_hkmarket_se_e.gif' name='hkmarket' border='0' title='Hong Kong Market'></td>";
}
else{
html +="<td><a href='../hkmarket/hkmarket_info_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('hkmarket','','../image/btn_hkmarket_se_e.gif',1)><img src='../image/btn_hkmarket_e.gif' name='hkmarket' border='0' title='Hong Kong Market'></a></td>";
}

if (mstrSection == "twmarket_se"){
html +="<td><img src='../image/btn_twmarket_se_e.gif' name='twmarket' border='0' title='Taiwan Market'></td>";
}
else{
html +="<td><a href='../twmarket/twmarket_info_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('twmarket','','../image/btn_twmarket_se_e.gif',1)><img src='../image/btn_twmarket_e.gif' name='twmarket' border='0' title='Taiwan Market'></a></td>";
}

if (mstrSection == "onlinetrade_se"){
html +="<td><img src='image/btn_onlinetrade_se_e.gif' name='onlinetrade' border='0' title='Internet Stock Trading'></td>";
}
else{
html +="<td><a href='javascript:neweWin(\"SEC_LOGIN\")' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('onlinetrade','','../image/btn_onlinetrade_se_e.gif',1)><img src='../image/btn_onlinetrade_e.gif' name='onlinetrade' border='0' title='Internet Stock Trading'></a></td>";
}

html +="<td><a href='../demo/demo_e.html' target='_blank' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('onlinedemo','','../image/btn_onlinedemo_se_e.gif',1)><img src='../image/btn_onlinedemo_e.gif' name='onlinedemo' border='0' title='Platform Demo'></a></td>";

if (mstrSection == "contact_se"){
html +="<td><img src='../image/btn_contact_se_e.gif' name='contactus' border='0' title='Contact Us'></td>";
}
else{
html +="<td><a href='../contactus/contact_openac_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('contactus','','../image/btn_contact_se_e.gif',1)><img src='../image/btn_contact_e.gif' name='contactus' border='0' title='Contact Us'></a></td>";
}
html +="<td><img src='../image/btn_bg.gif' border='0' width='73' height='25'></td>";
html +="<td><a href='http://www.fubonbank.com.hk/web/html/index_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('fubonbank','','../image/btn_fubonbank_se_e.gif',1)><img src='../image/btn_fubonbank_e.gif' name='fubonbank' border='0' title='Fubon Bank Home'></a></td>";
html +="<td><a href='javascript: mtdChangeLanguage()' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('chinese','','../image/btn_chinese_se.gif',1)><img src='../image/btn_chinese.gif' name='chinese' border='0' title='中文'></a></td>";
html +="</tr>";
html +="</table>";
html +="<table width='984' border='0' cellpadding='0' cellspacing='0' background='../image/title_onlinetrade_e.gif'>";
html +="<tr>";
html +="<td width='190' height='34'>&nbsp;</td>";
html +="<td width='61' style='padding:6px 7px 5px 8px'><a href='javascript:neweWin(\"SEC_LOGIN\")' onmouseout=MM_swapImgRestore() onmouseover=MM_swapImage('login','','../image/btn_login_se_e.gif',1)><img src='../image/btn_login_e.gif' title='Login' name='login' width='61' height='22' border='0' id='login' /></a></td>";
html +="<td width='84' style='padding:6px 7px 5px 0px'><a href='../contactus/contact_openac_e.html' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('openac','','../image/btn_openac_se_e.gif',1)><img src='../image/btn_openac_e.gif' title='Account Opening' name='openac' border='0' id='openac' /></a></td>";
html +="<td align='right'><table border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td style='padding:0px 8px 0px 8px'><a href='../maintime/ist_maintime_e.html' class='grey'>System Maintenance Schedule</a></td>";
html +="<td><div align='center'><img src='../image/vline.gif' width='5' height='13' border='0'/></div></td>";
html +="<td style='padding:0px 8px 0px 8px'><a href='http://www.fubonbank.com.hk/web/doc/iv_istsmod.pdf'  target='_blank' class='grey' height='50px'>Share Margin Overdraft List</a></td>";
//html +="<td><div align='center'><img src='../image/vline.gif' width='5' height='13' border='0'/></div></td>";
//html +="<td style='padding:0px 13px 0px 8px'><a href='../doc/WithholdingFundsPolicy.pdf' target='_blank' class='grey'>Withholding Funds Policy</a>";
html +="</tr>";
html +="</table></td>";
html +="</tr>";
html +="</table>";
html +="<table width='984' border='0' cellpadding='0' cellspacing='0'>";
html +="<tr>";
html +="<td width='984'><img src='../image/greyline.gif' width='984' height='1' /></td>";
html +="</tr>";
html +="</table>";
    }

	document.write(html);
}

mtdCreateTopIndex();
