XML 112 R95.htm IDEA: XBRL DOCUMENT v3.5.0.2
Derivative Financial Instruments and Hedging Activities (Details 3) - Forward foreign exchange contracts - USD ($)
$ in Thousands
Aug. 31, 2016
Aug. 31, 2015
Designated as Hedging Instruments | Prepaid expenses and other current assets    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Asset Derivatives $ 420 $ 267
Designated as Hedging Instruments | Accrued expenses    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Liability Derivatives 1,986 16,509
Not Designated as Hedging Instrument | Prepaid expenses and other current assets    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Asset Derivatives 3,850 5,525
Not Designated as Hedging Instrument | Accrued expenses    
Derivatives, Fair Value [Line Items]    
Forward foreign exchange contracts, Liability Derivatives $ 10,801 $ 29,529