AMENDED AND RESTATED CREDIT AGREEMENT Dated as of July 23, 2004 among CURTISS- WRIGHT CORPORATION and CERTAIN SUBSIDIARIES as Borrowers,