9. Industry Segment and Geographic Information (Details - Geographic area) - USD ($) $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2015 |
Sep. 30, 2015 |
Jun. 30, 2015 |
Mar. 31, 2015 |
Dec. 31, 2014 |
Sep. 30, 2014 |
Jun. 30, 2014 |
Mar. 31, 2014 |
Dec. 31, 2015 |
Dec. 31, 2014 |
Dec. 31, 2013 |
|
| Segment Reporting Information [Line Items] | |||||||||||
| Revenues | $ 32,372 | $ 37,381 | $ 37,655 | $ 38,324 | $ 32,693 | $ 36,625 | $ 35,025 | $ 36,419 | $ 145,733 | $ 140,762 | $ 131,993 |
| U S | |||||||||||
| Segment Reporting Information [Line Items] | |||||||||||
| Revenues | 94,840 | 81,971 | 75,997 | ||||||||
| Canada | |||||||||||
| Segment Reporting Information [Line Items] | |||||||||||
| Revenues | 2,062 | 11,655 | 15,114 | ||||||||
| Other Countries [Member] | |||||||||||
| Segment Reporting Information [Line Items] | |||||||||||
| Revenues | $ 48,830 | $ 47,136 | $ 40,882 | ||||||||