CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS)      
Net income (loss) $ 12,954 $ (1,652) $ 8,156
Other comprehensive loss:      
Foreign currency translation adjustment, net of tax (171) (565) (124)
Net unrealized gains (losses) on available-for-sale investments, net of tax 46 (14) (47)
Total other comprehensive loss (125) (579) (171)
Comprehensive income (loss) $ 12,829 $ (2,231) $ 7,985