CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2016
Jun. 30, 2015
Jun. 30, 2016
Jun. 30, 2015
CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS        
Net income (loss) $ 524 $ 2,041 $ 7,163 $ (2,190)
Other comprehensive income (loss):        
Foreign currency translation adjustment, net of tax (366) 41 25 (246)
Net unrealized gains (losses) on available-for-sale investments, net of tax (4) (12) 70 28
Total other comprehensive income (loss) (370) 29 95 (218)
Comprehensive income (loss) $ 154 $ 2,070 $ 7,258 $ (2,408)