XML 44 R32.htm IDEA: XBRL DOCUMENT v3.7.0.1
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Summary of Foreign Currency Gains and Losses) (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2017
May 31, 2016
May 31, 2017
May 31, 2016
SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES [Abstract]        
Currency gain (loss) $ 1,101 $ (222) $ 1,088 $ (1,018)