var cnlist = new Array();
cnlist[0] = "insurance.jsp";
cnlist[1] = "life.jsp";
cnlist[2] = "pc.jsp";
cnlist[3] = "annuity.jsp";
cnlist[4] = "trust.jsp";
cnlist[5] = "securities.jsp";
cnlist[6] = "bank.jsp";
cnlist[7] = "futures.jsp";
cnlist[8] = "assets.jsp";
cnlist[9] = "culture.jsp";
cnlist[10] = "honors2007.jsp";
cnlist[11] = "honors.jsp";
cnlist[12] = "honors2005.jsp";
cnlist[13] = "corporate_history.jsp";
cnlist[14] = "corporate_history2005.jsp";
cnlist[15] = "corporate_history2004.jsp";
cnlist[16] = "corporate_history2003.jsp";
cnlist[17] = "corporate_history2002.jsp";
cnlist[18] = "corporate_history2001.jsp";
cnlist[19] = "corporate_history2000.jsp";
cnlist[20] = "corporate_history1999.jsp";
cnlist[21] = "corporate_history1998.jsp";
cnlist[22] = "corporate_history1997.jsp";
cnlist[23] = "corporate_history1996.jsp";
cnlist[24] = "corporate_history1995.jsp";
cnlist[25] = "corporate_history1994.jsp";
cnlist[26] = "corporate_history1993.jsp";
cnlist[27] = "news.jsp";
cnlist[28] = "life_ser.jsp";
cnlist[29] = "pc_ser.jsp";
cnlist[30] = "securities_ser.jsp";
cnlist[31] = "health.jsp";
cnlist[32] = "health_ser.jsp";
cnlist[33] = "health_ser.jsp#list1";
cnlist[34] = "health_ser.jsp#list2";
cnlist[35] = "health_ser.jsp#list3";
cnlist[36] = "health_ser.jsp#list4";
cnlist[37] = "health_ser.jsp#list5";
cnlist[38] = "health_ser.jsp#list6";
cnlist[39] = "health_ser.jsp#list7";
cnlist[40] = "health_ser.jsp#list8";
cnlist[41] = "health_ser.jsp#list9";
cnlist[42] = "health_ser.jsp#list10";
cnlist[43] = "health_ser.jsp#list11";
cnlist[44] = "health_ser.jsp#list12";

var big5list = new Array();
big5list[0] = "insurance.jsp";
big5list[1] = "life.jsp";
big5list[2] = "pc.jsp";
big5list[3] = "annuity.jsp";
big5list[4] = "trust.jsp";
big5list[5] = "securities.jsp";
big5list[6] = "bank.jsp";
big5list[7] = "futures.jsp";
big5list[8] = "assets.jsp";
big5list[9] = "culture.jsp";
big5list[10] = "honors2007.jsp";
big5list[11] = "honors.jsp";
big5list[12] = "honors2005.jsp";
big5list[13] = "corporate_history.jsp";
big5list[14] = "corporate_history2005.jsp";
big5list[15] = "corporate_history2004.jsp";
big5list[16] = "corporate_history2003.jsp";
big5list[17] = "corporate_history2002.jsp";
big5list[18] = "corporate_history2001.jsp";
big5list[19] = "corporate_history2000.jsp";
big5list[20] = "corporate_history1999.jsp";
big5list[21] = "corporate_history1998.jsp";
big5list[22] = "corporate_history1997.jsp";
big5list[23] = "corporate_history1996.jsp";
big5list[24] = "corporate_history1995.jsp";
big5list[25] = "corporate_history1994.jsp";
big5list[26] = "corporate_history1993.jsp";
big5list[27] = "news.jsp";
big5list[28] = "life_ser.jsp";
big5list[29] = "pc_ser.jsp";
big5list[30] = "securities_ser.jsp";
big5list[31] = "health.jsp";
big5list[32] = "health_ser.jsp";
big5list[33] = "health_ser.jsp#list1";
big5list[34] = "health_ser.jsp#list2";
big5list[35] = "health_ser.jsp#list3";
big5list[36] = "health_ser.jsp#list4";
big5list[37] = "health_ser.jsp#list5";
big5list[38] = "health_ser.jsp#list6";
big5list[39] = "health_ser.jsp#list7";
big5list[40] = "health_ser.jsp#list8";
big5list[41] = "health_ser.jsp#list9";
big5list[42] = "health_ser.jsp#list10";
big5list[43] = "health_ser.jsp#list11";
big5list[44] = "health_ser.jsp#list12";

var enlist = new Array();
enlist[0] = "insurance.jsp";
enlist[1] = "life.jsp";
enlist[2] = "pc.jsp";
enlist[3] = "annuity.jsp";
enlist[4] = "trust.jsp";
enlist[5] = "securities.jsp";
enlist[6] = "bank.jsp";
enlist[7] = "futures.jsp";
enlist[8] = "assets.jsp";
enlist[9] = "culture.jsp";
enlist[10] = "honors2007.jsp";
enlist[11] = "honors.jsp";
enlist[12] = "honors2005.jsp";
enlist[13] = "corporate_history.jsp";
enlist[14] = "corporate_history2005.jsp";
enlist[15] = "corporate_history2004.jsp";
enlist[16] = "news.jsp";
enlist[17] = "life_ser.jsp";
enlist[18] = "pc_ser.jsp";
enlist[19] = "securities_ser.jsp";
enlist[20] = "health.jsp";
enlist[21] = "health_ser.jsp";
enlist[22] = "health_ser.jsp#list1";
enlist[23] = "health_ser.jsp#list2";
enlist[24] = "health_ser.jsp#list3";
enlist[25] = "health_ser.jsp#list4";
enlist[26] = "health_ser.jsp#list5";
enlist[27] = "health_ser.jsp#list6";
enlist[28] = "health_ser.jsp#list7";
enlist[29] = "health_ser.jsp#list8";
enlist[30] = "health_ser.jsp#list9";
enlist[31] = "health_ser.jsp#list10";
enlist[32] = "health_ser.jsp#list11";
enlist[33] = "health_ser.jsp#list12";


function redirectCn()
{
	var localUrl = window.location.href;
    var pos = localUrl.lastIndexOf("/");
	var url = localUrl.substring(pos + 1, localUrl.length);
	var flag = 0;
	for(var i = 0; i < cnlist.length; i++)
	{
	    if(cnlist[i] == url)
		{
		    flag = 1;
			break;
		}
	}
	if(flag == 0)
	{
	    url = "/about/cn/redirect_en.jsp";
		window.location.href = url;
	}
	else if(flag == 1)
	{
	    window.location.href = "/about/cn/" + url;
	}
}

function redirectBig5()
{
	var localUrl = window.location.href;
    var pos = localUrl.lastIndexOf("/");
	var url = localUrl.substring(pos + 1, localUrl.length);
	var flag = 0;
	for(var i = 0; i < big5list.length; i++)
	{
	    if(big5list[i] == url)
		{
		    flag = 1;
			break;
		}
	}
	if(flag == 0)
	{
	    url = "/about/cn/redirect_en.jsp";
		window.location.href = url;	    
	}
	else if(flag == 1)
	{
		window.location.href = "/about/big5/" + url;
	}
}

function redirectEn()
{
	var localUrl = window.location.href;
    var pos = localUrl.lastIndexOf("/");
	var url = localUrl.substring(pos + 1, localUrl.length);
	var flag = 0;
	for(var i = 0; i < enlist.length; i++)
	{
	    if(enlist[i] == url)
		{
		    flag = 1;
			break;
		}
	}
	if(flag == 0)
	{
	    url = "/about/cn/redirect_en.jsp";
		window.location.href = url;    
	}
	else if(flag == 1)
	{
		window.location.href = "/about/en/" + url;
	}
}

