// JavaScript Document
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_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_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 MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) 
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
var url = window.location.href;
var section = url.substr(url.lastIndexOf("/")+1);
var menu1_link = new Array(null);
menu1_link.push("profile.html");
menu1_link.push("cha_group.html");
menu1_link.push("global_advisory.html");
menu1_link.push("business_network.html");
	
var menu2_link = new Array(null);
menu2_link.push("asset_management.html");
menu2_link.push("strategic_investment.html");
menu2_link.push("real_estate.html");
menu2_link.push("funds.html");
menu2_link.push("financial_services.html");
	
var menu3_link = new Array(null);
menu3_link.push("director.html");
menu3_link.push("advisory_board.html");
	
var menu4_link = new Array(null);
menu4_link.push("contact_us.html");

section1_on = false;
section2_on = false;
section3_on = false;
section4_on = false;
function top_menu(){
	
	document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"top_menu_print\" style=\"display: none\">");
	document.writeln("<tr>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");

	document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"top_menu\">");
	document.writeln("<tr>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td>");
	document.writeln("<!-- Sub_menu 01 Start -->");
	document.writeln("<div class=\"sub_menu\" id=\"sm1\" style=\"visibility:hidden; z-index:800\">");
	document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#daebf9\">");
	document.writeln("<tr>");
	document.writeln("<td><a href=\"..\/about\/profile.html\"><img src=\"..\/..\/images\/img_sub_11_off.gif\" name=\"sm1_1\" id=\"sm1_1\" onmouseover=\"MM_swapImage(\'sm1_1\',\'\',\'..\/..\/images\/img_sub_11_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td><a href=\"..\/about\/cha_group.html\"><img src=\"..\/..\/images\/img_sub_12_off.gif\" name=\"sm1_2\" id=\"sm1_2\"onmouseover=\"MM_swapImage(\'sm1_2\',\'\',\'..\/..\/images\/img_sub_12_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td><a href=\"..\/about\/global_advisory.html\"><img src=\"..\/..\/images\/img_sub_13_off.gif\" name=\"sm1_3\" id=\"sm1_3\"onmouseover=\"MM_swapImage(\'sm1_3\',\'\',\'..\/..\/images\/img_sub_13_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");
	document.writeln("<\/div>");
	document.writeln("<div class=\"sub_menu_hit_area\" id=\"sm1_hit\" style=\"visibility:hidden;z-index:750\">");
	document.writeln("<img src=\"..\/..\/images\/spacer.gif\" width=\"350\" height=\"30\"onmouseout=\"MM_showHideLayers(\'sm1\',\'\',\'hide\')\"\/><\/div>");
	document.writeln("<!-- Sub_menu 01 End -->");
	for (i=0; i<=(menu1_link.length); i+=1)
	{
		if (menu1_link[i] == section)
		{
			section1_on = true;
		}
	}
	if (section1_on)
	{
		document.writeln("<a href=\"..\/about\/profile.html\"><img src=\"..\/..\/images\/btn_about_on.gif\" name=\"btn_about\" width=\"120\" height=\"24\" id=\"btn_about\"style=\"cursor:pointer;\" onmouseover=\"MM_showHideLayers(\'sm1\',\'\',\'show\',\'sm1_hit\',\'\',\'show\',\'sm2\',\'\',\'hide\',\'sm2_hit\',\'\',\'hide\',\'sm3\',\'\',\'hide\',\'sm3_hit\',\'\',\'hide\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	} else {
		document.writeln("<a href=\"..\/about\/profile.html\"><img src=\"..\/..\/images\/btn_about_off.gif\" name=\"btn_about\" width=\"120\" height=\"24\" id=\"btn_about\"style=\"cursor:pointer;\" onmouseover=\"MM_swapImage(\'btn_about\',\'\',\'..\/..\/images\/btn_about_on.gif\',1);MM_showHideLayers(\'sm1\',\'\',\'show\',\'sm1_hit\',\'\',\'show\',\'sm2\',\'\',\'hide\',\'sm2_hit\',\'\',\'hide\',\'sm3\',\'\',\'hide\',\'sm3_hit\',\'\',\'hide\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	}
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td>");
	document.writeln("<!-- Sub_menu 02 Start -->");
	document.writeln("<div class=\"sub_menu\" id=\"sm2\" style=\"visibility:hidden;z-index:800\">");
	document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#daebf9\">");
	document.writeln("<tr>");
	document.writeln("<td><a href=\"..\/business\/financial_services.html\"><img src=\"..\/..\/images\/img_sub_21_off.gif\"name=\"sm2_1\" id=\"sm2_1\" onmouseover=\"MM_swapImage(\'sm2_1\',\'\',\'..\/..\/images\/img_sub_21_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td><a href=\"..\/business\/real_estate.html\"><img src=\"..\/..\/images\/img_sub_22_off.gif\"name=\"sm2_2\" id=\"sm2_2\" onmouseover=\"MM_swapImage(\'sm2_2\',\'\',\'..\/..\/images\/img_sub_22_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td><a href=\"..\/business\/strategic_investment.html\"><img src=\"..\/..\/images\/img_sub_23_off.gif\"name=\"sm2_3\" id=\"sm2_3\" onmouseover=\"MM_swapImage(\'sm2_3\',\'\',\'..\/..\/images\/img_sub_23_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");
	document.writeln("<\/div>");
	document.writeln("<div class=\"sub_menu_hit_area\" id=\"sm2_hit\" style=\"visibility:hidden;z-index:750\">");
	document.writeln("<img src=\"..\/..\/images\/spacer.gif\" width=\"396\" height=\"30\"onmouseout=\"MM_showHideLayers(\'sm2\',\'\',\'hide\')\"\/><\/div>");
	document.writeln("<!-- Sub_menu 02 End -->");
	for (i=0; i<=(menu2_link.length); i+=1)
	{
		if (menu2_link[i] == section)
		{
			section2_on = true;
		}
	}
	
	if (section2_on)
	{
		document.writeln("<a href=\"..\/business\/financial_services.html\"><img src=\"..\/..\/images\/btn_business_on.gif\" name=\"btn_business\" width=\"120\" height=\"24\" id=\"btn_business\"style=\"cursor:pointer;\" onmouseover=\"MM_showHideLayers(\'sm1\',\'\',\'hide\',\'sm1_hit\',\'\',\'hide\',\'sm2\',\'\',\'show\',\'sm2_hit\',\'\',\'show\',\'sm3\',\'\',\'hide\',\'sm3_hit\',\'\',\'hide\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	} else {
		document.writeln("<a href=\"..\/business\/financial_services.html\"><img src=\"..\/..\/images\/btn_business_off.gif\" name=\"btn_business\" width=\"120\" height=\"24\" id=\"btn_business\"style=\"cursor:pointer;\" onmouseover=\"MM_swapImage(\'btn_business\',\'\',\'..\/..\/images\/btn_business_on.gif\',1);MM_showHideLayers(\'sm1\',\'\',\'hide\',\'sm1_hit\',\'\',\'hide\',\'sm2\',\'\',\'show\',\'sm2_hit\',\'\',\'show\',\'sm3\',\'\',\'hide\',\'sm3_hit\',\'\',\'hide\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	}
	
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td>");
	document.writeln("<!-- Sub_menu 03 Start -->");
	document.writeln("<div class=\"sub_menu\" id=\"sm3\" style=\"visibility:hidden;z-index:800\">");
	document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#daebf9\">");
	document.writeln("<tr>");
	document.writeln("<td><a href=\"..\/team\/director.html\"><img src=\"..\/..\/images\/img_sub_31_off.gif\"name=\"sm3_1\" id=\"sm3_1\" onmouseover=\"MM_swapImage(\'sm3_1\',\'\',\'..\/..\/images\/img_sub_31_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<td><a href=\"..\/team\/advisory_board.html\"><img src=\"..\/..\/images\/img_sub_32_off.gif\"name=\"sm3_2\" id=\"sm3_2\" onmouseover=\"MM_swapImage(\'sm3_2\',\'\',\'..\/..\/images\/img_sub_32_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" \/><\/a><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");
	document.writeln("<\/div>");
	document.writeln("<div class=\"sub_menu_hit_area\" id=\"sm3_hit\" style=\"visibility:hidden;z-index:750\">");
	document.writeln("<img src=\"..\/..\/images\/spacer.gif\" width=\"340\" height=\"30\"onmouseout=\"MM_showHideLayers(\'sm3\',\'\',\'hide\')\"\/><\/div>");
	document.writeln("<!-- Sub_menu 03 End -->");
	for (i=0; i<=(menu3_link.length); i+=1)
	{
		if (menu3_link[i] == section)
		{
			section3_on = true;
		}
	}
	
	if (section3_on)
	{
		document.writeln("<a href=\"..\/team\/director.html\"><img src=\"..\/..\/images\/btn_team_on.gif\" name=\"btn_team\" width=\"120\" height=\"24\" id=\"btn_team\"style=\"cursor:pointer;\" onmouseover=\"MM_showHideLayers(\'sm1\',\'\',\'hide\',\'sm1_hit\',\'\',\'hide\',\'sm2\',\'\',\'hide\',\'sm2_hit\',\'\',\'hide\',\'sm3\',\'\',\'show\',\'sm3_hit\',\'\',\'show\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	} else {
		document.writeln("<a href=\"..\/team\/director.html\"><img src=\"..\/..\/images\/btn_team_off.gif\" name=\"btn_team\" width=\"120\" height=\"24\" id=\"btn_team\"style=\"cursor:pointer;\" onmouseover=\"MM_swapImage(\'btn_team\',\'\',\'..\/..\/images\/btn_team_on.gif\',1);MM_showHideLayers(\'sm1\',\'\',\'hide\',\'sm1_hit\',\'\',\'hide\',\'sm2\',\'\',\'hide\',\'sm2_hit\',\'\',\'hide\',\'sm3\',\'\',\'show\',\'sm3_hit\',\'\',\'show\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	}
	
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	for (i=0; i<=(menu4_link.length); i+=1)
	{
		if (menu4_link[i] == section)
		{
			section4_on = true;
		}
	}
	
	if (section4_on)
	{
		document.writeln("<td><a href=\"..\/contact\/contact_us.html\"><img src=\"..\/..\/images\/btn_contact_on.gif\" name=\"btn_contact\" width=\"120\" height=\"24\" id=\"btn_contact\"style=\"cursor:pointer;\" onmouseover=\"MM_showHideLayers(\'sm1\',\'\',\'hide\',\'sm1_hit\',\'\',\'hide\',\'sm2\',\'\',\'hide\',\'sm2_hit\',\'\',\'hide\',\'sm3\',\'\',\'hide\',\'sm3_hit\',\'\',\'hide\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	} else {
		document.writeln("<td><a href=\"..\/contact\/contact_us.html\"><img src=\"..\/..\/images\/btn_contact_off.gif\" name=\"btn_contact\" width=\"120\" height=\"24\" id=\"btn_contact\"style=\"cursor:pointer;\" onmouseover=\"MM_swapImage(\'btn_contact\',\'\',\'..\/..\/images\/btn_contact_on.gif\',1); MM_showHideLayers(\'sm1\',\'\',\'hide\',\'sm1_hit\',\'\',\'hide\',\'sm2\',\'\',\'hide\',\'sm2_hit\',\'\',\'hide\',\'sm3\',\'\',\'hide\',\'sm3_hit\',\'\',\'hide\')\" onmouseout=\"MM_swapImgRestore()\"\/><\/a><\/td>");
	}
	
	document.writeln("<td><div id=\"menu_sep\"><\/div><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>")
}

function top_nav()
{
	document.writeln("<table width=\"980\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("<tr>");
	/*document.writeln("<td width=\"50%\"><div id=\"logo_area\"><a href=\"..\/index.html\"><img src=\"..\/..\/images\/img_logo.gif\" \/><\/a><img src=\"..\/..\/images\/img_20th.gif\" width=\"90\" height=\"35\"\/><\/div><\/td>");*/
	document.writeln("<td width=\"50%\"><div id=\"logo_area\"><a href=\"..\/index.html\"><img src=\"..\/..\/images\/img_logo.gif\" \/><\/a><\/div><\/td>");
	document.writeln("<td width=\"50%\">");
	document.writeln("<div id=\"lang_area\">");
	document.writeln("<table border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("<tr>");
	document.writeln("<td align=\"center\"><a href=\"..\/index.html\"><img src=\"..\/..\/images\/btn_home_off.gif\" name=\"home\" width=\"30\" height=\"15\" id=\"home\" onmouseover=\"MM_swapImage(\'home\',\'\',\'..\/..\/images\/btn_home_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" style=\"cursor:pointer;\" class=\"lang_content\"\/><\/a><\/td>");
	document.writeln("<td width=\"5\" align=\"center\"><img src=\"..\/..\/images\/img_sep.gif\" width=\"2\" height=\"15\" hspace=\"5\" \/><\/td>");
	document.writeln("<td align=\"center\"><a href=\"javascript:chLang(1);\" onmouseover=\"MM_swapImage(\'eng\',\'\',\'..\/..\/images\/btn_eng_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" style=\"cursor:pointer;\"><img src=\"..\/..\/images\/btn_eng_off.gif\" name=\"eng\" width=\"30\" height=\"15\" id=\"eng\" class=\"lang_content\"\/><\/a><\/td>");
	document.writeln("<td width=\"5\" align=\"center\"><img src=\"..\/..\/images\/img_sep.gif\" width=\"2\" height=\"15\" hspace=\"5\" \/><\/td>");
	document.writeln("<td align=\"center\"><a href=\"javascript:chLang(2);\" onmouseover=\"MM_swapImage(\'tc\',\'\',\'..\/..\/images\/btn_tc_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" style=\"cursor:pointer;\"><img src=\"..\/..\/images\/btn_tc_off.gif\" name=\"tc\" width=\"30\" height=\"15\" id=\"tc\"class=\"lang_content\"\/><\/a><\/td>");
	document.writeln("<td width=\"5\" align=\"center\"><img src=\"..\/..\/images\/img_sep.gif\" width=\"2\" height=\"15\" hspace=\"5\" \/><\/td>");
	document.writeln("<td align=\"center\"><a href=\"javascript:chLang(3);\" onmouseover=\"MM_swapImage(\'sc\',\'\',\'..\/..\/images\/btn_sc_on.gif\',1)\" onmouseout=\"MM_swapImgRestore()\" style=\"cursor:pointer;\"><img src=\"..\/..\/images\/btn_sc_off.gif\" name=\"sc\" width=\"30\" height=\"15\" id=\"sc\"class=\"lang_content\"\/><\/a><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");
	document.writeln("<\/div>")
	document.writeln("<\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>")
	
}

function changecss1()
{
	SetCookie("css_style", "1");
	var layoutsheet = document.getElementById("stylecss");
	layoutsheet.href="../../css/style.css";
}

function changecss2()
{
	SetCookie("css_style", "2");
	var layoutsheet = document.getElementById("stylecss");
	layoutsheet.href="../../css/style2.css";
}

function changecss3()
{
	SetCookie("css_style", "3");
	var layoutsheet = document.getElementById("stylecss");
	layoutsheet.href="../../css/style3.css";
}

function MM_callJS(jsStr) {
	return eval(jsStr)
}

function text_size()
{

	document.writeln("<table border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">");
	document.writeln("<tr id=\"enlarge_fonts\">");
	document.writeln("<td class=\"fontsize_txt\" width=\"15\" style=\"padding-bottom: 3px\"><a onclick=\"jprint();\" href=\"javascript:void(0);\"  id=\"btn_print\"><img src=\"..\/..\/images\/img_printer.jpg\" \/></a><\/td>");
	document.writeln("<td class=\"fontsize_txt\" width=\"190\"><a onclick=\"jprint();\" href=\"javascript:void(0);\"  id=\"btn_print\"><span style=\"color:#656565; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; text-decoration:none; padding-left: 3px\">Printer Friendly Page</font></a><br><img src=\"spacer.gif\" width=\"110\" height=\"1\"><\/td>");
	document.writeln("<td class=\"fontsize_txt\" width=\"135\">Enlarge Typeface:<br><img src=\"spacer.gif\" width=\"90\" height=\"1\"><\/td>");
	document.writeln("<td><img src=\"..\/..\/images\/btn_chars_1.gif\" width=\"23\" height=\"25\" class=\"fontsize_content\" onclick=\"MM_callJS(\'changecss1()\')\" style=\"cursor:pointer;\"\/><\/td>");
	document.writeln("<td><img src=\"..\/..\/images\/btn_chars_2.gif\" width=\"23\" height=\"25\" class=\"fontsize_content\" onclick=\"MM_callJS(\'changecss2()\')\" style=\"cursor:pointer;\"\/><\/td>");
	document.writeln("<td><img src=\"..\/..\/images\/btn_chars_3.gif\" width=\"23\" height=\"25\" class=\"fontsize_content\" onclick=\"MM_callJS(\'changecss3()\')\" style=\"cursor:pointer;\"\/><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>")

}

function footer()
{
	document.writeln("<div id=\"footer\">");
	document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.writeln("<tr>");
	document.writeln("<td width=\"50%\" class=\"copyright\">&copy;Copyright 2009 Mingly Corporation. All rights reserved.<\/td>");
	document.writeln("<td width=\"50%\"><div id=\"footerlink\"><a href=\"..\/footer\/sitemap.html\" class=\"linking\">Sitemap<\/a> | <a href=\"..\/footer\/termsofuse.html\" class=\"linking\">Terms of Use<\/a><\/div><\/td>");
	document.writeln("<\/tr>");
	document.writeln("<\/table>");
	document.writeln("<\/div>");

	QueryString.keys = new Array();
	QueryString.values = new Array();
	QueryString_Parse();


	var print = QueryString('print');

	if(print == "friendly"){
		document.getElementById("btn_print").style.display = "none";
		document.getElementById("top_menu").style.display = "none";
		document.getElementById("top_banner").style.display = "none";
		document.getElementById("top_banner_show").style.display = "none";
		document.getElementById("top_banner_hidden").style.display = "";
		document.getElementById("top_header").style.display = "";
		document.getElementById("left_menu_group").style.display = "none";
		document.getElementById("enlarge_fonts").style.display = "none";

		if (document.getElementById("global_map")) {
		document.getElementById("global_map").style.display = "none";
		}

		document.getElementById("main_content").align = "left";
		
		if (document.getElementById("photogalleryphotobox")) {  // Use with photogallery_v1.1.js for solve IE cannot print photo
			showgallery(photogalleryDirPath, photoYear, photoDir, allPhoto, photoAt);
		}
		
		window.print();
	}
}

function jprint(){
	var path = location.href;
	var i = path.lastIndexOf('/');
	var j = path.lastIndexOf('.');
	var filename = path.substring(i+1,path.length);



	window.open('' + filename + '?print=friendly','', 'height=600, width=620, top=0, left=0, toolbar=no, menubar=yes, scrollbars=yes, resizable=yes,location=no, status=no');


}

	function QueryString(key)
	{
		var value = null;
		for (var i=0;i<QueryString.keys.length;i++)
		{
			if (QueryString.keys[i]==key)
			{
				value = QueryString.values[i];
				break;
			}
		}
		return value;
	}



	function QueryString_Parse()
	{
		var query = window.location.search.substring(1);
		var pairs = query.split("&");
		
		for (var i=0;i<pairs.length;i++)
		{
			var pos = pairs[i].indexOf('=');
			if (pos >= 0)
			{
				var argname = pairs[i].substring(0,pos);
				var value = pairs[i].substring(pos+1);
				QueryString.keys[QueryString.keys.length] = argname;
				QueryString.values[QueryString.values.length] = value;		
			}
		}

	}
	


function chLang(target) {
	var link = parent.location.href;
	var endLink = link.length;
	var i;
	var n;
	var found = 0;
	var chLinkeng="";
	
	for(i = 0; i <= endLink; i++) {
		n = i + 3;
		if (link.substring(i, n) == "chi") {			
			if (target == 1) {
				chLinkeng = link.substring(0, i) + "eng" + link.substring(n, endLink);
				parent.location.href = chLinkeng;
			} else if (target == 3) {
				chLinkeng = link.substring(0, i) + "sch" + link.substring(n, endLink);
				parent.location.href = chLinkeng;
			}
			break;
		} else if (link.substring(i, n) == "sch"){
			if (target == 1) {
				chLinkeng = link.substring(0, i) + "eng" + link.substring(n, endLink);
				parent.location.href = chLinkeng;
			} else if (target == 2) {
				chLinkeng = link.substring(0, i) + "chi" + link.substring(n, endLink);
				parent.location.href = chLinkeng;
			}
			break;
		} else if (link.substring(i, n) == "eng"){
			if (target == 2) {
				chLinkeng = link.substring(0, i) + "chi" + link.substring(n, endLink);
				parent.location.href = chLinkeng;
			} else if (target == 3) {
				chLinkeng = link.substring(0, i) + "sch" + link.substring(n, endLink);
				parent.location.href = chLinkeng;
			}
			break;
		}
	}
	
}

function GetCookieVal(offset)

{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie(name, value)

{
var expdate = new Date();
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
if(expires!=null) expdate.setTime(expdate.getTime() + ( expires * 1000 ));
document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires="+ expdate.toGMTString()))
+ "; path=/" +((domain == null) ? "" : ("; domain=" + domain))
+((secure == true) ? "; secure" : "");
}
function DelCookie(name)

{
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires="+ exp.toGMTString();
}
function GetCookie(name)

{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return GetCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}

if (GetCookie("css_style") == "1") {

MM_callJS("changecss1()");

} else if (GetCookie("css_style") == "2") {

MM_callJS("changecss2()");

} else if (GetCookie("css_style") == "3") {

MM_callJS("changecss3()");

}