Merck and Ariad Pharmaceuticals have agreed to the terms of a potential billion-dollar global collaboration deal to develop and market Ariads cancer treatment known as AP23573.