| Derivative Instruments and Hedging Activities (Tables)
 | 3 Months Ended | 
      
        | Dec. 31, 2012 | 
      
        | Derivative Instruments and Hedging Activities Disclosure [Abstract] |  | 
      
        | Schedule of Derivative Instruments, Location, Designated and Non-Designated, Gains (Losses) | 
The locations and amounts of designated and non-designated derivative instruments’ gains and losses reported in the condensed consolidated financial statements for the indicated periods were as follows: 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   |   | Three months endedDecember 31,
 |   | Six months endedDecember 31,
 |  
| (In thousands) | Location in Financial Statements | 2012 |   | 2011 |   | 2012 |   | 2011 |  
| Derivatives Designated as Hedging Instruments |   |   |   |   |   |   |   |   |  
| Gains (losses) in accumulated OCI on derivatives (effective portion) | Accumulated OCI | $ | 2,242 | 
 |   | $ | (223 | ) |   | $ | 2,001 | 
 |   | $ | (1,417 | ) |  
| Gains (losses) reclassified from accumulated OCI into income (effective portion): | Revenues | $ | (82 | ) |   | $ | (689 | ) |   | $ | (574 | ) |   | $ | (973 | ) |  
|   | Costs of revenues | 210 | 
 |   | (13 | ) |   | (390 | ) |   | 48 | 
 |  
|   | Total gains (losses) reclassified from accumulated OCI into income (effective portion) | $ | 128 | 
 |   | $ | (702 | ) |   | $ | (964 | ) |   | $ | (925 | ) |  
| Gains (losses) recognized in income on derivatives (ineffectiveness portion and amount excluded from effectiveness testing) | Interest income and other, net | $ | (40 | ) |   | $ | 57 | 
 |   | $ | 11 | 
 |   | $ | 99 | 
 |  
| Derivatives Not Designated as Hedging Instruments |   |   |   |   |   |   |   |   |  
| Gains (losses) recognized in income | Interest income and other, net | $ | 9,220 | 
 |   | $ | 758 | 
 |   | $ | 9,894 | 
 |   | $ | (11,810 | ) |  | 
      
        | Schedule of Notional Amounts of Derivatives Outstanding | 
The U.S. dollar equivalent of all outstanding notional amounts of hedge contracts, with maximum maturity of 13 months, as of the dates indicated below was as follows: 
 
|  |  
|  |  |  |  |  |  |  |  |  
| (In thousands) | As of December 31, 2012
 |   | As of June 30, 2012
 |  
| Cash flow hedge contracts |   |   |   |  
| Purchase | $ | 14,722 | 
 |   | $ | 14,689 | 
 |  
| Sell | $ | 30,752 | 
 |   | $ | 29,362 | 
 |  
| Other foreign currency hedge contracts |   |   |   |  
| Purchase | $ | 118,588 | 
 |   | $ | 121,965 | 
 |  
| Sell | $ | 94,406 | 
 |   | $ | 126,827 | 
 |  | 
      
        | Schedule of Derivative Instruments, Fair Value | 
The locations and fair value amounts of the Company’s derivative instruments reported in its Condensed Consolidated Balance Sheets as of the dates indicated below were as follows: 
 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   | Asset Derivatives |   | Liability Derivatives |  
|   | Balance Sheet Location |   | As of December 31, 2012
 |   | As of June 30, 2012
 |   | Balance Sheet Location |   | As of December 31, 2012
 |   | As of June 30, 2012
 |  
| (In thousands) |   | Fair Value |   |   |   | Fair Value |  
| Derivatives designated as hedging instruments |   |   |   |   |   |   |   |   |   |   |   |  
| Foreign exchange contracts | Other current assets |   | $ | 2,322 | 
 |   | $ | 128 | 
 |   | Other current liabilities |   | $ | — | 
 |   | $ | 736 | 
 |  
| Total derivatives designated as hedging instruments |   |   | $ | 2,322 | 
 |   | $ | 128 | 
 |   |   |   | $ | — | 
 |   | $ | 736 | 
 |  
| Derivatives not designated as hedging instruments |   |   |   |   |   |   |   |   |   |   |   |  
| Foreign exchange contracts | Other current assets |   | $ | 3,847 | 
 |   | $ | 1,279 | 
 |   | Other current liabilities |   | $ | 870 | 
 |   | $ | 1,173 | 
 |  
| Total derivatives not designated as hedging instruments |   |   | $ | 3,847 | 
 |   | $ | 1,279 | 
 |   |   |   | $ | 870 | 
 |   | $ | 1,173 | 
 |  
| Total derivatives |   |   | $ | 6,169 | 
 |   | $ | 1,407 | 
 |   |   |   | $ | 870 | 
 |   | $ | 1,909 | 
 |  | 
      
        | Balances and Changes in Accumulated Other Comprehensive Income Related to Derivative Instruments | 
The following table provides the balances and changes in accumulated other comprehensive income (loss), before taxes, related to derivative instruments for the indicated periods: 
|  |  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|   | Three months endedDecember 31,
 |   | Six months endedDecember 31,
 |  
| (In thousands) | 2012 |   | 2011 |   | 2012 |   | 2011 |  
| Beginning balance | $ | (111 | ) |   | $ | (959 | ) |   | $ | (962 | ) |   | $ | 12 | 
 |  
| Amount reclassified to income | (128 | ) |   | 702 | 
 |   | 964 | 
 |   | 925 | 
 |  
| Net change | 2,242 | 
 |   | (223 | ) |   | 2,001 | 
 |   | (1,417 | ) |  
| Ending balance | $ | 2,003 | 
 |   | $ | (480 | ) |   | $ | 2,003 | 
 |   | $ | (480 | ) |  |