Consolidated Statements of Cash Flows (USD $)
In Thousands, unless otherwise specified
12 Months Ended
Dec. 31, 2013
Dec. 31, 2012
Dec. 31, 2011
Cash flows from operating activities      
Net income (loss) $ (7,682) $ 3,566 $ 5,761
Adjustments to reconcile net income to net cash provided by operating activities      
Depreciation and amortization 7,704 6,100 4,403
Amortization of premium on investments 198 54 134
Provision for bad debts 116 100 85
Provision for (benefit from) deferred income taxes 926 (831) 3,793
Income tax benefit from the exercise of stock options (17) (6,635) (5,887)
Stock-based compensation 19,714 14,792 8,925
Loss on disposal of equipment   12  
Changes in assets and liabilities:      
Accounts receivable 302 (4,471) (4,088)
Prepaid expenses and other current assets (2,986) (1,070) 494
Other assets (3,764) (1,308) (215)
Accounts payable (2,233) 1,552 3,787
Accrued liabilities 3,457 5,854 (531)
Deferred revenue 14,493 10,960 15,471
Other long-term liabilities (208) (418) 739
Net cash provided by operating activities 30,020 28,257 32,871
Cash flows from investing activities      
Purchases of marketable securities (90,376) (135,085) (150,066)
Proceeds from sale or disposal of marketable securities 90,000 130,000 145,000
Purchases of property and equipment (10,938) (5,277) (2,322)
Intangible asset additions (13,061) (1,049) (346)
Cash paid for acquisition, net of cash acquired   (14,831) (10,000)
(Increase) decrease in restricted cash and deposits 7 (3,558) (26)
Net cash used in investing activities (24,368) (29,800) (17,760)
Cash flows from financing activities      
Proceeds from issuance of common stock upon option exercises 3,798 2,682 6,207
Income tax benefit from the exercise of stock options 17 6,634 5,887
Payment of contingent consideration (104) (89)  
Common stock withheld to satisfy income tax withholdings for restricted stock unit vesting (1,834)    
Purchase of treasury stock (30,525)    
Net cash provided by (used in) financing activities (28,648) 9,227 12,094
Effect of exchange rate changes on cash and cash equivalents and restricted cash 321 644 (881)
Net increase (decrease) in cash and cash equivalents (22,675) 8,328 26,324
Cash and cash equivalents, beginning of period 111,932 103,604 77,280
Cash and cash equivalents, end of period 89,257 111,932 103,604
Supplemental disclosure of cash flow information      
Cash paid for interest 2   1
Cash paid for income taxes 10,094 1,802 356
Noncash investing and financing activities      
Purchases of property and equipment included in accounts payable and accrued liabilities 1,510 742 671
Fair value of contingent consideration in connection with acquisition included in accrued liabilities and other long term liabilities   $ 161 $ 212