SECURITY AGREEMENT dated as of July 1, 2004 between