function displayFlashPage(heading,image,path2,url2,path3,url3,path4,url4)
{
    var Lang = ""; 
    var substr1 = document.cookie.substr(document.cookie.indexOf("portal"));
    var substr2 = substr1.substr(substr1.indexOf("+")+1);
    Lang = substr2.substr(0, 2);
    if(!((Lang == "ja") || (Lang == "zh") || (Lang == "en")))    
    	Lang = "en";
     
    if((Lang==null) || (Lang.length == 0 ) )Lang = "en"; 
    

       // document.write('<script language="JavaScript" src="/res/en/pat/personalAssistant.js"><\/script>');

	document.write('<td width="680" align="left" valign="top">');
	document.write('<table width="100%"  border="0" cellspacing="0" cellpadding="0">');
	//document.write('<tr><td height="12" width="100%" align="right" valign="middle" class="forgot_password">');
	//if(Lang == "en")
		//document.write('<a class="forgot_password" style="cursor:pointer" onclick="PA.eraseLogViews(); PA.startNewMovie(\'MOV_83200712315_817007_604379\');">Assistant</a>'); 
		
	//document.write('</td><td align="right" valign="middle">');
	//if(Lang == "en")
	//{
		//document.write('<a style="cursor:pointer" onclick="PA.eraseLogViews(); PA.startNewMovie(\'MOV_83200712315_817007_604379\');" >');
		//document.write('<img  border="0" valign="top" align="left" alt="Play movie" src="/res/en/pat/movie-reset.jpg" height="25"></a>');
	//}

	//document.write('</td></tr>');
	//document.write('<tr><td align="left"><span class="txt2">&gt; </span>');
	//document.write('<a href="/portal/page/portal/FcicntPublic/MarketOverview_Menu" class="pathreminderstyle">');
	document.write('<tr><td align="left">');
	//document.write(path1);
	// document.write('</a>');
	if(path2 != null && path2.length > 0)
	{
		document.write('<span class="txt2">  &gt; </span>');
		var pathreminderlink2 = '<a href="/portal/page/portal/FcicntPublic/'+url2+'" class="pathreminderstyle">';
		document.write(pathreminderlink2);
		document.write(path2);
		document.write('</a>');
	}
	if(path3 != null && path3.length > 0)
	{
		document.write('<span class="txt2">  &gt; </span>');
		var pathreminderlink3 = '<a href="/portal/page/portal/FcicntPublic/'+url3+'" class="pathreminderstyle">';
		document.write(pathreminderlink3);
		document.write(path3);
		document.write('</a>');
	}
	if(path4 != null && path4.length > 0)
	{
		document.write('<span class="txt2">  &gt; </span>');
		var pathreminderlink4 = '<a href="/portal/page/portal/FcicntPublic/'+url4+'" class="pathreminderstyle">';
		document.write(pathreminderlink4);
		document.write(path4);
		document.write('</a>');
	}	
	document.write('</td><td width="1" align="right"><img src="/res/en/images/spacer.gif" width="1" height="1" alt=""></td>');
	document.write('</tr><tr><td width="1" align="right" colspan=2><img src="/res/en/images/spacer.gif" width="1" height="5" alt=""></td>');
	document.write('</tr></table><table width="98%"  border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td align="left" valign="top" height="1"><img src="/res/en/images/shim-gris.gif" width="100%" height="1" alt=""></td>');
	document.write('</tr><tr><td height="20" align="left" valign="middle" class="Txt_rouge3">');
	document.write(heading);
	document.write('</td></tr></table>');
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">');
	document.write('<tr><td width="85%" class="Txt_gris" align="center">&nbsp;');
	var imagepath="/res/en/images/swf/"+image;
	AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0","width","584","height","584","src",imagepath,"quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","movie",imagepath,"wmode","transparent"); 
	document.write('</script><noscript>');                     
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="584" height="584" wmode=transparent>');
 	document.write('<param name="movie" value="/res/en/images/swf/'+image+'.swf">');
	document.write('<param name=quality value=high/><param name="wmode" value="transparent">');
	document.write('<embed src="/res/en/images/swf/'+image+'.swf" quality=high wmode="transparent" pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="584" height="584">');
//	document.write('</embed></object></noscript></td></tr></table></table></td><td width="29"   bgcolor="#E6E5E5">&nbsp;</td></tr></table>');
   document.write('</embed></object></noscript></td></tr></table></table></td>');
   if (navigator.userAgent.indexOf("Firefox")!=-1)
   document.write('<td width="30" bgcolor="#FFFFFF">');
   else if (navigator.userAgent.indexOf("MSIE")!=-1)
   document.write('<td width="29" bgcolor="#FFFFFF">');
   else
   document.write('<td width="30" bgcolor="#FFFFFF">');
   document.write('&nbsp;</td></tr></table>');
}

function displayMarketFlash(heading,image)
{
    var Lang = ""; 
    var substr1 = document.cookie.substr(document.cookie.indexOf("portal"));
    var substr2 = substr1.substr(substr1.indexOf("+")+1);
    Lang = substr2.substr( 0, 2);
    if(!((Lang == "ja") || (Lang == "zh") || (Lang == "en")))
    	Lang = "en";
         
    if((Lang==null) || (Lang.length == 0 ) )Lang = "en"; 
    

        //document.write('<script language="JavaScript" src="/res/en/pat/personalAssistant.js"><\/script>');

	document.write('<td width="680" align="left" valign="top">');
	document.write('<table width="100%"  border="0" cellspacing="0" cellpadding="0">');
	//document.write('<tr><td height="12" width="100%" align="right" valign="middle" class="forgot_password">');
	//if(Lang == "en")
		//document.write('<a class="forgot_password" style="cursor:pointer" onclick="PA.eraseLogViews(); PA.startNewMovie(\'MOV_832007122937_202043_127740\');">Assistant</a>'); 
	//document.write('</td><td align="right" valign="middle">');
	//if(Lang == "en")
	//{
	//	document.write('<a style="cursor:pointer" onclick="PA.eraseLogViews(); PA.startNewMovie(\'MOV_832007122937_202043_127740\');" >');
	//	document.write('<img  border="0" valign="top" align="left" alt="Play movie" src="/res/en/pat/movie-reset.jpg" height="25"></a>');
	//}	

	//document.write('</td></tr>')
	//document.write('<tr><td align="left"><span class="txt2">&gt; </span>');
	//document.write('<a href="/portal/page/portal/FcicntPublic/MarketOverview_Menu" class="pathreminderstyle">'+marketoverview+'</a>');
	document.write('<tr><td align="left">');
	document.write('</td><td width="1" align="right"><img src="/res/en/images/spacer.gif" width="1" height="1" alt=""></td>');
	document.write('</tr><tr><td width="1" align="right" colspan=2><img src="/res/en/images/spacer.gif" width="1" height="5" alt=""></td>');
	document.write('</tr></table><table width="98%"  border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td align="left" valign="top" height="1"><img src="/res/en/images/shim-gris.gif" width="100%" height="1" alt=""></td>');
	document.write('</tr><tr><td height="20" align="left" valign="middle" class="Txt_rouge3">');
	document.write(heading);
	document.write('</td></tr></table>');
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">');
	document.write('<tr><td width="85%" class="Txt_gris" align="center">&nbsp;');
	var imagepath="/res/en/images/swf/"+image;
	AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0","width","584","height","584","src",imagepath,"quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","movie",imagepath,"wmode","transparent"); 
	document.write('</script><noscript>');                     
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="584" height="584" wmode=transparent>');
 	document.write('<param name="movie" value="/res/en/images/swf/'+image+'.swf">');
	document.write('<param name=quality value=high/><param name="wmode" value="transparent">');
	document.write('<embed src="/res/en/images/swf/'+image+'.swf" quality=high wmode="transparent" pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="584" height="584">');
	//document.write('</embed></object></noscript></td></tr></table></table></td><td width="29"   bgcolor="#E6E5E5">&nbsp;</td></tr></table>');
	document.write('</embed></object></noscript></td></tr></table></table></td>');
   if (navigator.userAgent.indexOf("Firefox")!=-1)
   document.write('<td width="30" bgcolor="#FFFFFF">');
   else if (navigator.userAgent.indexOf("MSIE")!=-1)
   document.write('<td width="29" bgcolor="#FFFFFF">');
   else
   document.write('<td width="30" bgcolor="#FFFFFF">');
   document.write('&nbsp;</td></tr></table>');
}
