contract PAYA is PausableToken, PayaToken {
  using SafeMath for uint256;

  string public name = "PAYA";
  string public symbol = "PAYA";
  uint public decimals = 9;
  string public version = 'H1.0';  
  function () {
        //if ether is sent to this address, send it back.
        throw;
    }
  /**
   * @dev Paya timelocked tokens
   */
   /*
  function mintTimelocked(address _to, uint256 _amount, uint256 _releaseTime)
    onlyOwner canPaya returns (TokenTimelock) {

    TokenTimelock timelock = new TokenTimelock(this, _to, _releaseTime);
    mint(timelock, _amount);

    return timelock;
  }
  */
   function PAYA(
        ) {
        balances[msg.sender] = 21000000000000000000;               // 21,000,000,000
        totalSupply = 21000000000000000000;                        // 
        }

 /* Approves and then calls the receiving contract */
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);

        //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn't have to include a contract in here just for this.
        //receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData)
        //it is assumed that when does this that the call *should* succeed, otherwise one would use vanilla approve instead.
        if(!_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData)) { throw; }
        return true;
    }
}
/**
 * @title PAYA
 * @dev Omise Go Token contract
 */
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);

    //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn't have to include a contract in here just for this.
    //receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData)
    //it is assumed that when does this that the call *should* succeed, otherwise one would use vanilla approve instead.
    if(!_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData)) { throw; }
    return true;
}

/* Approves and then calls the receiving contract */