Fair Value of Financial Instruments (Details 4) (USD $) | Jan. 31, 2015 | Jul. 31, 2014 |
In Thousands, unless otherwise specified |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets | $604,037 | $619,932 |
Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets | 60,516 | 53,959 |
Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets | 543,521 | 565,973 |
Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Total assets | 0 | 0 |
U.S. agency securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 63,296 | 29,062 |
Municipal debt securities | 28,860 | 64,995 |
Total assets | 92,156 | 94,057 |
U.S. agency securities | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | 0 | 0 |
U.S. agency securities | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 63,296 | 29,062 |
Municipal debt securities | 28,860 | 64,995 |
U.S. agency securities | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | 0 | 0 |
Asset-backed securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | | 1,361 |
Municipal debt securities | 5,809 | |
Total assets | | 1,361 |
Asset-backed securities | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | | 0 |
Municipal debt securities | 0 | |
Asset-backed securities | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | | 1,361 |
Municipal debt securities | 5,809 | |
Asset-backed securities | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | | 0 |
Municipal debt securities | 0 | |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 57,891 | 66,159 |
Total assets | 99,472 | 132,452 |
Commercial paper | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Commercial paper | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 57,891 | 66,159 |
Commercial paper | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Corporate bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 272,586 | 172,648 |
Municipal debt securities | 44,379 | 125,005 |
Total assets | 316,965 | 297,653 |
Corporate bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | 0 | 0 |
Corporate bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 272,586 | 172,648 |
Municipal debt securities | 44,379 | 125,005 |
Corporate bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | 0 | 0 |
U.S. government bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 14,986 | 9,995 |
Municipal debt securities | | 7,996 |
Total assets | 20,795 | 17,991 |
U.S. government bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | | 0 |
U.S. government bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 14,986 | 9,995 |
Municipal debt securities | | 7,996 |
U.S. government bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | | 0 |
Municipal debt securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 4,700 | 12,997 |
Total assets | 4,700 | 12,997 |
Municipal debt securities | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 4,700 | 12,997 |
Municipal debt securities | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Certificate of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 6,702 | 4,009 |
Municipal debt securities | | 2,699 |
Total assets | 6,702 | 6,708 |
Certificate of deposit | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | | 0 |
Certificate of deposit | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 6,702 | 4,009 |
Municipal debt securities | | 2,699 |
Certificate of deposit | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Short-term investments: | 0 | 0 |
Municipal debt securities | | 0 |
Foreign government bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Municipal debt securities | 2,731 | 2,754 |
Total assets | 2,731 | 2,754 |
Foreign government bonds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Municipal debt securities | 0 | 0 |
Foreign government bonds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Municipal debt securities | 2,731 | 2,754 |
Foreign government bonds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Municipal debt securities | 0 | 0 |
Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 41,581 | 66,293 |
Commercial paper | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 0 | 0 |
Commercial paper | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 41,581 | 66,293 |
Commercial paper | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 0 | 0 |
Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 60,516 | 53,959 |
Money market funds | Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 60,516 | 53,959 |
Money market funds | Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | 0 | 0 |
Money market funds | Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents: | $0 | $0 |