XML 37 R26.htm IDEA: XBRL DOCUMENT v3.7.0.1
Earnings (Loss) Per Share (Details) - shares
shares in Thousands
3 Months Ended 6 Months Ended
Jan. 31, 2017
Jan. 31, 2016
Jan. 31, 2017
Jan. 31, 2016
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 120 41 146 177
Non-vested restricted Class B common stock [Member]        
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 111 35 138 173
Stock options [Member]        
Earnings Per Share, Diluted, Other Disclosures [Abstract]        
Shares excluded from the calculation of diluted (loss) earnings per share 9 6 8 4