Capital Facilities (Details) (USD $)
In Thousands, except Share data, unless otherwise specified
1 Months Ended 1 Months Ended 6 Months Ended
Aug. 13, 2012
Jun. 30, 2012
Dec. 31, 2011
Jun. 30, 2011
Term A Loans
May 31, 2010
Term A Loans
Jun. 30, 2012
Term A Loans
May 31, 2010
Term A Loans
Series B
May 31, 2010
Term A Loans
Common stock
Jun. 30, 2011
Term B Loans
Jun. 30, 2012
Term B Loans
Aug. 31, 2010
Term B Loans
Jun. 30, 2011
Term B Loans
Common stock
Jun. 30, 2011
May 2010 Loan Facility
Credit Facilities                          
Increase in interest rate upon the occurrence of a payment default (as a percent)   3.00%                      
Loan proceeds         $ 5,000       $ 10,000        
Period for which the entity is required to make interest-only payments         12 months       6 months        
Debt instrument term         39 months       26 months        
Carrying amount of long-term debt           2,592       7,000      
Current portion of long-term debt   8,222 8,412     2,222       6,000      
Reference rate       LIBOR LIBOR         LIBOR      
Interest rate added to the reference rate (as a percent)       8.50% 8.75%         8.50%     8.50%
LIBOR floor (as a percent)       3.00% 3.00%         3.00%      
Interest rate at period end (as a percent)           11.50%       11.50%      
Number of shares that can be purchased against warrants before IPO             255,376            
Exercise price of warrants before IPO (in dollars per share)             $ 0.93            
Number of shares that can be purchased against warrants after IPO   200,268           31,861       59,748  
Exercise price of warrants after IPO (in dollars per share)               $ 7.45       $ 7.95  
Fair value of warrants recorded as deferred financing cost         204       272        
Maximum borrowings available under debt instrument                 7,000   6,000    
Minimum unrestricted cash required to be maintained under the amended credit facility 1,000 3,000                     3,000
Minimum unrestricted cash proceeds required from an equity event                         $ 15,000