// constant definition
var SWITCH_INTERVAL=9000;	// milli seconds
var BANNER_RATIO = new Array(2/6, 2/6, 2/6);

//global variable definition
var mobjHeaderOverItem=null;
var mintSwitchBannerIndex=-1;

function mtdRandomBannerIndex(){
	var dblRand = Math.random();
	var dblSumRatio = 0;

	for (i=0; i<BANNER_RATIO.length; i++){
		dblSumRatio = parseFloat(dblSumRatio) + parseFloat(BANNER_RATIO[i]);
		if (dblRand <= dblSumRatio){	// random number fall into the corresponding image index
			if (i == mintSwitchBannerIndex){	// check if existing banner is already showing the same image
				return mtdRandomBannerIndex();	// generate another random number for another image
			}else{
				mintSwitchBannerIndex = i;
				return mintSwitchBannerIndex;
			}
		}
	}
	mintSwitchBannerIndex = 0;
	return 1;
}

function mtdSwitchBanner(){
	var objImg = document.getElementById("BANNER_SWITCH");
	var objLink = document.getElementById("BANNER_SWITCH_LINK");
	if (objImg == null || objLink == null) return;

	mtdRandomBannerIndex();
	if (mintSwitchBannerIndex == 0){
	    objImg.src = "../image/bn_t_topjs_41_" + mstrLang + ".gif";
		objLink.href = "ln_moMtg01_" + mstrLang + ".html";
		// objLink.target = "_blank";
	}else if (mintSwitchBannerIndex == 1){
	    objImg.src = "../image/bn_t_topjs_44_" + mstrLang + ".gif";
	    objLink.href = "ln_taxy0910_" + mstrLang + ".html";
	    //objLink.href = "http://trade.fubon.hk/services/services_promotion_" + mstrLang + ".html";
	}else{
	   objImg.src = "../image/bn_t_topjs_45_" + mstrLang + ".gif";
	   objLink.href = "cc_ccfbcard01_" + mstrLang + ".html";
	}

/*
	mintSwitchBannerIndex++;
	mintSwitchBannerIndex = mintSwitchBannerIndex % BANNER_SWITCH_COUNT;
	if (mintSwitchBannerIndex == 0){
		objImg.src = "../image/bn_t_topjs_01_" + mstrLang + ".gif";
		objLink.href = "#";
	}else if (mintSwitchBannerIndex == 1){
		objImg.src = "../image/bn_t_topjs_01.gif";
		objLink.href = "#";
	}else{
		objImg.src = "../image/bn_t_topjs_01.gif";
		objLink.href = "#";
	}
*/
	setTimeout("mtdSwitchBanner()", SWITCH_INTERVAL);
}

function mtdOnMouseOver(event){
	var objElm;
	var img;
	if (event.srcElement){
		objElm = event.srcElement;
	}else{
		objElm = event.target;
	}
	img = objElm.src;
//alert(img);
	img = img.substring(0, img.lastIndexOf("_")) + "_o" + img.substring(img.lastIndexOf("_", img.lastIndexOf("_")), img.length);
	objElm.src = img;
}

function mtdOnMouseOut(event){
	var objElm;
	var img;
	if (event.srcElement){
		objElm = event.srcElement;
	}else{
		objElm = event.target;
	}
	img = objElm.src;
	img = img.replace(/_o/g, '');
	objElm.src = img;
}

/*
function mtdHitChildMenuBar(amouseX, amouseY, aMenuTop, aMenuHeight){
	if (parseInt(amouseY) < parseInt(aMenuTop) || parseInt(amouseY) > parseInt(aMenuTop) + parseInt(aMenuHeight)){
		return false;
	}

	return true;
}
*/

function mtdHitChildMenuBar(astrCode, aobjToElm){
	if (aobjToElm == null) return false;
	var objChild = document.getElementById(astrCode);
	var objElmList = objChild.getElementsByTagName(aobjToElm.tagName);
	var i;
	for (i=0; i<=objElmList.length; i++){
		if (objElmList[i] == aobjToElm) return true;
	}
	return false;
}

function mtdHitMenuBar(amouseX, amouseY, aMenuTop, aMenuHeight){
	if (parseInt(amouseY) < parseInt(aMenuTop) || parseInt(amouseY) > parseInt(aMenuTop) + parseInt(aMenuHeight)){
		return false;
	}

	return true;
}

function mtdOnHeaderMouseOver(astrCode){
	if (mobjHeaderOverItem != null){
		mobjHeaderOverItem.style.visibility = "hidden";
		mobjHeaderOverItem.style.display = "none";
	}
	mobjHeaderOverItem = document.getElementById(astrCode);
	mobjHeaderOverItem.style.visibility = "visible";
	mobjHeaderOverItem.style.display = "inline";
}

function mtdOnHeaderMouseOut(event, aobjElm, astrCode){
	var mouseX, mouseY, submenu, menu;
	mouseX = event.pageX ? event.pageX : event.x;
	mouseY = event.pageY ? event.pageY : event.y;

	menu = aobjElm.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
	submenu = document.getElementById(astrCode);
	var toElm;
	if (aobjElm.contains){
		toElm = event.toElement;
	}else{
		toElm = event.relatedTarget;
	}
	if (!mtdHitMenuBar(mouseX, mouseY, menu.offsetTop, menu.offsetHeight) &&
		!mtdHitChildMenuBar(astrCode, toElm)){
		mobjHeaderOverItem.style.visibility = "hidden";
		mobjHeaderOverItem.style.display = "none";
		mtdOnHeaderMouseOver("DEFAULT");
	}
}

function mtdOnSubMenuMouseOut(event, aobjElm, astrCode){
	var mouseX, mouseY, submenu;
	mouseX = event.pageX ? event.pageX : event.x;
	mouseY = event.pageY ? event.pageY : event.y;

	var objTarget;
	if (event.relatedTarget){
		objTarget = event.relatedTarget;
	}else{
		objTarget = event.toElement;
	}

	submenu = document.getElementById(astrCode);
	if (!mtdHitChildMenuBar(astrCode, objTarget)){
		mobjHeaderOverItem.style.visibility = "hidden";
		mobjHeaderOverItem.style.display = "none";
		mtdOnHeaderMouseOver("DEFAULT");
	}
}

function mtdCreateHeader(){
	var html="";

	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td align='left' valign='top'><a href='index_" + mstrLang + ".html'><img src='../image/topjs_01.gif'></a><img src='../image/topjs_01a.gif'></td>";
	html += "</tr>";
	html += "<tr>";
	html += "<td height=9 style='background-color: #B2CADB'></td>";
	html += "</tr>";
	html += "<tr>";
	html += "<td>";
	html += "<table border=0 cellpadding=0 cellspacing=0>";
	html += "<tr>";
	html += "<td width=12 style='background-color: #004E87'></td>";
	html += "<td><a href='iv_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"INVESTMENT\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"INVESTMENT\")' src='../image/topjs_07_" + mstrLang + ".gif'></a></td>";
	html += "<td><img src='../image/topjs_08.gif'></td>";
	html += "<td><a href='is_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"INSURANCE\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"INSURANCE\")' src='../image/topjs_15_" + mstrLang + ".gif'></a></td>";
	html += "<td><img src='../image/topjs_08.gif'></td>";
	html += "<td><a href='cc_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"CARD\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"CARD\")' src='../image/topjs_16_" + mstrLang + ".gif'></a></td>";
	html += "<td><img src='../image/topjs_08.gif'></td>";
	html += "<td><a href='ln_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"LOAN\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"LOAN\")' src='../image/topjs_17_" + mstrLang + ".gif'></a></td>";
	html += "<td><img src='../image/topjs_08.gif'></td>";
	html += "<td><a href='dp_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"DEPOSIT\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"DEPOSIT\")' src='../image/topjs_13_" + mstrLang + ".gif'></a></td>";
	html += "<td><img src='../image/topjs_08.gif'></td>";
	html += "<td><a href='cs_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"COMMERCIAL\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"COMMERCIAL\")' src='../image/topjs_10_" + mstrLang + ".gif'></a></td>";
	html += "<td><img src='../image/topjs_08.gif'></td>";
	html += "<td><a href='eb_index_" + mstrLang + ".html'><img onmouseover='mtdOnHeaderMouseOver(\"IBANKING\")' onmouseout='mtdOnHeaderMouseOut(event, this, \"IBANKING\")' src='../image/topjs_11_" + mstrLang + ".gif'></a></td>";
	if (mstrLang == "e"){
		html += "<td width=8 style='background-color: #004E87'></td>";
	}else{
		html += "<td width=75 style='background-color: #004E87'></td>";
	}
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td><a href='au_about00_" + mstrLang + ".html'><img src='../image/topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td><a href='au_contact_" + mstrLang + ".html'><img src='../image/topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td><a href='sh_inapp01_" + mstrLang + ".html'><img src='../image/topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "<td><a href='javascript: mtdChangeLanguage()'><img src='../image/topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "<tr>";
	html += "<td colspan=4><a name='BANNER_SWITCH_LINK' id='BANNER_SWITCH_LINK' href='#'><img name='BANNER_SWITCH' id='BANNER_SWITCH' src=''></a></td>";
	//html += "<td colspan=4><a name='BANNER_SWITCH_LINK' id='BANNER_SWITCH_LINK' href='#'><img name='BANNER_SWITCH' id='BANNER_SWITCH' src='javascript:mtdSwitchBanner();'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
	//html += "<tr>";
	//html += "<td colspan=2>";

html += "<div>";
html += "<div name='DEFAULT' id='DEFAULT' style='visibility: hidden; display:none'>";
	html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	//html += "<tr name='DEFAULT' id='DEFAULT' style='position: static; visibility: hidden; display:none'>";
	html += "<td>";
	html += "<img src='../image/topjs_12.gif'>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";

html += "<div name='INVESTMENT' id='INVESTMENT' onmouseout='mtdOnSubMenuMouseOut(event, this, \"INVESTMENT\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	//html += "<tr name='INVESTMENT' id='INVESTMENT' onmouseout='mtdOnSubMenuMouseOut(event, this, \"INVESTMENT\")' style='visibility: hidden; display:none'>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
    html += "<td><a href='mktresearch_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='iv_ut01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
                 html += "<td><a href='http://trade.fubon.hk/index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='iv_cld01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='iv_for01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='iv_bis01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_06_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='iv_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/iv_topjs_07_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";


html += "<div name='CARD' id='CARD' onmouseout='mtdOnSubMenuMouseOut(event, this, \"CARD\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
	html += "<td><a href='cc_ccfbcard01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cc_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='javaScript:miniWindow(\"elite_" + mstrLang + "\");'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cc_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cc_ccwelcome00_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cc_topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cc_cbp00_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cc_topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cc_icapip01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cc_topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cc_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cc_topjs_06_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";


html += "<div name='LOAN' id='LOAN' onmouseout='mtdOnSubMenuMouseOut(event, this, \"LOAN\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
	html += "<td><a href='ln_ploan00_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/ln_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='ln_moMtg01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/ln_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='ln_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/ln_topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";

html += "<div name='DEPOSIT' id='DEPOSIT' onmouseout='mtdOnSubMenuMouseOut(event, this, \"DEPOSIT\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	//html += "<tr name='DEPOSIT' id='DEPOSIT' onmouseout='mtdOnSubMenuMouseOut(event, this, \"DEPOSIT\")' style='visibility: hidden; display:none'>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
	html += "<td><a href='dp_rmb01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/dp_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='dp_mmm01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/dp_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='dp_mmmdr01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/dp_topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='dp_mcs01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/dp_topjs_04_" + mstrLang + ".gif'></a></td>";
	//html += "<td width=10></td>";
	//html += "<td><a href='dp_tsp01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/dp_topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='dp_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/dp_topjs_06_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";

html += "<div name='COMMERCIAL' id='COMMERCIAL' onmouseout='mtdOnSubMenuMouseOut(event, this, \"COMMERCIAL\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	//html += "<tr name='COMMERCIAL' id='COMMERCIAL' onmouseout='mtdOnSubMenuMouseOut(event, this, \"COMMERCIAL\")' style='visibility: hidden; display:none'>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
	html += "<td><a href='cs_smebkg01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cs_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cs_clend01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cs_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cs_tfin01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cs_topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cs_hpl01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cs_topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='cs_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/cs_topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";

html += "<div name='IBANKING' id='IBANKING' onmouseout='mtdOnSubMenuMouseOut(event, this, \"IBANKING\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	//html += "<tr name='IBANKING' id='IBANKING' onmouseout='mtdOnSubMenuMouseOut(event, this, \"IBANKING\")' style='visibility: hidden; display:none'>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
	html += "<td><a href='javascript:neweWin(\"IBANK_LOGIN\")'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/eb_topjs_01_" + mstrLang + ".gif'></a></td>";
	//html += "<td><a href='eb_maint02_"+ mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/eb_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='eb_Overview_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/eb_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='eb_skit01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/eb_topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='eb_imsg01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/eb_topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='eb_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/eb_topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";
html += "</div>";

html += "<div name='INSURANCE' id='INSURANCE' onmouseout='mtdOnSubMenuMouseOut(event, this, \"INSURANCE\")' style='visibility: hidden; display:none'>";
html += "<table width=776 cellpadding=0 cellspacing=0 border=0>";
html += "<tr>";
	html += "<td>";
	html += "<table cellpadding=0 cellspacing=0 border=0>";
	html += "<tr>";
	html += "<td width=14></td>";
    html += "<td><a href='is_wlife01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_01_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='is_zhomp01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_02_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='is_zhtravel01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_03_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='is_zhpacc01_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_04_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='is_zhc_office_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_05_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='is_zhc_gpaccident_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_06_" + mstrLang + ".gif'></a></td>";
	html += "<td width=10></td>";
	html += "<td><a href='is_index_" + mstrLang + ".html'><img onmouseover='mtdOnMouseOver(event)' onmouseout='mtdOnMouseOut(event)' src='../image/is_topjs_07_" + mstrLang + ".gif'></a></td>";
	html += "</tr>";
	html += "</table>";
	html += "</td>";
	html += "</tr>";
html += "</table>";
html += "</div>";

//	html += "</table>";
	html += "</td>";
	html += "</tr>";
	html += "</table>";

	document.write(html);
}

mtdCreateHeader();
mtdSwitchBanner();
mtdOnHeaderMouseOver("DEFAULT");
//mobjHeaderOverItem = document.getElementById("DEFAULT");
//setTimeout("mtdSwitchBanner()", SWITCH_INTERVAL);
