Annual report pursuant to section 13 and 15(d)

12. FAIR VALUE MEASUREMENTS (Details-Level 3)

v2.4.0.8
12. FAIR VALUE MEASUREMENTS (Details-Level 3) (Level 3 [Member], USD $)
In Thousands, unless otherwise specified
12 Months Ended
Dec. 31, 2013
Dec. 31, 2012
Warrant
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Beginning Balance $ 4,892 $ 1,921
Exercises of warrants (260) (113)
Adjustments to fair value for the period (646) (1,954)
Ending Balance 8,215 4,892
Warrant | Issuance In January [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of warrants 2,657  
Warrant | Issuance In March [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of notes and warrants 1,572  
Warrant | Issuance In June [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of notes     
Warrant | IssuanceOfWarrantsJulyOfferingIssuance of warrants in July offering
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of warrants   3,380
Warrant | Issuance of warrants in September offering
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of warrants   1,658
Conversion Features [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Beginning Balance     
Conversion of notes (5,205)  
Exercises of warrants     
Adjustments to fair value for the period 875  
Ending Balance     
Conversion Features [Member] | Issuance In January [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of warrants     
Conversion Features [Member] | Issuance In March [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of notes 2,929  
Conversion Features [Member] | Issuance In June [Member]
   
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]    
Issuance of notes and warrants $ 1,401