v2.4.0.8
4. Earnings Per Share (Tables)
6 Months Ended
Jun. 30, 2014
Earnings Per Share [Abstract]  
Computation of basic and diluted net loss per share
   Three months ended June 30,   Six months ended June 30, 
   2014   2013   2014   2013 
     
Numerator:                    
Net income (loss)  $1,919   $(282)  $2,004   $(1,276)
Denominator:                    

Weighted average shares used to compute net income (loss) per share

                    
Basic   14,785    271    13,794    268 
Effective of dilutive options and warrants   856        826     
Diluted   15,642    271    14,621    268 
Net income (loss) per share                    
Basic  $0.13   $(1.04)  $0.15   $(4.77)
Diluted  $0.12   $(1.04)  $0.14   $(4.77)
Schedule of potentially dilutive securites
   Three months ended June 30,   Six months ended June 30, 
   2014   2013   2014   2013 
                 
Employee stock options       736        736 
Preferred stock warrants       56        56 
Restricted stock units                
        792        792