LOAN AGREEMENT dated as of July 25, 1997