var MM_contentVersion = 6;
var MM_FlashCanPlay;

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

function displayStaticImage(altImgPath)
{ 
      
      document.write('<map  name="pokerMainImg"><area shape ="rect" coords ="0,0,570,230" href ="javascript:Download(\'1192\');" title="Free Poker Download">');
      document.write('<area shape ="rect" coords ="143,155,211,241"  href ="javascript:openWSOP();"  title="Leran More"></map>');
      document.write('<img src="' + altImgPath + '" alt="Free Poker Download" title="Free Poker Download" usemap="#pokerMainImg" border=0/>');        
}

function openpoker()
{
     Download('1192');
}

function OpenLink(){
				url = "http://promo.888.com/888day_winner09/en/?"+sCut;
                window.open(url);
                }

function openWSOP()
{
  url = "http://wsop.888poker.com/wsop/en/8ways.htm?"+sCut;
  window.open(url);
}
                
function playFlash(flahsPath,altImgPath)
{
    if (MM_FlashCanPlay)
    {
            if (AC_FL_RunContent == 0) 
            {
                    alert("This page requires AC_RunActiveContent.js.");
            } 
            else 
            {
                    AC_FL_RunContent(
                            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
                            'width', '570',
                            'height', '290',
                            'src', flahsPath,
                            'quality', 'high',
                            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                            'align', 'middle',
                            'play', 'true',
                            'loop', 'true',
                            'scale', 'showall',
                            'wmode', 'transparent',
                            'devicefont', 'false',
                            'id', '888day_PCPpromotion_EN',
                            'bgcolor', '#000000',
                            'name', '888day_PCPpromotion_EN',
                            'menu', 'true',
                            'allowFullScreen', 'false',
                            'allowScriptAccess','always',
                            'movie', flahsPath,
                            'salign', ''
                            ); //end AC code
                }
        }
        else
        {
            displayStaticImage(altImgPath);
        }
  }
