function CPayTable(iX,iY){
    var _iAlphaAnim;
    var _aSelection;
    var _aPrizes;
    var _aComboText;
    var _oContainer;
    
    this._init = function(iX,iY){
        _iAlphaAnim = 0;
        
        _oContainer = new createjs.Container();
        _oContainer.x = iX;
        _oContainer.y = iY;
        s_oStage.addChild(_oContainer);
        
        var oPayTable = createBitmap(s_oSpriteLibrary.getSprite('paytable'));
        _oContainer.addChild(oPayTable);
        
        var iXOffset = 278;
        var iYOffset = 4;
        _aSelection = new Array();
        for(var s=0;s<NUM_BETS;s++){
            var oSelection = createBitmap(s_oSpriteLibrary.getSprite('selection'));
            oSelection.visible = false;
            oSelection.x = iXOffset;
            oSelection.y = iYOffset;
            _oContainer.addChild(oSelection);
            
            _aSelection.push(oSelection);
            
            iXOffset += 100;
        }
        
        //COMBO TEXT
        iXOffset = 275;
        iYOffset = 27;
        _aComboText = new Array();
        for(var k=0;k<WIN_COMBINATIONS;k++){
            var oComboText = new createjs.Text(TEXT_COMBO[k],"22px "+FONT1, "#fff000");
            oComboText.x = iXOffset;
            oComboText.y = iYOffset;
            oComboText.textAlign = "right";
            oComboText.textBaseline = "middle";
            _oContainer.addChild(oComboText);
            
            iYOffset += 22;
            
            _aComboText[k] = oComboText;
        }
        
        iXOffset = 375;
        
        //PRIZES TEXT
        _aPrizes = new Array();
        for(var i=0;i<NUM_BETS;i++){
            iYOffset = 27;
            _aPrizes[i] = new Array();
            for(var j=0;j<WIN_COMBINATIONS;j++){
                var oPrizeText = new createjs.Text(s_oPayTableSettings.getWin(i,j),"22px "+FONT1, "#fff000");
                oPrizeText.x = iXOffset;
                oPrizeText.y = iYOffset;
                oPrizeText.textAlign = "right";
                oPrizeText.textBaseline = "middle";
                _oContainer.addChild(oPrizeText);
                
                iYOffset += 22;
                _aPrizes[i][j] = oPrizeText;
            }   
            iXOffset += 100;
        }
    };
    
    this.resetHand = function(){
        createjs.Tween.removeAllTweens();
        for(var i=0;i<NUM_BETS;i++){
            for(var j=0;j<WIN_COMBINATIONS;j++){
                _aPrizes[i][j].alpha = 1;
            }
        }
        
        for(var k=0;k<WIN_COMBINATIONS;k++){
            _aComboText[k].alpha = 1;
        }
    };
    
    this.setCreditColumn = function(iCol){
        for(var i=0;i<NUM_BETS;i++){
            _aSelection[i].visible = false;
        }
        _aSelection[iCol].visible = true;
    };
    
    this.showWinAnim = function(iRow,iCol){
        var oParent = this;
        createjs.Tween.get(_aPrizes[iRow][iCol]).to({alpha:_iAlphaAnim}, 100).call(function(){oParent.showWinAnim(iRow,iCol)});  
        createjs.Tween.get(_aComboText[iCol]).to({alpha:_iAlphaAnim}, 100);
        if(_iAlphaAnim === 1){
            _iAlphaAnim = 0;
        }else{
            _iAlphaAnim = 1;
        }
    };
    
    this._init(iX,iY);
}