XML 66 R52.htm IDEA: XBRL DOCUMENT v3.7.0.1
Derivative Financial Instruments and Hedging Activities (Fair Value of Derivative Instruments on Condensed Consolidated Balance Sheets for Foreign Currency Risk Management Purposes) (Details 3) - Forward foreign exchange contracts - USD ($)
$ in Thousands
May 31, 2017
Aug. 31, 2016
Designated as Hedging Instruments | Accrued expenses    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Liability Derivatives $ 1,400 $ 1,986
Designated as Hedging Instruments | Prepaid expenses and other current assets    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Asset Derivatives 4,200 420
Not Designated as Hedging Instrument | Accrued expenses    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Liability Derivatives 11,572 10,801
Not Designated as Hedging Instrument | Prepaid expenses and other current assets    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Asset Derivatives $ 15,266 $ 3,850