Consolidated Statements of Cash Flows (USD $)
In Thousands, unless otherwise specified
9 Months Ended
Mar. 31, 2015
Mar. 31, 2014
Operating activities    
Net income $ 94,204 $ 42,628
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 69,756 49,346
Share-based compensation expense 18,764 21,850
Excess tax benefits derived from share-based compensation awards (2,686) (5,467)
Deferred taxes (8,666) (10,954)
Loss in equity interest 0 2,704
Unrealized (gain) loss on derivative instruments included in net income (7,435) 2,655
Change in fair value of contingent consideration 14,890 0
Effect of exchange rate changes on monetary assets and liabilities denominated in non-functional currency (15,932) 983
Other non-cash items 3,126 729
Changes in operating assets and liabilities excluding the effect of business acquisitions:    
Accounts receivable (855) 2,293
Inventory (2,201) 352
Prepaid expenses and other assets 18,064 (9,217)
Accounts payable (5,049) 7,979
Accrued expenses and other liabilities 16,434 (7,835)
Net cash provided by operating activities 192,414 98,046
Investing activities    
Purchases of property, plant and equipment (50,105) (53,999)
Proceeds from sale of assets 0 137
Business acquisitions, net of cash acquired (22,997) 0
Purchases of intangible assets (201) (202)
Purchase of available-for-sale securities 0 (4,629)
Capitalization of software and website development costs (12,517) (7,339)
Investment in equity interest 0 (4,994)
Net cash used in investing activities (85,820) (71,026)
Financing activities    
Proceeds from borrowings of debt 218,500 109,000
Proceeds from issuance of senior notes 275,000 0
Payments of debt (512,251) (145,796)
Payments of debt issuance costs (6,373) (1,354)
Payment of contingent consideration included in acquisition-date fair value (7,021) 0
Payments of withholding taxes in connection with share awards (4,297) (8,400)
Payments of capital lease obligations (4,315) 0
Excess tax benefits derived from share-based compensation awards 2,686 5,467
Proceeds from issuance of ordinary shares 10,967 4,274
Capital contribution from noncontrolling interest 4,160 4,821
Issuance of dividend to noncontrolling interest (118) 0
Net cash used in financing activities (23,062) (31,988)
Effect of exchange rate changes on cash (11,828) 1,448
Net increase (decrease) in cash and cash equivalents 71,704 (3,520)
Cash and cash equivalents at beginning of period 62,508 50,065
Cash and cash equivalents at end of period 134,212 46,545
Supplemental Cash Flow Information    
Interest 7,366 4,061
Income taxes 10,629 12,659
Capitalization of construction costs related to financing lease obligation 59,790 8,397
Property and equipment acquired under capital leases $ 9,762 $ 0