Pension and Other Postretirement Benefits (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
Pension Plan        
Defined Benefit Plans and Other Postretirement Benefit Plans        
Service cost $ 371 $ 361 $ 803 $ 721
Interest cost 457 435 925 871
Expected return on plan assets (469) (429) (939) (858)
Amortization of Prior service costs 3 4 5 7
Amortization of Other actuarial loss 139 78 289 156
Net periodic benefit cost 501 449 1,083 897
Postretirement Health Plan        
Defined Benefit Plans and Other Postretirement Benefit Plans        
Service cost 34 30 67 60
Interest cost 26 29 53 58
Amortization of Net transition obligation 0 4 0 8
Amortization of Prior service costs (1) (2) (3) (3)
Amortization of Other actuarial loss 9 8 18 15
Net periodic benefit cost $ 68 $ 69 $ 135 $ 138