/*
 * Language setting
 * 
 * English - e
 * 
 * Traditional Chinese - c
 * 
 */
var mstrLang =  "e";
/*
 * The highlighting menu item name
 */
var mstrHighlightItem = "";
/*
 * The page code
 */
var mstrPageCode = "DEFAULT";

var mstrPromoteBanner = "";

var mintHighlightIdle = 1000;


function mtdChangeLanguage(){
	if (mstrLang == "e"){
		if ( window.location.pathname == window.location.pathname.replace("_e.xml", "_c.xml")) 
			window.location = window.location.pathname.replace("_e.htm", "_c.htm");
		else 
			window.location = window.location.pathname.replace("_e.xml", "_c.xml");
	}else{
		if (window.location.pathname == window.location.pathname.replace("_c.xml", "_e.xml"))
			window.location = window.location.pathname.replace("_c.htm", "_e.htm");
		else 
			window.location = window.location.pathname.replace("_c.xml", "_e.xml");
	}
}

function mtdContentPopup(astrLocation){
	window.open(astrLocation, "CONT_POP", "width=600, height=720, top=0,left=100,scrollbars=yes, location=no, menubar=0");
}

function mtdBack(){
	window.history.back();
}

function mtdClose(){
	window.close();
}
/*---------- eBanking System Logon ----------*/
/*--- Begin ----- End */

function neweWin(destination){
	if (destination=="IBANK_LOGIN")
	window.open('https://www.ebank.fubonbank.com.hk/index0128.html', 'IBANK_LOGIN', 'top=0,left=0,Height=668,Width=1024,innerHeight=668,innerWidth=1024,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
}

/*---------- eBanking System Maintenance ----------*/
/*--- Begin
function neweWin(destination){
	if (destination=="IBANK_LOGIN")
	window.open('http://www.fubonbank.com.hk/web/html/eb_maint_00.html', 'IBANK_LOGIN', 'top=0,left=0,Height=500,Width=800,innerHeight=500,innerWidth=800,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
}
----- End */

/*---------- eBanking System Logon Plus Maintenenace Notice ----------*/
/*--- Begin
function neweWin(destination){
	if (destination=="IBANK_LOGIN")
	window.open('https://www.ebank.fubonbank.com.hk/index0128.html', 'IBANK_LOGIN', 'top=188,left=0,Height=320,Width=800,innerHeight=320,innerWidth=800,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
	window.open('eb_maint07pop.html', 'IBANK_NOTICE', 'top=0,left=0,Height=150,Width=680,innerHeight=150,innerWidth=680,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
}
----- End */
/*----------- Keep For Reference -----------*/
/*--- Begin
function neweWin(destination){
	if (destination=="SEC_LOGIN")
	window.open('../../ist/html/sh_construction.html', 'IBANK_LOGIN', 'top=0,left=0,Height=598,Width=800,innerHeight=598,innerWidth=800,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
}
----- End */
function miniWindow(destination)
{
	if (destination=="elite_c")
	window.open('http://www.fubonbank.com.hk/Elite/html/index_c.html', 'Elite', 'top=0,left=0,Height=668,Width=1024,innerHeight=668,innerWidth=1024,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
	if (destination=="elite_e")
	window.open('http://www.fubonbank.com.hk/Elite/html/index_e.html', 'Elite', 'top=0,left=0,Height=668,Width=1024,innerHeight=668,innerWidth=1024,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
	if (destination=="dp_dpspop_c")
	window.open('http://www.fubonbank.com.hk/web/html/dp_dpspop_c.html', 'Deposit', 'top=0,left=0,Height=580,Width=520,innerHeight=580,innerWidth=520,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
	if (destination=="dp_dpspop_e")
	window.open('http://www.fubonbank.com.hk/web/html/dp_dpspop_e.html', 'Deposit', 'top=0,left=0,Height=580,Width=520,innerHeight=580,innerWidth=520,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no');
}


