| Income Taxes (Tables)
 | 12 Months Ended | 
      
        | Dec. 31, 2012 | 
      
        | Components of Income (Loss) Before Provision (Benefit) from Income Taxes | 
The domestic
and international components of income (loss) before provision
(benefit) from income taxes are presented as follows: 
  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Years Ended
December 31, |  |  
|  |  | 2012 |  |  | 2011 |  |  | 2010 |  |  
| Domestic |  | $ | (11,918) |  |  | $ | (13,775) |  |  | $ | 6,465 |  |  
| Foreign |  |  | (993 | ) |  |  | (1,256 | ) |  |  | (2,722 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Income (loss) before
taxes |  | $ | (12,911) |  |  | $ | (15,031) |  |  | $ | 3,743 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  | 
      
        | Components of Income Tax Provision (Benefit) | 
Income tax
provision (benefit) consists of the following: 
  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Years Ended
December 31, |  |  
|  |  | 2012 |  |  | 2011 |  |  | 2010 |  |  
| Current: |  |  |  |  |  |  |  |  |  |  |  |  |  
| Federal |  | $ | — |  |  | $ | 236 |  |  | $ | 126 |  |  
| State |  |  | — |  |  |  | 20 |  |  |  | 163 |  |  
| Foreign |  |  | 351 |  |  |  | 69 |  |  |  | 22 |  |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Total current |  |  | 351 |  |  |  | 325 |  |  |  | 311 |  |  
| Deferred: |  |  |  |  |  |  |  |  |  |  |  |  |  
| Federal |  |  | (4,162 | ) |  |  | (5,183 | ) |  |  | 1,336 |  |  
| State |  |  | (2,062 | ) |  |  | (1,731 | ) |  |  | (104 | ) |  
| Foreign |  |  | — |  |  |  | 685 |  |  |  | (685 | ) |  
| Change in valuation
allowance |  |  | 6,214 |  |  |  | 12,897 |  |  |  | (7,229 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Total deferred |  |  | (10 | ) |  |  | 6,668 |  |  |  | (6,682 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Total income tax provision
(benefit) |  | $ | 341 |  |  | $ | 6,993 |  |  | $ | (6,371 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  | 
      
        | Actual Income Tax Provision (Benefit) Differs from Amount Computed Using Federal Statutory Rate | 
The actual
income tax provision (benefit) differs from the amount computed
using the federal statutory rate as follows: 
  
|  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  | Years Ended
December 31, |  |  
|  |  | 2012 |  |  | 2011 |  |  | 2010 |  |  
| Provision (benefit) at
statutory rate |  | $ | (4,390 | ) |  | $ | (5,111 | ) |  | $ | 1,273 |  |  
| State income taxes (net of
federal benefit) |  |  | (1,247 | ) |  |  | 24 |  |  |  | 336 |  |  
| Research and development
credits |  |  | (858 | ) |  |  | (3,320 | ) |  |  | (1,078 | ) |  
| Foreign rate
differential |  |  | 445 |  |  |  | 1,182 |  |  |  | 262 |  |  
| Stock
compensation |  |  | 278 |  |  |  | 974 |  |  |  | 959 |  |  
| Foreign dividend |  |  | — |  |  |  | 94 |  |  |  | 46 |  |  
| Estimated export compliance
fines and penalties |  |  | (255 | ) |  |  | 255 |  |  |  | — |  |  
| Foreign tax
credit |  |  | — |  |  |  | (236 | ) |  |  | — |  |  
| Permanent and
other |  |  | 154 |  |  |  | 260 |  |  |  | (940 | ) |  
| Valuation
allowance |  |  | 6,214 |  |  |  | 12,871 |  |  |  | (7,229 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  
| Total provision (benefit)
for income taxes |  | $ | 341 |  |  | $ | 6,993 |  |  | $ | (6,371 | ) |  
|  |  |   |   |  |  |   |   |  |  |   |   |  |  | 
      
        | Components of Deferred Income Tax Assets | 
The components
of the deferred income tax assets are as follows: 
  
|  |  |  |  |  |  |  |  |  |  
|  |  | December 31, |  |  
|  |  | 2012 |  |  | 2011 |  |  
| Deferred tax
assets: |  |  |  |  |  |  |  |  |  
| Net operating loss
carryforwards |  | $ | 8,216 |  |  | $ | 6,155 |  |  
| Research and development
credits |  |  | 9,088 |  |  |  | 8,077 |  |  
| Accrued expenses and
other |  |  | 1,970 |  |  |  | 644 |  |  
| Stock-based
compensation |  |  | 3,184 |  |  |  | 1,685 |  |  
|  |  |   |   |  |  |   |   |  |  
|  |  |  | 22,458 |  |  |  | 16,561 |  |  
| Less valuation
allowance |  |  | (22,243 | ) |  |  | (16,029 | ) |  
|  |  |   |   |  |  |   |   |  |  
|  |  |  | 215 |  |  |  | 532 |  |  
| Deferred tax
liability: |  |  |  |  |  |  |  |  |  
| Depreciation and
amortization |  |  | (215 | ) |  |  | (532 | ) |  
|  |  |   |   |  |  |   |   |  |  
| Net deferred tax
assets |  | $ | — |  |  | $ | — |  |  
|  |  |   |   |  |  |   |   |  |  | 
      
        | Summary of Changes to Unrecognized Tax Benefits | 
The following
table summarizes the changes to the unrecognized tax benefits
during 2012, 2011 and 2010: 
  
|  |  |  |  |  |  
| Balance as of
December 31, 2009 |  | $ | 872 |  |  
| Additions based on tax
positions related to the current year |  |  | 287 |  |  
| Additions based on tax
positions of prior year |  |  | 25 |  |  
|  |  |   |   |  |  
| Balance as of
December 31, 2010 |  |  | 1,184 |  |  
| Additions based on tax
positions related to the current year |  |  | 1,018 |  |  
| Additions based on tax
positions of prior year |  |  | 818 |  |  
|  |  |   |   |  |  
| Balance as of
December 31, 2011 |  |  | 3,020 |  |  
| Additions based on tax
positions related to the current year |  |  | 725 |  |  
| Additions based on tax
positions of prior years |  |  | 132 |  |  
| Decreases based on tax
positions of prior year |  |  | (127 | ) |  
|  |  |   |   |  |  
| Balance as of
December 31, 2012 |  | $ | 3,750 |  |  
|  |  |   |   |  |  |