Accumulated Other Comprehensive Income (Details) (USD $)
In Thousands, unless otherwise specified
3 Months Ended 6 Months Ended
Jan. 31, 2015
Jan. 31, 2014
Jan. 31, 2015
Jan. 31, 2014
Accumulated Other Comprehensive Income        
Accumulated Other Comprehensive Income, Balance, beginning     $ (8,263)  
Other comprehensive loss, before reclassifications, net of tax     (446)  
Amounts reclassified from accumulated other comprehensive income, net of tax     87  
Net current-period other comprehensive income (loss), net of tax (259) (165) (359) (183)
Accumulated Other Comprehensive Income, Balance, ending (8,622)   (8,622)  
Unrealized Gain (Loss) on Marketable Securities        
Accumulated Other Comprehensive Income        
Accumulated Other Comprehensive Income, Balance, beginning     114  
Other comprehensive loss, before reclassifications, net of tax     (9)  
Amounts reclassified from accumulated other comprehensive income, net of tax     (105)  
Net current-period other comprehensive income (loss), net of tax     (114)  
Accumulated Other Comprehensive Income, Balance, ending 0   0  
Pension and Postretirement Health Benefits        
Accumulated Other Comprehensive Income        
Accumulated Other Comprehensive Income, Balance, beginning     (8,632)  
Other comprehensive loss, before reclassifications, net of tax     0  
Amounts reclassified from accumulated other comprehensive income, net of tax     192  
Net current-period other comprehensive income (loss), net of tax     192  
Accumulated Other Comprehensive Income, Balance, ending (8,440)   (8,440)  
Cumulative Translation Adjustment        
Accumulated Other Comprehensive Income        
Accumulated Other Comprehensive Income, Balance, beginning     255  
Other comprehensive loss, before reclassifications, net of tax     (437)  
Amounts reclassified from accumulated other comprehensive income, net of tax     0  
Net current-period other comprehensive income (loss), net of tax     (437)  
Accumulated Other Comprehensive Income, Balance, ending $ (182)   $ (182)