
function open_flash(filename) 
{   
    var w = 800;
    var h = 590;
    var l = (window.screen.width-w)/2;
    var t = (window.screen.height-h)/2; 
    var evName = "guide_lobby_flash_" + sLang + "_";
    
    
      if(filename=="1")
    {
        try {ntptEventTag("ev=" + evName +  "main_lobby");}catch(err){}
        window.open("/guidelobbyFlash/flash1.htm?"+sCut,"flash","height=" + h + ",width=" + w + ",status=no,toolbar=no,menubar=no,location=no,resize=no,left="+l+",top="+t);    
          return;
    }
    if(filename=="2")
    {
         try {ntptEventTag("ev=" + evName +  "poker_tables");}catch(err){}  
        window.open("/guidelobbyFlash/flash2.htm?"+sCut,"flash","height=" + h + ",width=" + w + ",status=no,toolbar=no,menubar=no,location=no,resize=no,left="+l+",top="+t);    
          return;
    }
    else(filename=="3")
    {
        try {ntptEventTag("ev=" + evName +  "tournament_lobby");}catch(err){} 
        window.open("/guidelobbyFlash/flash3.htm?"+ sCut,"flash","height=" + h + ",width=" + w + ",status=no,toolbar=no,menubar=no,location=no,resize=no,left="+l+",top="+t);    
        return;
    }
    
}

function open_flashs(flashPath)
{  
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="590" id="FlashGuides_Poker5_Lobby" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="' + flashPath + '"  />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="bgcolor" value="#000000" />');
    document.write('<embed src="' + flashPath + '"  quality="high" bgcolor="#000000" width="800" height="590" name="FlashGuides_Poker5_Lobby" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');     
}



