contract AirDrop is Ownable {

  ERC20Basic token;

  event TransferredToken(address indexed to, uint256 value);

  function AirDrop (address _tokenAddr) public {
      token = ERC20Basic(_tokenAddr);
  }

  // Function given below is used when you want to send same number of tokens to all the recipients
  function sendTokens(address[] recipient, uint256 value) onlyOwner external {
    for (uint256 i = 0; i < recipient.length; i++) {
        token.transfer(recipient[i],value * 10**8);
        emit TransferredToken(recipient[i], value);
    }
  }


  function tokensAvailable()public constant returns (uint256) {
    return token.balanceOf(this);
  }


  function destroy() public onlyOwner {
    uint256 balance = tokensAvailable();
    token.transfer(owner, balance);
    selfdestruct(owner);
  }
}
function sendTokens(address[] recipient, uint256 value) onlyOwner external {
  for (uint256 i = 0; i < recipient.length; i++) {
      token.transfer(recipient[i],value * 10**8);
      emit TransferredToken(recipient[i], value);
  }
}

// Function given below is used when you want to send same number of tokens to all the recipients