| 
           1. ORGANIZATION AND BASIS OF PRESENTATION (Details-Inventories) (USD $) 
        In Thousands, unless otherwise specified  | 
        
           Dec. 31, 2013 
         | 
        
           Dec. 31, 2012 
         | 
      
|---|---|---|
| Inventory Disclosure [Abstract] | ||
| Finished goods | $ 10,287 | $ 10,230 | 
| Raw materials | 9,418 | 1,363 | 
| Work in progress | 2,766 | 3,846 | 
| Other | 915 | 805 | 
| Total inventories | $ 23,386 | $ 16,244 | 
| X | ||||||||||
| 
             
- Details 
          
  | 
        
| X | ||||||||||
| 
             
- Definition 
          Amount before valuation and LIFO reserves of completed merchandise or goods expected to be sold within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          Amount after valuation and LIFO reserves of inventory expected to be sold, or consumed within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          Amount before valuation and LIFO reserves of raw materials expected to be sold, or consumed within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          Amount before valuation and LIFO reserves of merchandise or goods in the production process expected to be completed within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
        
| X | ||||||||||
| 
             
- Definition 
          Amount before valuation and LIFO reserves of other inventory expected to be sold, or consumed within one year or operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  |