
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function KTIC_DoFSCommand(command, args) {
  var KTICObj = InternetExplorer ? document.getElementById("KTIC") : document.KTIC;
  	if (command == "js_Goto") 
	{
		//alert(args);
		if (args == "home")
		{
			location = "index.aspx"			
		}
		if (args == "inv_sofp")
		{
			location = "KtgInvestment101.aspx?pageno=1"
		}
		if (args == "inv_ut")
		{
			 location = "KtgInvestment101.aspx?pageno=2"
		}
		if (args == "inv_hf")
		{
			 location = "KtgInvestment101.aspx?pageno=3"
		}
		if (args == "inv_b")
		{
			 location = "KtgInvestment101.aspx?pageno=4"
		}
		if (args == "inv_s")
		{
			 location = "KtgInvestment101.aspx?pageno=5"
		}
		if (args == "inv_rp")
		{
			 location = "KtgInvestment101.aspx?pageno=6"
		}
		if (args == "inv_ep")
		{
			 location = "KtgInvestment101.aspx?pageno=7"			
		}
		if (args == "inv_sp")
		{
			 location = "KtgInvestment101.aspx?pageno=8"
		}
		if (args == "inv_t")
		{
			 location = "KtgInvestment101.aspx?pageno=9"
			
		}
		if (args == "inv_i")
		{
			 location = "KtgInvestment101.aspx?pageno=1"
		}
		if (args == "sw_pe")
		{
			 location = "KtgStepToWealth2.aspx?pageno=1"
		}
		if (args == "sw_lh")
		{
			 location = "KtgStepToWealth2.aspx?pageno=2"
		}
		if (args == "sw_ii")
		{
			 location = "KtgStepToWealth2.aspx?pageno=3"
		}
		if (args == "sw_re")
		{
			 location = "KtgStepToWealth2.aspx?pageno=4"
		}
		if (args == "sw_ml")
		{
			 location = "KtgStepToWealth2.aspx?pageno=5"
		}
		if (args == "sw_d")
		{
			 location = "KtgStepToWealth2.aspx?pageno=6"
		}
		if (args == "sw_rr")
		{
			 location = "KtgStepToWealth2.aspx?pageno=7"
		}
		if (args == "ra_c")
		{
			 location = "Ktg_Commentary.aspx"
		}
		if (args == "ra_mn")
		{
			 location = "KtgMarketNews.aspx"
		}
		if (args == "ra_wi")
		{
			 location = "KtgWorldIndex.aspx"
		}
		if (args == "recruit")
		{
			 location = "KtgRecruit.aspx"
		}
		if (args == "links")
		{
			 location = "KtgLink.html"
		}
		if (args == "au_p")
		{
			 location = "KtgProfile.aspx"
		}
		if (args == "au_cu")
		{
			 location = "KtgContractUs.aspx"
		}
	}
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub KTIC_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call KTIC_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}

