7Baggers

Applied Optoelectronics, Inc
(NASDAQ:AAOI) 

AAOI stock logo

Applied Optoelectronics, Inc. designs, manufactures, and sells various fiber-optic networking products worldwide. It offers optical modules, lasers, subassemblies, transmitters and transceivers, and turn-key equipment, as well as headend, node, and distribution equipment. The company sells its produ...

Founded: 1997
Full Time Employees: 3,115
CEO / Founder: Chih-Hsiang Lin 
Sector: Technology
Industry: Semiconductors

Share this website to your friends
• Market Cap:
• Exchange:
• Shs Outstanding:
• Employees:
• Beta:
• Return on Equity (ROE) ttm:
• Return on Assets (ROA) ttm:
• EPS ttm:
• Book value per Share:
• Cash per Share:
• Current ast per Share:
• P/E ttm:
• P/E forward:
• P/E ttm high:
• P/E ttm low:
• P/S ttm:
• P/B ttm:
• P/FCF ttm:
• PEG ratio:
• Cash Ratio ttm:
• Quick Ratio ttm:
• Current Ratio ttm:
• Gross Mgn ttm:
• EBITDA Mgn ttm:
• Operating Mgn ttm:
• Net Income Mgn ttm:
• Trailing Div yield:
• Forward Div yield:
• Payout Ratio ttm:
• Ex-Dividend date:
• Target Price High:
• Target Price Low:
• Target Price Mean:
• Number of Analysts:
• Debt Ratio ttm:
• Debt to Equity ttm:
• Total Net Debt:
At a glance:
Bull Thesis:
Bear Thesis:
Main Competitors:
Moat:
Income Statements:
Quarterly
Annual
    Unit: USD2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 2013-09-30 
                                                      
      revenue
    134,274,000 118,630,000 102,952,000 99,859,000 100,271,000 65,151,000 43,270,000 40,673,000 60,453,000 62,547,000 41,615,000 53,030,000 61,585,000 56,693,000 52,299,000 52,242,000 54,408,000 53,267,000 54,189,000 49,701,000 52,325,000 76,608,000 65,222,000 40,467,000 48,658,000 46,084,000 43,411,000 52,719,000 58,018,000 56,386,000 87,822,000 65,239,000 79,855,000 88,879,000 117,371,000 96,224,000 84,900,000 70,137,000 55,254,000 50,422,000 52,952,000 57,085,000 49,632,000 30,234,000 36,391,000 36,549,000 32,650,000 24,859,000 23,744,000 20,766,000 
      yoy
    33.91% 82.08% 137.93% 145.52% 65.87% 4.16% 3.98% -23.30% -1.84% 10.33% -20.43% 1.51% 13.19% 6.43% -3.49% 5.11% 3.98% -30.47% -16.92% 22.82% 7.54% 66.24% 50.24% -23.24% -16.13% -18.27% -50.57% -19.19% -27.35% -36.56% -25.18% -32.20% -5.94% 26.72% 112.42% 90.84% 60.33% 22.86% 11.33% 66.77% 45.51% 56.19% 52.01% 21.62% 53.26% 76.00%     
      qoq
    13.19% 15.23% 3.10% -0.41% 53.91% 50.57% 6.39% -32.72% -3.35% 50.30% -21.53% -13.89% 8.63% 8.40% 0.11% -3.98% 2.14% -1.70% 9.03% -5.01% -31.70% 17.46% 61.17% -16.83% 5.59% 6.16% -17.66% -9.13% 2.89% -35.80% 34.62% -18.30% -10.15% -24.28% 21.98% 13.34% 21.05% 26.94% 9.58% -4.78% -7.24% 15.02% 64.16% -16.92% -0.43% 11.94% 31.34% 4.70% 14.34%  
      cost of goods sold
    92,330,000 85,367,000 71,790,000 69,315,000 71,542,000 49,234,000 33,708,000 33,082,000 38,849,000 42,373,000 33,717,000 43,786,000 55,359,000 46,944,000 43,671,000 43,217,000 46,313,000 45,143,000 43,411,000 38,982,000 41,048,000 57,418,000 51,486,000 34,129,000 37,322,000 34,108,000 32,873,000 40,368,000 47,481,000 38,849,000 53,959,000 39,403,000 47,701,000 49,507,000 64,089,000 54,752,000 52,662,000 46,976,000 37,952,000 36,169,000 37,334,000 39,032,000 32,901,000 20,183,000 24,132,000 24,403,000 21,462,000 16,206,000 17,069,000 14,445,000 
      gross profit
    41,944,000 33,263,000 31,162,000 30,544,000 28,729,000 15,917,000 9,562,000 7,591,000 21,604,000 20,174,000 7,898,000 9,244,000 6,226,000 9,749,000 8,628,000 9,025,000 8,095,000 8,124,000 10,778,000 10,719,000 11,277,000 19,190,000 13,736,000 6,338,000 11,336,000 11,976,000 10,538,000 12,351,000 10,537,000 17,537,000 33,863,000 25,836,000 32,154,000 39,372,000 53,282,000 41,472,000 32,238,000 23,161,000 17,302,000 14,253,000 15,618,000 18,053,000 16,731,000 10,051,000 12,259,000 12,146,000 11,188,000 8,653,000 6,675,000 6,321,000 
      yoy
    46.00% 108.98% 225.89% 302.37% 32.98% -21.10% 21.07% -17.88% 247.00% 106.93% -8.46% 2.43% -23.09% 20.00% -19.95% -15.80% -28.22% -57.67% -21.53% 69.12% -0.52% 60.24% 30.35% -48.68% 7.58% -31.71% -68.88% -52.19% -67.23% -55.46% -36.45% -37.70% -0.26% 69.99% 207.95% 190.97% 106.42% 28.29% 3.41% 41.81% 27.40% 48.63% 49.54% 16.16% 83.66% 92.15%     
      qoq
    26.10% 6.74% 2.02% 6.32% 80.49% 66.46% 25.96% -64.86% 7.09% 155.43% -14.56% 48.47% -36.14% 12.99% -4.40% 11.49% -0.36% -24.62% 0.55% -4.95% -41.24% 39.71% 116.72% -44.09% -5.34% 13.65% -14.68% 17.22% -39.92% -48.21% 31.07% -19.65% -18.33% -26.11% 28.48% 28.64% 39.19% 33.86% 21.39% -8.74% -13.49% 7.90% 66.46% -18.01% 0.93% 8.56% 29.30% 29.63% 5.60%  
      gross margin %
    31.24% 28.04% 30.27% 30.59% 28.65% 24.43% 22.10% 18.66% 35.74% 32.25% 18.98% 17.43% 10.11% 17.20% 16.50% 17.28% 14.88% 15.25% 19.89% 21.57% 21.55% 25.05% 21.06% 15.66% 23.30% 25.99% 24.27% 23.43% 18.16% 31.10% 38.56% 39.60% 40.27% 44.30% 45.40% 43.10% 37.97% 33.02% 31.31% 28.27% 29.49% 31.62% 33.71% 33.24% 33.69% 33.23% 34.27% 34.81% 28.11% 30.44% 
      operating expenses
                                                      
      research and development
    25,820,000 21,265,000 20,612,000 17,810,000 16,737,000 13,428,000 13,078,000 11,712,000 9,342,000 9,457,000 8,640,000 8,536,000 9,223,000 9,206,000 8,328,000 9,486,000 9,230,000 10,149,000 10,914,000 10,928,000 10,826,000 11,206,000 10,803,000 10,558,000 10,597,000 10,466,000 11,151,000 11,185,000 11,342,000 14,180,000 12,645,000 11,736,000 10,670,000 9,190,000 8,073,000 7,432,000 7,208,000 8,362,000 7,814,000 8,396,000 5,960,000 5,386,000 4,701,000 4,805,000 4,221,000 4,194,000 4,009,000 3,546,000 2,400,000 2,211,000 
      sales and marketing
    6,904,000 9,871,000 8,135,000 5,357,000 3,651,000 4,796,000 5,910,000 3,798,000 3,438,000 3,035,000 2,269,000 2,327,000 2,616,000 2,385,000 2,164,000 2,558,000 2,323,000 2,783,000 2,832,000 2,960,000 3,229,000 4,491,000 3,430,000 2,936,000 2,616,000 2,518,000 2,331,000 2,595,000 1,920,000 2,370,000 2,377,000 2,474,000 2,090,000 2,551,000 2,158,000 1,903,000 1,743,000 1,594,000 1,610,000 1,680,000 1,633,000 1,582,000 1,607,000 1,559,000 1,591,000 1,622,000 1,497,000 1,333,000 1,197,000 1,034,000 
      general and administrative
    20,721,000 20,314,000 18,391,000 16,314,000 14,813,000 14,240,000 16,818,000 13,727,000 13,356,000 14,368,000 12,954,000 12,548,000 12,750,000 11,654,000 11,035,000 11,220,000 10,167,000 10,645,000 10,681,000 10,869,000 10,383,000 10,272,000 10,611,000 10,638,000 10,177,000 9,988,000 10,884,000 10,440,000 9,552,000 10,591,000 9,898,000 9,456,000 9,074,000 9,580,000 8,786,000 7,822,000 7,443,000 6,445,000 5,906,000 5,733,000 5,271,000 4,963,000 4,534,000 5,003,000 5,131,000 4,458,000 3,952,000 3,554,000 3,375,000 2,436,000 
      total operating expenses
    53,445,000 51,450,000 47,138,000 39,481,000 35,201,000 32,464,000 35,806,000 29,237,000 26,136,000 26,860,000 23,863,000 23,411,000 24,589,000 23,245,000 21,527,000 23,264,000 21,720,000 23,577,000 24,427,000 24,757,000 24,438,000 25,969,000 24,844,000 24,132,000 23,390,000 22,972,000 24,366,000 24,220,000 22,814,000 27,141,000 24,920,000 23,666,000 21,834,000 21,321,000 19,017,000 17,157,000 16,394,000 16,401,000 15,330,000 15,809,000 12,864,000 11,931,000 10,842,000 11,367,000 10,943,000 10,274,000 9,458,000 8,433,000 6,972,000 5,681,000 
      income from operations
    -11,501,000 -18,187,000 -15,976,000 -8,937,000 -6,472,000 -16,547,000 -26,244,000 -21,646,000 -4,532,000 -6,686,000 -15,965,000 -14,167,000 -18,363,000 -13,496,000 -12,899,000 -14,239,000 -13,625,000 -15,453,000 -13,649,000 -14,038,000 -13,161,000 -6,779,000 -11,108,000 -17,794,000 -12,054,000 -10,996,000 -13,828,000 -11,869,000 -12,277,000 -9,604,000 8,943,000 2,170,000 10,320,000 18,051,000 34,265,000 24,315,000 15,844,000 6,760,000 1,972,000 -1,556,000 2,754,000 6,122,000 5,889,000 -1,316,000 1,316,000 1,872,000 1,730,000 220,000 -297,000 640,000 
      yoy
    77.70% 9.91% -39.13% -58.71% 42.81% 147.49% 64.38% 52.79% -75.32% -50.46% 23.77% -0.51% 34.77% -12.66% -5.49% 1.43% 3.53% 127.95% 22.88% -21.11% 9.18% -38.35% -19.67% 49.92% -1.82% 14.49% -254.62% -646.96% -218.96% -153.20% -73.90% -91.08% -34.86% 167.03% 1637.58% -1662.66% 475.31% 10.42% -66.51% 18.24% 109.27% 227.03% 240.40% -698.18% -543.10% 192.50%     
      qoq
    -36.76% 13.84% 78.76% 38.09% -60.89% -36.95% 21.24% 377.63% -32.22% -58.12% 12.69% -22.85% 36.06% 4.63% -9.41% 4.51% -11.83% 13.22% -2.77% 6.66% 94.14% -38.97% -37.57% 47.62% 9.62% -20.48% 16.51% -3.32% 27.83% -207.39% 312.12% -78.97% -42.83% -47.32% 40.92% 53.47% 134.38% 242.80% -226.74% -156.50% -55.01% 3.96% -547.49% -200.00% -29.70% 8.21% 686.36% -174.07% -146.41%  
      operating margin %
    -8.57% -15.33% -15.52% -8.95% -6.45% -25.40% -60.65% -53.22% -7.50% -10.69% -38.36% -26.72% -29.82% -23.81% -24.66% -27.26% -25.04% -29.01% -25.19% -28.24% -25.15% -8.85% -17.03% -43.97% -24.77% -23.86% -31.85% -22.51% -21.16% -17.03% 10.18% 3.33% 12.92% 20.31% 29.19% 25.27% 18.66% 9.64% 3.57% -3.09% 5.20% 10.72% 11.87% -4.35% 3.62% 5.12% 5.30% 0.88% -1.25% 3.08% 
      other income
    1,016,000 702,000 7,410,000 475,000         -34,000 -541,000 -180,000 -450,000 528,000 998,000 6,797,000 -169,000 902,000 866,000 974,000 256,000 98,000 1,446,000   494,000 766,000 1,581,000  -890,000 -354,000 64,000 -608,000 -133,000 66,000 -932,000 334,000 -2,361,000 413,000 555,000      -128,000 73,000 
      interest income
    831,000 451,000 286,000 224,000 365,000 156,000 93,000 260,000 476,000 65,000 37,000 33,000 36,000 31,000 31,000 28,000 21,000 17,000 16,000 16,000 35,000 26,000 47,000 147,000 196,000 347,000 310,000 72,000 59,000 86,000 85,000 52,000 55,000 61,000 70,000 35,000 41,000 40,000 65,000 101,000 92,000 82,000 80,000 74,000 89,000 95,000 106,000 79,000   
      interest expense
    -844,000 -902,000 -818,000 -934,000 -1,754,000 -1,702,000 -1,693,000 -1,676,000 -3,127,000 -1,989,000 -2,175,000 -2,137,000 -1,888,000 -1,621,000 -1,408,000 -1,401,000 -1,462,000 -1,359,000 -1,367,000 -1,431,000 -1,211,000 -1,480,000 -1,489,000 -1,455,000 -1,402,000 -1,517,000 -1,490,000 -996,000 -482,000 -274,000 -279,000 -71,000 -66,000 -248,000 -245,000 -299,000 -404,000 -462,000 -450,000 -401,000 -242,000 -351,000 -300,000 -125,000 -49,000 -55,000 -60,000 -162,000 -200,000 -323,000 
      total other income
    1,003,000 251,000 6,878,000 -235,000 -113,217,000 -1,210,000 129,000 -1,524,000 -9,325,000 -2,267,000 -971,000 -2,125,000 -1,886,000 -2,131,000 -1,557,000 -1,823,000 -913,000 -344,000 5,446,000 -1,584,000 -274,000 -588,000 -468,000 -1,052,000 -1,108,000 276,000   71,000 578,000 1,387,000  -901,000 -541,000 -111,000 -872,000   -1,317,000 34,000 -510,000 -3,016,000 335,000 641,000       
      income before income taxes
    -10,498,000 -17,936,000 -9,098,000 -9,172,000 -119,689,000 -17,757,000 -26,115,000 -23,170,000 -13,857,000 -8,953,000 -16,936,000 -16,292,000 -20,249,000 -15,627,000 -14,456,000 -16,062,000 -14,538,000 -15,797,000 -8,203,000 -15,622,000 -13,435,000 -7,367,000 -11,576,000 -18,846,000 -13,162,000 -10,720,000 -14,557,000 -12,948,000 -12,206,000 -9,026,000 10,330,000 1,124,000 9,419,000 17,510,000 34,154,000 23,443,000 15,466,000 6,404,000 655,000 -1,522,000 2,513,000 3,106,000 6,224,000 -675,000 714,000 1,654,000 2,004,000 110,000 -521,000 390,000 
      income tax expense
            -1,000  -8,000                    -2,296,000                    
      net income
    -2,022,000 -17,936,000 -9,098,000 -9,172,000 -119,691,000 -17,757,000 -26,115,000 -23,170,000 -13,858,000 -8,953,000 -16,944,000 -16,292,000 -20,250,000 -15,627,000 -14,456,000 -16,062,000 -14,540,000 -15,797,000 -8,203,000 -15,622,000 -13,439,000 -9,616,000 -18,600,000 -16,797,000 -35,429,000 -8,780,000 -11,366,000 -10,474,000 -8,568,000 -3,732,000 8,034,000 2,120,000 5,716,000 19,375,000 29,071,000  14,225,000 17,736,000 603,000 -1,330,000 2,028,500 2,700,000 6,089,000 -675,000 895,250 1,577,000 1,919,000 85,000 -221,250 390,000 
      yoy
    -98.31% 1.01% -65.16% -60.41% 763.70% 98.34% 54.13% 42.22% -31.57% -42.71% 17.21% 1.43% 39.27% -1.08% 76.23% 2.82% 8.19% 64.28% -55.90% -7.00% -62.07% 9.52% 63.65% 60.37% 313.50% 135.26% -241.47% -594.06% -249.90% -119.26% -72.36%  -59.82% 9.24% 4721.06%  601.26% 556.89% -90.10% 97.04% 126.58% 71.21% 217.30% -894.12% -504.63% 304.36%     
      qoq
    -88.73% 97.14% -0.81% -92.34% 574.05% -32.00% 12.71% 67.20% 54.79% -47.16% 4.00% -19.55% 29.58% 8.10% -10.00% 10.47% -7.96% 92.58% -47.49% 16.24% 39.76% -48.30% 10.73% -52.59% 303.52% -22.75% 8.52% 22.25% 129.58% -146.45% 278.96% -62.91% -70.50% -33.35%   -19.80% 2841.29% -145.34% -165.57% -24.87% -55.66% -1002.07% -175.40% -43.23% -17.82% 2157.65% -138.42% -156.73%  
      net income margin %
    -1.51% -15.12% -8.84% -9.18% -119.37% -27.26% -60.35% -56.97% -22.92% -14.31% -40.72% -30.72% -32.88% -27.56% -27.64% -30.75% -26.72% -29.66% -15.14% -31.43% -25.68% -12.55% -28.52% -41.51% -72.81% -19.05% -26.18% -19.87% -14.77% -6.62% 9.15% 3.25% 7.16% 21.80% 24.77% 0% 16.76% 25.29% 1.09% -2.64% 3.83% 4.73% 12.27% -2.23% 2.46% 4.31% 5.88% 0.34% -0.93% 1.88% 
      net income per share
                                       19,789               
      basic
     -0.28 -0.16 -0.18 -2.82 -0.42 -0.66 -0.6 -0.36 -0.27 -0.57 -0.56 -0.71 -0.56 -0.52  -0.53 -0.58 -0.31 -0.59 -0.55 -0.42 -0.89 -0.83 -1.77 -0.44 -0.57 -0.53 -0.44 -0.19 0.41 0.11 0.28 1.52 1.06 0.82 1.03 0.04 -0.08 0.16 0.17 0.41 -0.05 0.05 0.11 0.13 0.01 -0.81 0.04 
      diluted
     -0.28 -0.16 -0.18 -2.82 -0.42 -0.66 -0.6 -0.36 -0.27 -0.57 -0.56 -0.71 -0.56 -0.52  -0.53 -0.58 -0.31 -0.59 -0.55 -0.42 -0.89 -0.83 -1.77 -0.44 -0.57 -0.53 -0.43 -0.19 0.4 0.11 0.28 0.95 1.43 0.81 0.97 0.03 -0.08 0.15 0.16 0.38 -0.05 0.04 0.1 0.12 0.01 -0.81 0.04 
      weighted-average shares used for eps calculation
                                                      
      basic
    60,183,987 63,329 56,772 50,041 41,538,551 42,311,811 39,364,720 38,362,118 31,944,259 32,774,148 29,488,561 28,871,857 27,846,387 27,839,245 27,612,315 27,463,321 26,912,141 27,097,372 26,850,032 26,438,071 21,866,630 22,744,361 20,858,450 20,208,383 19,982,363 20,022,520 19,931,745 19,863,080 19,646,646 19,707,036 19,590,164 19,492,251 19,097,355 19,294,022 19,081,034 18,597,607 17,201,731   16,930,261 15,626,753   14,844,211 14,307,477 14,805,668 14,785,437 12,792,322  8,995 
      diluted
    60,183,987 63,329 56,772 50,041 41,538,551 42,311,811 39,364,720 38,362,118 31,944,259 32,774,148 29,488,561 28,871,857 27,846,387 27,839,245 27,612,315 27,463,321 26,912,141 27,097,372 26,850,032 26,438,071 21,866,630 22,744,361 20,858,450 20,208,383 19,982,363 20,022,520 19,931,745 19,863,080 19,646,646 19,707,036 20,079,702 19,988,575 20,139,105 20,422,609 20,367,127 19,702,047 17,712,928   16,930,261 16,532,850   14,844,211 15,186,961 15,594,544 15,641,694 13,787,580  9,155 
      other expense
        489,250 336,000 1,729,000 -108,000 200,750 -343,000 1,167,000 -21,000               451,000 -155,000    -1,027,000            692,000 -14,250 -258,000 228,000 -27,000   
      ​
                                                      
      income tax benefit
                        -4,000 -2,249,000 -7,024,000 2,049,000 -22,267,000 1,940,000 3,191,000 2,474,000 3,638,000 5,294,000  996,000 -3,703,000 1,865,000 -5,083,000 -3,654,000 -1,241,000 11,332,000 -52,000 192,000           
      total other expense
                              -729,000 -1,079,000    -1,046,000     -378,000 -356,000       -13,500 -218,000 274,000 -110,000 -218,750 -250,000 
      weighted-average shares used for eps calculation
                                                      
      compute net income per share
                                                      
      basic
                                        4,264,421.75 17,151,031 17,090,750  3,805,075.25 15,868,989 14,936,442        
      diluted
                                        4,488,557.25 18,360,531 17,454,552  4,046,247.75 16,693,656 15,871,745        
      unrealized foreign exchange loss
                                            -567,500 -3,160,000         
      income taxes
                                            -135,250 -406,000 -135,000  -46,750 -77,000 -85,000 -25,000   
      pro forma net income per share
                                                      
      basic
                                                    -0.025 0.04 
      diluted
                                                    -0.025 0.04 
      pro forma weighted-average shares used to compute net income per share
                                                      
      basic
                                                    2,251 9,034 
      diluted
                                                    2,251 9,194 
    Balance Sheets:
    Quarterly
    Annual
      Unit: USD2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 2013-09-30 
                                                        
        assets
                                                        
        current assets:
                                                        
        cash and cash equivalents
      206,140,000 136,961,000 64,699,000 51,144,000 67,428,000 34,124,000 10,653,000 8,433,000 45,366,000 21,940,000 21,578,000 16,103,000 24,685,000 26,268,000 33,667,000 31,980,000 34,656,000 43,534,000 44,013,000 45,482,000 43,425,000 46,772,000 51,131,000 55,908,000 59,977,000 69,994,000 81,070,000 74,930,000 55,646,000 56,380,000 76,190,000 82,251,000 82,936,000 70,930,000 74,825,000 59,672,000 50,224,000 55,907,000 42,289,000 45,528,000 28,074,000 37,592,000 28,412,000 9,909,000 32,175,000 37,034,000 34,079,000 52,411,000 22,006,000 7,325,000 
        restricted cash
      9,895,000 13,756,000 22,496,000 15,667,000 11,705,000 7,243,000 5,465,000 8,972,000 9,731,000 9,301,000 7,034,000 10,845,000 10,902,000 8,307,000 6,983,000 8,128,000 6,480,000 5,363,000 6,486,000 3,856,000 6,689,000 11,296,000 7,778,000 6,609,000 7,051,000 2,382,000 2,917,000 2,529,000 2,358,000 1,695,000 1,753,000 1,048,000 1,012,000 1,072,000 1,054,000 861,000 1,732,000 4,285,000 4,932,000 5,006,000 4,719,000 3,491,000 2,495,000 1,048,000 509,000 787,000 932,000 841,000 775,000 1,031,000 
        accounts receivable
      244,404,000 224,028,000 211,452,000 171,101,000                                               
        inventories
      183,105,000 170,214,000 138,867,000 102,313,000 88,135,000 64,382,000 54,322,000 54,322,000 63,866,000 67,533,000 66,321,000 70,186,000 79,679,000 94,261,000 98,181,000 92,007,000 92,516,000 94,507,000 100,399,000 106,336,000 110,397,000 111,427,000 97,251,000 87,109,000 85,028,000 82,118,000 81,475,000 84,464,000 93,256,000 107,905,000 93,269,000 92,624,000 75,768,000 74,552,000 59,701,000 57,503,000 51,817,000 54,919,000 59,833,000 60,258,000 66,238,000 60,237,000 52,451,000 43,565,000 33,780,000 33,129,000 31,200,000 23,933,000 19,608,000 16,421,000 
        prepaid expenses and other current assets
      32,183,000 30,353,000 20,824,000 18,617,000 17,195,000 7,409,000 4,429,000 4,078,000 5,349,000 4,871,000 6,231,000 6,517,000 6,384,000 6,132,000 6,235,000 5,711,000 4,334,000 4,717,000 5,101,000 5,169,000 5,213,000 8,805,000 6,610,000 6,904,000 5,869,000 5,685,000 5,719,000 7,726,000 11,293,000 10,377,000 10,070,000 10,921,000 8,701,000 10,448,000 9,131,000 9,385,000 3,969,000 4,761,000 5,074,000 6,859,000 8,236,000 9,781,000 8,031,000 7,814,000 6,017,000 7,847,000 6,978,000 5,483,000 5,488,000 3,765,000 
        total current assets
      675,727,000 575,312,000 458,338,000 358,842,000 301,268,000 188,363,000 132,969,000 133,635,000 172,605,000 164,398,000 144,546,000 161,529,000 183,164,000 187,800,000 194,417,000 193,239,000 194,079,000 200,570,000 208,224,000 209,855,000 209,169,000 229,930,000 213,009,000 182,688,000 192,804,000 190,647,000 201,035,000 203,274,000 194,275,000 215,170,000 230,588,000 241,825,000 229,697,000 230,067,000 218,512,000 194,222,000 157,552,000 164,161,000 153,711,000 160,479,000 153,928,000 160,194,000 132,620,000 101,139,000 113,239,000 110,936,000 106,114,000 114,403,000 77,936,000 45,585,000 
        property, plant and equipment
      376,050,000 310,303,000 269,386,000 241,453,000 219,235,000 205,303,000 197,781,000 199,941,000 200,317,000 193,828,000 197,879,000 207,171,000 210,184,000 211,586,000 224,349,000 236,774,000 243,035,000 242,452,000 246,797,000 248,303,000 252,984,000 249,740,000 244,126,000 243,717,000 248,444,000 245,535,000 247,887,000 242,623,000 234,211,000 222,545,000 212,105,000 204,644,000 197,943,000 181,481,000    140,516,000 136,828,000 123,656,000  87,836,000 78,979,000 69,512,000  51,267,000 41,657,000 35,282,000  27,125,000 
        land use rights
      4,825,000 4,804,000 4,798,000 4,814,000 4,837,000 4,993,000 4,939,000 4,991,000 5,030,000 4,992,000 4,990,000 5,278,000 5,238,000 5,168,000 5,500,000 5,848,000 5,856,000 5,790,000 5,846,000 5,780,000 5,854,000 5,640,000 5,455,000 5,481,000 5,598,000 5,551,000 5,743,000 5,894,000 5,814,000 5,832,000 6,096,000 6,448,000 804,000 797,000 786,000 777,000 778,000 814,000 825,000 852,000 854,000 877,000 919,000 920,000 930,000 931,000 934,000 942,000 959,000 957,000 
        operating right of use asset
      49,697,000   9,216,000 9,646,000 4,102,000 4,249,000 4,552,000 5,026,000 4,992,000 5,296,000 5,381,000 5,566,000 5,600,000 6,165,000 6,623,000 7,078,000 7,277,000 7,503,000 7,486,000 7,729,000 7,792,000 7,552,000 7,645,000 7,768,000 7,738,000 7,912,000 8,293,000                       
        intangible assets
      3,623,000 3,640,000 3,639,000 3,634,000 3,680,000 3,663,000 3,616,000 3,610,000 3,628,000 3,626,000 3,625,000 3,655,000 3,699,000 3,740,000 3,763,000 3,792,000 3,836,000 3,877,000 3,888,000 3,943,000 3,999,000 4,031,000 4,006,000 4,051,000 4,081,000 4,072,000 4,028,000 4,001,000 3,977,000 3,971,000 3,978,000 4,015,000 4,007,000 4,041,000 4,007,000 3,984,000 3,993,000 4,004,000 3,962,000 3,959,000 3,900,000 3,858,000 3,837,000 3,828,000 3,833,000 3,830,000 3,841,000 3,848,000 851,000 828,000 
        other assets
      58,501,000 42,421,000 38,583,000 26,709,000 8,366,000 3,548,000 4,486,000 4,187,000 2,580,000 1,953,000 531,000 519,000 386,000 415,000 520,000 428,000 518,000 2,493,000 813,000 915,000 982,000 558,000 1,703,000 765,000 724,000 973,000 1,080,000 2,932,000 6,849,000 15,074,000 6,286,000 4,750,000 7,732,000 7,151,000 8,501,000 6,028,000 4,468,000 4,593,000 6,040,000 6,915,000 5,094,000 3,231,000 1,303,000 1,823,000 860,000 1,190,000 978,000 179,000 177,000 1,439,000 
        total assets
      1,168,423,000 978,528,000 796,850,000 644,668,000 547,032,000 409,972,000 348,040,000 350,916,000 389,186,000 373,792,000 356,877,000 383,551,000 408,263,000 414,343,000 434,755,000 446,753,000 454,459,000 462,524,000 473,144,000 476,362,000 480,805,000 497,787,000 478,091,000 453,536,000 466,825,000 483,878,000 495,122,000 491,205,000 466,840,000 481,085,000 472,204,000 475,617,000 452,984,000 438,704,000 406,986,000 367,626,000 322,318,000 326,791,000 301,366,000 295,861,000 273,475,000 256,949,000 222,747,000 186,215,000 183,670,000 168,154,000 153,524,000 154,654,000 111,057,000 75,934,000 
        liabilities and stockholders' equity
                                                        
        current liabilities:
                                                        
        accounts payable
      143,932,000 150,145,000 132,962,000 124,866,000 104,969,000 55,991,000 33,518,000 23,639,000 32,892,000 34,854,000 35,111,000 38,419,000 47,845,000 52,311,000 52,496,000 40,044,000 34,402,000 28,333,000 25,593,000 26,201,000 29,482,000 56,134,000 51,154,000 36,236,000 32,828,000 28,074,000 31,526,000 28,332,000 29,910,000 53,706,000 51,429,000 46,223,000 43,624,000 50,993,000 53,321,000 48,252,000 36,375,000 32,413,000 33,130,000 25,113,000 28,668,000 31,518,000 29,755,000 25,301,000 30,799,000 22,616,000 22,631,000 17,105,000 15,010,000 11,282,000 
        bank acceptance payable
      33,363,000 34,046,000 32,107,000 23,992,000 19,259,000 9,934,000 5,048,000 10,712,000 15,482,000 14,383,000 8,637,000 19,196,000 12,337,000 13,760,000 10,273,000 9,955,000 8,198,000 6,481,000 6,469,000 6,344,000 15,860,000 13,366,000 9,866,000 9,550,000 6,310,000 4,080,000 2,532,000 5,198,000 4,628,000        307,000 3,231,000 2,435,000 2,411,000 2,998,000 3,109,000 2,660,000 1,445,000 1,271,000 2,115,000 2,377,000 2,691,000 2,347,000 3,040,000 
        accrued liabilities
      42,491,000 34,135,000 27,686,000 20,488,000 22,091,000 19,140,000 17,210,000 13,345,000 18,549,000 16,383,000 14,702,000 13,505,000 17,222,000 12,444,000 12,440,000 13,237,000 15,587,000 16,204,000 15,509,000 14,028,000 18,511,000 17,526,000 15,557,000 10,677,000 17,864,000 15,542,000 13,986,000 12,424,000 19,291,000 20,723,000 16,651,000 13,358,000 19,103,000 16,801,000 13,850,000 10,535,000 15,426,000 11,316,000 13,762,000 9,308,000 11,506,000 9,941,000 7,348,000 6,318,000 6,940,000 4,960,000 5,606,000 4,072,000 4,515,000 3,557,000 
        current lease liability - operating
      3,522,000   1,349,000 1,380,000 1,115,000 1,087,000 1,095,000 1,149,000 1,059,000 1,055,000 1,035,000 1,041,000 998,000 1,023,000 1,046,000 1,062,000 1,045,000 1,020,000 1,021,000 1,012,000 983,000 941,000 938,000 965,000                          
        current portion of notes payable and long-term debt
      33,975,000  22,183,000 20,312,000 22,370,000 29,483,000 22,506,000 24,129,000 23,197,000 31,323,000 37,276,000 50,921,000 57,074,000 51,357,000 53,565,000 52,233,000 49,689,000 41,254,000 41,876,000 50,803,000 38,265,000 44,292,000 42,234,000 38,096,000 33,371,000 15,803,000 19,180,000 18,168,000 23,589,000 8,275,000 3,161,000 2,690,000 559,000 3,638,000 4,552,000 4,690,000 7,865,000 25,092,000 28,828,000 40,972,000 30,908,000   18,721,000 9,591,000 9,392,000 9,562,000 16,054,000 17,185,000 12,095,000 
        total current liabilities
      257,283,000 249,142,000 216,843,000 191,007,000 170,069,000 117,102,000 80,939,000 74,609,000 93,358,000 188,248,000 187,470,000 205,607,000 138,582,000 130,889,000 129,816,000 116,534,000 108,957,000 93,335,000 90,485,000 98,415,000 103,148,000 132,318,000 119,769,000 95,514,000 91,355,000 64,423,000 68,127,000 65,175,000 77,418,000 82,704,000 71,705,000 69,859,000 70,708,000 76,891,000 76,670,000 67,590,000 59,973,000 72,052,000 78,155,000 77,804,000 74,080,000 65,361,000 70,753,000 51,785,000 48,601,000 39,083,000 40,176,000 39,922,000 39,057,000 29,974,000 
        convertible senior notes
      129,829,000 130,120,000 133,936,000 134,229,000 134,497,000 77,053,000 76,690,000 76,331,000 76,233,000    79,506,000 79,298,000 79,090,000 78,884,000 78,680,000 78,472,000 78,264,000 78,058,000 77,854,000 77,646,000 77,439,000 77,235,000 77,041,000 76,835,000 76,630,000 76,439,000                       
        non-current lease liability - operating
      47,393,000   8,608,000 9,041,000 3,731,000 3,917,000 4,250,000 4,726,000 4,767,000 5,148,000 5,307,000 5,505,000 5,570,000 6,202,000 6,699,000 7,189,000 7,410,000 7,672,000 7,654,000 7,926,000 8,007,000 7,795,000 7,878,000 7,983,000                          
        long-term debt
                                                        
        total liabilities
      434,505,000 419,443,000 371,869,000 335,655,000 317,920,000 197,886,000 161,546,000 155,190,000 174,317,000 195,439,000 193,618,000 210,914,000 223,593,000 215,805,000 215,161,000 207,176,000 199,889,000 198,556,000 195,853,000 197,890,000 202,914,000 232,621,000 220,636,000 196,037,000 193,031,000 181,593,000 183,407,000 167,587,000 137,746,000 145,600,000 129,573,000 132,323,000 119,708,000 114,262,000 99,484,000 91,453,000 94,934,000 139,253,000 134,195,000 129,982,000 108,077,000 94,047,000 100,849,000 71,308,000 68,658,000 54,333,000 41,743,000 45,506,000 47,980,000 44,592,000 
        commitments and contingencies
                                                        
        stockholders' equity:
                                                        
        preferred stock: 5,000 shares authorized at 0.001 par value...
                                                        
        common stock; 120,000 shares authorized at 0.001 par value...
      75,000                                                  
        additional paid-in capital
      1,224,538,000 1,045,986,000 893,927,000 772,738,000 683,462,000 543,492,000 502,387,000 484,663,000 478,972,000 431,766,000 407,003,000 394,147,000 391,526,000 388,316,000 385,531,000 383,474,000 381,143,000 378,207,000 375,312,000 371,920,000 354,685,000 335,035,000 323,405,000 306,305,000 303,401,000 300,725,000 297,922,000 295,130,000 292,480,000 290,070,000 288,686,000 286,938,000 285,376,000 285,600,000 290,067,000 288,606,000 265,264,000 236,646,000 235,338,000 234,229,000 233,336,000 232,799,000 193,488,000 192,705,000 192,112,000 191,439,000 190,861,000 190,286,000 144,023,000 4,801,000 
        accumulated other comprehensive loss
      -617,000                                                  
        accumulated deficit
      -490,078,000 -488,057,000 -470,121,000 -461,023,000 -451,851,000 -332,160,000 -314,403,000 -288,288,000 -265,116,000 -251,259,000 -242,306,000 -225,362,000 -209,068,000 -188,818,000 -173,191,000 -158,733,000 -142,671,000 -128,131,000 -112,334,000 -104,131,000 -88,509,000 -75,070,000 -65,454,000 -46,854,000            -16,024,000 -37,013,000 -51,238,000 -68,974,000 -69,577,000 -68,247,000 -70,926,000 -73,626,000 -79,715,000 -79,040,000 -79,742,000 -81,319,000 -83,238,000 -83,323,000 -82,802,000 
        total stockholders' equity
      733,918,000 559,085,000 424,981,000 309,013,000 229,112,000 212,086,000 186,494,000 195,726,000 214,869,000 178,353,000 163,259,000 172,637,000 184,670,000 198,538,000 219,594,000 239,577,000 254,570,000 263,968,000 277,291,000 278,472,000 277,891,000 265,166,000 257,455,000 257,499,000 273,794,000 302,285,000 311,715,000 323,618,000 329,094,000 335,485,000 342,631,000 343,294,000 333,276,000 324,442,000 307,502,000 276,173,000 227,384,000 187,538,000 167,171,000 165,879,000 165,398,000 162,902,000 121,898,000 114,907,000 115,012,000 113,821,000 111,781,000 109,148,000 63,077,000 31,342,000 
        total liabilities and stockholders' equity
      1,168,423,000 978,528,000 796,850,000 644,668,000 547,032,000 409,972,000 348,040,000 350,916,000 389,186,000 373,792,000 356,877,000 383,551,000 408,263,000 414,343,000 434,755,000 446,753,000 454,459,000 462,524,000 473,144,000 476,362,000 480,805,000 497,787,000 478,091,000 453,536,000 466,825,000 483,878,000 495,122,000 491,205,000 466,840,000 481,085,000 472,204,000 475,617,000 452,984,000 438,704,000 406,986,000 367,626,000 322,318,000 326,791,000 301,366,000 295,861,000 273,475,000 256,949,000 222,747,000 186,215,000 183,670,000 168,154,000 153,524,000 154,654,000 111,057,000  
        current assets
                                                        
        operating right of use assets
       42,048,000 22,106,000                                                
        current liabilities
                                                        
        current lease liabilities - operating
       2,838,000 1,905,000                                                
        current portion of long-term debt
       27,978,000                                        20,793,000 30,990,000        
        non-current lease liabilities - operating
       40,181,000 21,090,000                                                
        preferred stock; 5,000 shares authorized at 0.001 par value...
                                                        
        common stock; 120,000 and 80,000 shares authorized at 0.001 par value...
       68,000 62,000                                                
        accumulated other comprehensive income
       1,088,000 1,113,000 -2,755,000 -2,548,000 709,000 -1,531,000 -688,000 975,000 -2,188,000 -1,470,000 3,823,000 2,183,000 -988,000 7,226,000 14,809,000 16,071,000 13,865,000 14,286,000 10,656,000 11,690,000    430,000 -3,832,000 -379,000 2,950,000 602,000 835,000 5,633,000 16,078,000                   
        long term debt
         1,811,000                                               
        common stock; 80,000 shares authorized at 0.001 par value...
         53,000 49,000 45,000 41,000 39,000 38,000 34,000                                         
        accounts receivable - trade, net of allowance of 1 and 3, respectively
          116,801,000                                              
        notes receivable
           47,000 435,000 352,000 219,000  782,000 1,079,000 339,000 9,000 212,000 1,195,000 8,148,000 8,505,000 3,819,000 1,440,000 401,000      136,000 79,000                651,000 980,000      
        prepaid income tax
          4,000 4,000 4,000 2,000 3,000 2,000 2,000      1,000 2,000 2,000 2,000 2,000 177,000 210,000 375,000 224,000 759,000 1,312,000 1,423,000 1,188,000 763,000 638,000 1,326,000 1,394,000                  
        unearned revenue
           1,439,000 1,570,000 1,689,000 1,803,000 10,073,000 10,720,000                                        
        current portion of convertible senior notes
               80,124,000 79,916,000 79,710,000                                       
        notes payable and long-term debt, less current portion
          4,313,000           5,000,000 5,000,000 19,271,000 19,360,000 13,686,000 13,904,000 14,564,000 15,542,000 15,315,000 16,552,000 32,373,000 30,468,000 17,535,000 60,328,000 62,896,000 57,868,000 62,464,000 49,000,000 37,371,000 22,814,000 23,863,000 34,961,000 67,201,000 56,040,000 52,178,000 33,997,000   18,773,000 19,057,000 14,000,000 67,000 3,834,000 8,923,000 14,618,000 
        accounts receivable - trade, net of allowance of 1,805 and 3, respectively
           75,154,000                                             
        accounts receivable - trade, net of allowance of 1,839 and 3, respectively
            57,661,000                                            
        accounts receivable - trade, net of allowance of 0 and 3, respectively
             57,476,000                                           
        accounts receivable - trade, net of allowance of 3 and 28, respectively
              48,071,000                                          
        financing right of use asset
               3,000 10,000 18,000 26,000 34,000 41,000 49,000 57,000 65,000 73,000 80,000 88,000 96,000 104,000 111,000 119,000                          
        current lease liability - financing
               49,000 53,000 58,000 63,000 19,000 19,000 19,000 19,000 18,000 18,000 18,000 18,000 17,000 17,000 17,000 17,000                          
        current portion of convertible notes
              286,000                                          
        accounts receivable - trade, net of allowance of 1 and 28, respectively
               60,751,000                                         
        unearned revenue, net of current portion
               2,424,000 1,000,000                                        
        accounts receivable - trade, net of allowance of 9 and 28, respectively
                42,598,000                                        
        common stock; 45,000 shares authorized at 0.001 par value...
                32,000 29,000 29,000 28,000 28,000 27,000 27,000 27,000 27,000 27,000 25,000 23,000 22,000 20,000 20,000 20,000 20,000 20,000 20,000 20,000 20,000 20,000 19,000 19,000 19,000 19,000 18,000    17,000          
        accounts receivable - trade, net of allowance of 39 and 28, respectively
                 56,799,000                                       
        deferred revenue
                 2,763,000 3,000,000                                      
        accounts receivable - trade, net of allowance of 28 and 30, respectively
                  61,175,000                                      
        non-current lease liability - financing
                   48,000 53,000 59,000 63,000 68,000 72,000 77,000 82,000 86,000 91,000 95,000 100,000                          
        accounts receivable - trade, net of allowance of 23 and 30, respectively
                   52,823,000                                     
        accounts receivable - trade, net of allowance of 26 and 30, respectively
                    49,139,000                                    
        accounts receivable - trade, net of allowance of 29 and 30, respectively
                     54,218,000                                   
        accounts receivable - trade, net of allowance of 30 and 62, respectively
                      47,944,000                                  
        accounts receivable - trade, net of allowance of 62 and 62, respectively
                       43,942,000 48,404,000 47,570,000                               
        accounts receivable - trade, net of allowance of 62 and 30, respectively
                          43,042,000                              
        deferred income tax assets
                            2,136,000 9,078,000 7,287,000 29,362,000 27,437,000 24,188,000 21,714,000 18,493,000 13,151,000 13,935,000 12,801,000 15,167,000 10,026,000 12,049,000 11,421,000 11,856,000             
        accounts receivable - trade, net of allowance of 30 and 30, respectively
                           51,453,000 50,029,000                            
        accumulated other comprehensive (loss) and income
                           5,178,000 -518,000 -1,972,000                           
        accounts receivable - trade, net of allowance of 65 and 30, respectively
                             25,783,000                           
        accounts receivable - trade, net of allowance of 30 and 32, respectively
                              34,655,000 29,709,000                         
        retained earnings
                              -30,057,000 5,372,000 14,152,000 25,518,000 35,992,000 44,560,000 48,292,000 40,258,000 38,138,000 32,423,000 13,047,000                
        current lease liability
                               924,000 903,000 1,053,000                       
        non-current lease liability
                               7,962,000 8,182,000 8,438,000                       
        ​
                               2,019,000 2,019,000                        
        revenue
                               46,084,000 43,411,000                        
        cost of goods sold
                               34,108,000 32,873,000                        
        gross profit
                               11,976,000 10,538,000                        
        operating expenses
                                                        
        research and development
                               10,466,000 11,151,000                        
        sales and marketing
                               2,518,000 2,331,000                        
        general and administrative
                               9,988,000 10,884,000                        
        total operating expenses
                               22,972,000 24,366,000                        
        income from operations
                               -10,996,000 -13,828,000                        
        other income
                               1,446,000 451,000                        
        interest income
                               347,000 310,000                        
        interest expense
                               -1,517,000 -1,490,000                        
        total other income
                               276,000 -729,000                        
        income before income taxes
                               -10,720,000 -14,557,000                        
        income tax benefit
                               1,940,000 3,191,000                        
        net income
                               -8,780,000 -11,366,000                        
        net income per share
                                                        
        basic
                               -440 -570                        
        diluted
                               -440 -570                        
        weighted-average shares used for eps calculation
                                                        
        accounts receivable - trade, net of allowance of 30 and 31, respectively
                                28,406,000                        
        accounts receivable - trade, net of allowance of 32 and 31, respectively
                                 32,123,000                       
        short-term investments
                                   6,022,000   36,000 36,000 42,000 42,000 44,000 47,000 47,000 7,960,000 7,886,000 8,024,000 8,324,000 8,190,000 8,189,000 7,958,000 7,957,000 7,898,000 7,970,000  
        accounts receivable - trade, net of allowance of 32 and 33, respectively
                                  30,534,000  48,668,000                    
        accrued income taxes
                                    464,000 7,588,000 7,422,000 5,459,000 4,947,000 4,113,000               
        accounts receivable - trade, net of allowance of 31 and 33, respectively
                                   32,028,000  53,655,000                   
        accounts receivable - trade, net of allowance of 33 and 31, respectively
                                      59,850,000                  
        cash restricted for construction in progress
                                          8,000 847,000    953,000 5,089,000 8,993,000       
        accumulated other comprehensive gain
                                      9,743,000 6,400,000 4,369,000 3,572,000 -885,000 2,113,000 790,000 1,210,000 292,000 1,012,000 2,021,000 1,902,000 1,925,000 2,109,000 2,224,000 2,085,000 2,364,000 2,320,000 
        accounts receivable - trade, net of allowance of 31
                                       73,029,000                 
        accounts receivable - trade, net of allowance of 31 at june 30, 2017 and december 31, 2016, respectively
                                        73,759,000                
        property, plant and equipment, net of accumulated depreciation
                                        165,154,000 150,566,000 144,098,000    109,699,000        31,134,000  
        accounts receivable - trade, net of allowance of 31, respectively
                                         66,759,000               
        accounts receivable - trade, net of allowance of 31 and 51, respectively
                                          49,766,000              
        accounts receivable - trade
                                           44,242,000 41,536,000 34,868,000  41,069,000 32,907,000 29,962,000  24,181,000 24,968,000 23,837,000  17,043,000 
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at september 30, 2016 and december 31, 2015, 0.001 par value
                                                        
        common stock: 45,000 shares authorized; 17,192 and 16,839 shares issued and outstanding at september 30, 2016 and at december 31, 2015, 0.001 par value
                                           17,000             
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at june 30, 2016 and december 31, 2015, 0.001 par value
                                                        
        common stock: 45,000 shares authorized;17,107 and 16,839 shares issued and outstanding at june 30, 2016 and at december 31, 2015, 0.001 par value
                                            17,000            
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at march 31, 2016 and december 31, 2015, 0.001 par value
                                                        
        common stock: 45,000 shares authorized;17,070 and 16,839 shares issued and outstanding at march 31, 2016 and at december 31, 2015, 0.001 par value
                                             17,000           
        accounts receivable - trade, net of allowance of 51 and 43, respectively
                                              38,775,000          
        other long-term liabilities
                                                  1,000,000      
        long-term debt, less current portion
                                               28,436,000 29,596,000        
        other long term liabilities
                                               250,000 500,000 750,000  1,250,000 1,500,000 1,750,000   
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at september 30, 2015 and december 31, 2014, 0.001 par value
                                                        
        common stock: 45,000 shares authorized; 16,826 shares issued and outstanding at september 30, 2015, 0.001 par value...
                                               17,000         
        stockholders' equity
                                                        
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at june 30, 2015 and december 31, 2014, 0.001 par value
                                                        
        common stock: 45,000 shares authorized; 14,949 shares issued and outstanding at june 30, 2015, 0.001 par value...
                                                15,000        
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at march 31, 2015 and december 31, 2014, 0.001 par value
                                                        
        common stock: 45,000 shares authorized; 14,893 shares issued and outstanding at march 31, 2015, 0.001 par value...
                                                 15,000       
        accounts receivable - trade, net of allowance of 43 and 42, respectively
                                                  31,589,000      
        property, plant and equipment, net of 32,412 and 28,145, respectively
                                                  64,808,000      
        preferred stock; 5,000 shares authorized; no shares issued and outstanding at december 31, 2014 or 2013, respectively, 0.001 par value
                                                        
        common stock; 45,000 shares authorized; 14,824 shares issued and outstanding at december 31, 2014, 0.001 par value...
                                                  15,000      
        preferred stock: 5,000 shares authorized; no shares issued and outstanding at september 30, 2014 and december 31, 2013, 0.001 par value
                                                        
        common stock: 45,000 shares authorized; 14,815 shares issued and outstanding at september 30, 2014, 0.001 par value...
                                                   15,000     
        preferred stock; 5,000 shares authorized; no shares issued and outstanding at june 30, 2014 and december 31, 2013, 0.001 par value
                                                        
        common stock; 45,000 shares authorized; 14,798 shares issued and outstanding at june 30, 2014, 0.001 par value...
                                                    15,000    
        redeemable convertible preferred stock
                                                       105,801,000 
        common stock; 45,000 shares authorized; 14,730 shares issued and outstanding at march 31, 2014, 0.001 par value...
                                                     15,000   
        accounts receivable - trade, net of allowance of 42, 59 and 61, respectively
                                                      22,089,000  
        bank acceptance receivable
                                                        
        redeemable convertible preferred stock and convertible preferred stock; 5,000 shares authorized; no shares issued and outstanding at december 31, 2013, 0.001 par value...
                                                        
        common stock; 45,000 shares authorized; 12,644 shares issued and outstanding at december 31, 2013, 0.001 par value...
                                                      13,000  
        common stock; 300,000 shares authorized; 266 shares issued and outstanding at december 31, 2012, no par value; 290 shares issued and outstanding at september 30, 2013, 0.001 par value
                                                       1,222,000 
        total liabilities and stockholders’ equity
                                                       75,934,000 
      Cashflow Statements:
      Quarterly
      Annual
        Unit: USD2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 
                                                         
          operating activities:
                                                         
          net loss
        -2,022,000 -17,936,000 -9,098,000 -9,172,000 -119,691,000 -17,757,000 -26,115,000 -23,170,000 -13,858,000 -8,953,000 -16,945,000 -16,292,000 -20,250,000 -15,629,000 -14,456,000 -16,062,000 -14,540,000 -15,797,000 -8,203,000 -15,622,000 -13,439,000 -9,616,000 -18,600,000 -16,797,000                -1,330,000         -521,000 
          adjustments to reconcile net loss to net cash from operating activities:
                                                         
          allowance for credit losses
        -1,000 4,000                                                
          inventory reserve adjustment
        2,416,000 1,655,000 1,856,000 1,872,000  -667,000 1,446,000 1,607,000  2,426,000 2,440,000 2,588,000                                      
          depreciation and amortization
        8,205,000 7,366,000 6,400,000 5,725,000 5,356,000 5,231,000 5,067,000 4,995,000 4,928,000 4,977,000 5,193,000 5,329,000 5,504,000 5,703,000 5,887,000 6,108,000 6,183,000 6,318,000 6,426,000 6,444,000 6,383,000 6,196,000 6,123,000 6,031,000 6,032,000 6,018,000 6,016,000 5,948,000 7,891,000 7,516,000 7,327,000 6,964,000 6,049,000 5,403,000 4,627,000 4,302,000 -9,911,812 3,685,000 3,284,000 2,957,000 2,691,000 2,420,000 2,279,000 2,034,000 1,820,000 1,679,000 1,431,000 1,239,000 971,000 
          amortization of debt issuance cost and premium
                                                         
          gain on disposal of assets
        7,000 22,000 1,000 8,000  28,000     4,000 3,000                                      
          share-based compensation
        2,868,000 3,116,000 3,164,000 2,562,000 2,949,000 2,944,000 6,058,000 2,839,000 3,297,000 3,235,000 3,062,000 2,290,000 2,357,000 2,627,000 2,144,000 2,472,000 3,199,000 3,129,000 3,274,000 2,519,000 3,242,000 3,264,000 3,302,000 3,238,000 2,865,000 2,978,000 3,019,000 2,942,000 2,758,000 2,894,000 2,899,000 2,569,000 1,946,000 2,082,000 2,260,000 1,507,000              
          deferred income tax
                                                         
          loss on debt extinguishment
                                                         
          warrants contra revenue
        732,000 38,000                                                
          unrealized foreign exchange loss
        -213,000      -102,000 424,000 -730,000 564,000 -82,000 -1,065,000                     638,000 -54,000 -144,000 -110,000 3,508,063             
          changes in operating assets and liabilities:
                                                         
          accounts receivable, trade
        -20,365,000 -12,580,000 -40,352,000 -54,300,000 -39,843,000 -17,459,000 -2,023,000 -9,402,000 12,678,000 -18,146,000 14,231,000 4,365,000 -15,007,000 -3,680,000 6,161,000 -223,000 -6,120,000 4,462,000 -834,000 -4,528,000 8,378,000 -7,109,000 -18,526,000 8,836,000 -5,180,000 -1,303,000 3,717,000 -1,589,000 1,494,000 16,640,000 4,987,000 6,195,000 13,181,000 731,000 -7,393,000 -16,599,000              
          inventories
        -16,110,000 -33,564,000 -34,854,000 -16,194,000 -26,652,000 -8,339,000 -1,712,000 7,291,000 3,873,000 -4,063,000 -423,000 7,403,000 13,884,000 -1,204,000 -9,552,000 -1,978,000 2,235,000 4,617,000 6,090,000 2,844,000 3,629,000 -11,941,000 -10,829,000 -4,533,000 -1,637,000 -3,149,000 -958,000 7,304,000 12,885,000 -19,674,000 -5,853,000 -15,761,000 -763,000 -14,756,000 -2,063,000 -4,294,000 -9,412,793 4,680,000            
          other current assets
        -2,183,000 -9,870,000 -1,716,000 244,000 -10,003,000 -2,871,000 -373,000 1,215,000 -376,000 1,287,000 177,000 -80,000 -155,000 -133,000 -696,000 -1,422,000 419,000 376,000 148,000 -76,000 3,912,000 -1,967,000 360,000 -1,085,000 -63,000 -2,000 1,909,000 3,670,000 -926,000 -524,000 381,000 -1,870,000 1,877,000 -1,217,000 273,000 -5,118,000    1,415,000 1,449,000 -2,165,000 -144,000 -1,764,000 1,659,000 -929,000 -1,429,000 -46,000 -1,736,000 
          operating right of use asset
        -9,049,000 -20,647,000 -11,518,000 314,000 -5,811,000 242,000 246,000 296,000 185,000 141,000 -26,000 230,000 223,000 189,000 233,000 243,000 239,000 228,000 151,000 230,000 218,000 -111,000 237,000 63,000 109,000 177,000 316,000 245,000                      
          accounts payable
        -6,213,000 17,183,000 8,097,000 19,896,000 48,977,000 22,473,000 9,879,000 -9,253,000 -1,961,000 -257,000 -3,308,000 -9,427,000 2,185,000 -185,000 11,372,000 -406,000 8,218,000 2,740,000 -608,000 -3,281,000 -26,653,000 10,618,000 9,280,000 3,408,000 4,986,000 -3,451,000 3,194,000 -1,579,000 -23,796,000 2,277,000 5,206,000 2,599,000 -7,369,000 -2,863,000 7,240,000 10,241,000 -3,876,895 -976,000 8,446,000 -3,584,000 -2,915,000 2,775,000 4,145,000 -5,263,000 9,621,000 50,000 5,039,000 4,048,000 3,729,000 
          accrued liabilities
        10,844,000 10,540,000 6,696,000 -1,569,000 3,214,000 1,763,000 3,920,000 -5,071,000 1,933,000 1,758,000 1,457,000 -3,815,000 7,572,000 418,000 -459,000 -2,271,000 -720,000 710,000 1,367,000 -4,449,000 664,000 1,703,000 4,794,000 -7,117,000 2,097,000 1,638,000 1,655,000 -5,698,000 -1,387,000 4,230,000 3,763,000 -6,052,000 2,125,000 2,855,000 3,293,000 -4,221,000 271,095 -2,543,000 4,514,000 -2,238,000 1,771,000 2,906,000 987,000 -647,000 2,061,000 -610,000 1,503,000 -406,000 964,000 
          unearned revenue
            -1,439,000 -131,000 -119,000 -114,000 -10,694,000 777,000 8,957,000 -237,000                                      
          lease liability
        9,333,000 20,763,000 11,568,000 -339,000 5,869,000 -270,000 -275,000 -318,000 -212,000 -183,000 -8,000 -257,000 -245,000 -212,000 -256,000 -256,000 -252,000 -239,000 -179,000 -248,000 -232,000 103,000 -247,000 -62,000 -119,000 -204,000 -331,000 -242,000                      
          net cash from operating activities
        -29,577,000 -28,462,000 -65,474,000 -50,915,000 -24,616,000 -14,440,000 -1,989,000 -28,481,000 1,550,000 -15,347,000 15,258,000 -9,390,000  -9,189,000 2,253,000 -3,603,000  3,499,000 332,000 -15,214,000  -6,136,000 -15,523,000 -8,246,000  -5,756,000 7,127,000 40,000 -11,596,000 7,546,000 22,143,000 -4,064,000 26,786,000 7,614,000 40,208,000 9,676,000 -28,310,896 6,231,000 13,229,000 8,908,000 4,719,000 -9,345,000 3,212,000 -13,798,000 6,577,000 697,000 939,000 -971,000 -4,098,000 
          capital expenditures
        -75,035,000 -50,245,000 -25,479,000 -28,389,000 -28,379,000 -6,288,000 -2,978,000 -5,761,000 -6,164,000 -1,455,000 -885,000 -575,000  -781,000 -647,000 -1,022,000  -1,973,000 -1,370,000 -2,212,000  -5,373,000 -3,972,000 -2,787,000  304,000 -13,474,000 -12,812,000 -19,586,000 -21,373,000 -21,236,000 -9,659,000 -20,439,000 -19,842,000 -19,133,000 -7,554,000 40,283,558 -6,565,000 -17,553,000 -16,215,000 -25,148,000 -14,553,000 -11,046,000 -6,333,000 -16,356,000 -11,672,000 -7,454,000 -5,647,000 -4,903,000 
          free cash flows
        -104,612,000 -78,707,000 -90,953,000 -79,304,000 -52,995,000 -20,728,000 -4,967,000 -34,242,000 -4,614,000 -16,802,000 14,373,000 -9,965,000  -9,970,000 1,606,000 -4,625,000  1,526,000 -1,038,000 -17,426,000  -11,509,000 -19,495,000 -11,033,000  -5,452,000 -6,347,000 -12,772,000 -31,182,000 -13,827,000 907,000 -13,723,000 6,347,000 -12,228,000 21,075,000 2,122,000 11,972,662 -334,000 -4,324,000 -7,307,000 -20,429,000 -23,898,000 -7,834,000 -20,131,000 -9,779,000 -10,975,000 -6,515,000 -6,618,000 -9,001,000 
          investing activities:
                                                         
          purchase of property, plant and equipment
        -75,035,000 -50,245,000 -25,479,000 -28,389,000 -28,379,000 -6,288,000 -2,978,000 -5,761,000 -6,164,000 -1,455,000 -885,000 -575,000 -760,000 -781,000 -647,000 -1,022,000 -2,426,000 -1,973,000 -1,370,000 -2,212,000 -3,663,000 -5,373,000 -3,972,000 -2,787,000 -2,807,000 304,000 -13,474,000 -12,812,000 -19,586,000 -21,373,000 -21,236,000 -9,659,000 -20,439,000 -19,842,000 -19,133,000 -7,554,000 40,283,558 -6,565,000 -17,553,000 -16,215,000 -25,148,000 -14,553,000 -11,046,000 -6,333,000 -16,356,000 -11,672,000 -7,454,000 -5,647,000 -4,903,000 
          proceeds from disposal of equipment
            2,000   4,000 65,000 1,000 65,000 285,000 3,000 115,000 3,000 1,000   50,000 114,000 52,000 -1,000 1,000 1,000 686,000   1,000 5,000 165,000 -1,305,986 551,000 299,000 456,000 273,000 33,000   2,000 33,000 12,000  
          deposits and prepayment for equipment
                                                         
          purchase of intangible assets
        -109,000 -125,000 -80,000 -65,000 -132,000 -144,000 -109,000 -121,000 -162,000 -175,000 -138,000 -113,000 -108,000 -145,000 -131,000 -114,000 -133,000 -136,000 -93,000 -95,000 -113,000 -168,000 -96,000 -112,000 -143,000 -181,000 -161,000 -155,000 -133,000 -118,000 -91,000 -134,000 -92,000 -156,000 -143,000 -108,000 439,453 -157,000 -115,000 -168,000 -147,000 -126,000 -111,000 -94,000 -103,000 -84,000 -88,000 -3,065,000 -40,000 
          net cash from investing activities
        -84,932,000 -50,478,000 -38,893,000 -36,301,000 -29,270,000 -9,271,000 -4,084,000 -8,072,000 -9,603,000 -3,248,000 -1,127,000 -783,000 -624,000 -1,200,000 -959,000 -1,051,000 -2,637,000 -3,977,000 -1,510,000 -2,422,000 -4,272,000 -5,856,000 -6,019,000 -3,200,000 -5,119,000 -6,159,000 -11,803,000 -9,035,000 -5,489,000 -35,805,000 -23,000,000 -12,220,000 -21,041,000 -18,522,000 -21,675,000 -8,921,000 31,864,457 -5,496,000 -8,742,000 -17,668,000 -25,963,000 -12,487,000 -6,763,000 -16,407,000 -16,336,000 -11,944,000 -8,400,000 -8,708,000 -12,919,000 
          financing activities:
                                                         
          proceeds from line of credit borrowings
        9,873,000 29,214,000 15,565,000 6,546,000  14,456,000 13,186,000 7,997,000  1,704,000 25,861,000 19,482,000  26,602,000 35,508,000 41,395,000 19,010,000 37,183,000 27,230,000 39,512,000 22,030,000 21,063,000 27,721,000 24,916,000 24,138,000 20,823,000 27,614,000 10,859,000 41,812,000 33,313,000 35,000,000 44,953,000 52,003,000    -115,680,828 43,817,000 40,832,000 31,149,000 44,463,000 27,917,000 46,915,000 25,091,000 23,364,000 19,531,000 4,975,000 5,788,000 7,033,000 
          repayments of line of credit borrowings
        -4,233,000 -24,070,000 -15,565,000 -11,143,000 -15,077,000 -7,972,000 -14,702,000 -7,027,000  -7,853,000 -38,579,000 -25,402,000  -27,310,000 -30,926,000 -39,062,000 -24,365,000 -36,803,000 -23,799,000 -26,320,000 -28,576,000 -18,741,000 -28,689,000 -20,000,000 -22,000,000 -24,088,000 -16,464,000 -25,747,000 -39,891,000 -31,725,000 -38,370,000 -55,583,000     114,378,932 -39,299,000 -52,129,000 -23,114,000 -36,659,000 -36,872,000 -31,602,000 -16,253,000 -22,809,000 -5,620,000 -7,350,000 -14,954,000 -7,602,000 
          proceeds from bank acceptance payable
        32,779,000 33,111,000 31,652,000 23,865,000 19,321,000 9,719,000 4,937,000 10,175,000 14,939,000 14,305,000 8,839,000 18,974,000 11,775,000 13,940,000 10,265,000 9,686,000 7,920,000 5,980,000 5,950,000 4,772,000 13,617,000 12,261,000 6,885,000 7,195,000 5,424,000 3,743,000 2,089,000 2,382,000         -5,844,150 2,349,000 2,090,000 1,411,000 2,577,000 2,275,000 2,138,000 1,267,000 588,000 1,511,000 1,519,000 2,307,000 2,032,000 
          repayments of bank acceptance payable
        -33,806,000 -31,406,000 -23,642,000 -19,178,000 -9,684,000 -4,997,000 -10,575,000 -14,912,000 -14,049,000 -8,620,000 -18,786,000 -12,293,000 -13,511,000 -9,770,000 -9,324,000 -7,968,000 -6,315,000 -5,944,000 -5,926,000 -14,280,000 -11,740,000 -9,221,000 -6,579,000 -3,798,000 -3,270,000 -2,107,000 -4,658,000 -1,917,000     -2,000 -307,000 5,522,602 -1,536,000 -1,988,000 -2,007,000 -2,638,000 -1,707,000 -930,000 -1,086,000 -1,441,000 -1,772,000 -1,833,000 -1,940,000 -2,744,000 
          payment on issuance convertible notes
                                                         
          process from issuance of convertible senior notes, net of debt issuance cost
                                                         
          principal payments of financing lease
                -48,000 -5,000 -5,000 -5,000 -5,000 -5,000 -4,000 -5,000 -5,000 -4,000 -5,000 -4,000 -4,000 -5,000 -4,000 -4,000                          
          exercise of stock options
               35,000        8,000 -1,000 11,000   6,000 1,000 7,000 67,000 1,000 52,000 61,000 98,000 678,000 623,000 -479,141 261,000 134,000 85,000 22,000 103,000 250,000 77,000 55,000 91,000 112,000 107,000 86,000 
          payments of tax withholding on behalf of employees related to share-based compensation
        -1,273,000 -1,360,000 -6,135,000 -1,686,000 -1,280,000 -383,000 -1,659,000 -1,011,000 -316,000 -481,000 -84,000 -75,000 -116,000 -110,000 -87,000 -140,000 -264,000 -294,000 -144,000 -258,000 -267,000 -347,000 -207,000 -259,000 -195,000 -176,000 -227,000 -299,000 -349,000 -1,576,000 -1,151,000 -1,061,000 -2,231,000 -6,647,000                
          proceeds from common stock offering
        176,353,000 146,791,000 124,105,000 71,665,000 87,799,000 38,548,000 16,120,000 3,826,000 36,672,000 22,025,000 9,880,000 407,000 1,000,000    61,000 262,000 15,074,000 16,571,000 8,703,000 14,004,000 -75,000         21,572,000              
          cash settlement of share-based compensation
                                                        
          net cash from financing activities
        179,693,000 152,255,000 125,979,000 70,014,000 89,711,000    31,302,000 21,062,000 -12,874,000 1,088,000 5,166,000 3,585,000 -1,734,000 3,736,000 -4,887,000 -870,000 2,370,000 17,475,000 10,463,000 11,877,000 18,247,000 6,854,000 3,010,000 249,000 11,318,000 28,019,000 16,867,000 8,632,000 -5,272,000 14,576,000 6,370,000 6,320,000 -2,096,000 7,650,000 -26,549,358 8,198,000 -8,122,000 26,478,000 14,067,000 28,168,000 22,664,000 8,215,000 4,095,000 13,884,000 -10,759,000 40,030,000 31,673,000 
          effect of exchange rate changes on cash
        134,000 -9,793,000 -1,228,000 4,880,000 1,941,000 -411,000 272,000 278,000 607,000 162,000 407,000 446,000 -48,000 729,000 982,000 -110,000 24,000 -254,000 -31,000 -615,000 -41,000 -726,000 -313,000 81,000 -74,000 55,000 -114,000 431,000 147,000 -241,000 773,000 1,059,000 -177,000 33,000 -1,284,000 1,043,000 -4,815,053 4,685,000 396,000 -264,000 -2,341,000 2,844,000 -610,000 -276,000 805,000 318,000 -112,000 54,000 25,000 
          net increase in cash, cash equivalents and restricted cash
        65,318,000                    -7,954,000 -841,000 -3,608,000 -4,511,000 -5,348,000 -11,611,000 6,528,000 19,455,000 -71,000 -19,868,000 -5,356,000 -649,000 11,938,000                 
          cash, cash equivalents and restricted cash at beginning of period
        79,133,000 55,097,000 35,587,000 41,136,000 1,000 50,114,000 67,028,000 58,004,000 83,948,000 8,000                 
          cash, cash equivalents and restricted cash at end of period
        65,318,000 63,522,000 20,384,000 66,811,000 37,766,000 25,249,000 -1,287,000 17,405,000 23,856,000 2,629,000 1,664,000 26,948,000 1,012,000 -6,075,000 542,000 40,108,000 -7,760,000 -1,602,000 1,161,000 49,338,000 -7,954,000 -841,000 -3,608,000 62,517,000 -5,348,000 -11,611,000 6,528,000 77,459,000 -71,000 -19,868,000 -5,356,000 83,299,000 11,946,000                 
          supplemental disclosure of cash flow information:
                                                         
          cash paid for:
                                                         
          interest
                                239,000 2,435,000 77,000 421,000 323,000 270,000 197,000 58,000 142,000 191,000 314,000 225,000     227,000 381,000 326,000 136,000 23,000 52,000 90,000 164,000 174,000 
          income taxes paid, net of refunds
                                                         
          u.s. federal
                                                         
          u.s. state and local
                                                         
          foreign
                                                         
          non-cash investing and financing activities:
                                                         
          net change in accounts payable related to property and equipment additions
        -737,000 4,027,000 596,000 809,000 1,472,000 319,000 -108,000 -622,000 1,065,000 -97,000 105,000 -20,000 28,000 99,000 -310,000 19,000 120,000 -1,806,000 -1,835,000 -506,000 -3,499,000 1,883,000 -785,000 75,000 757,000 -5,403,000 2,945,000 -2,168,000 -2,675,000 1,310,000    -1,626,000                
          net change in deposits and prepaid for equipment related to property and equipment additions
        -631,000 2,428,000 -16,620,000 -864,000 -197,000 -28,000 299,000 5,000 -824,000 -381,000 1,000 -93,000 15,000 11,000 28,000 13,000 1,000 48,000 -12,000 47,000 -100,000 -1,291,000 1,023,000 304,000 2,431,000                         
          amortization of debt issuance costs and premium
         -266,000 -801,000 296,000                                              
          trade notes receivable
             391,000 -86,000 -133,000  789,000                                        
          deposits and prepaid for equipment
         -108,000 -13,334,000 -7,847,000  -2,841,000 -1,002,000 -2,190,000 -3,281,000 -1,683,000 -105,000 -160,000       -157,000 -115,000 -546,000 -429,000 -1,951,000 -353,000 -2,168,000 -6,283,000 1,832,000 3,931,000 8,207,000 -8,977,000 -1,684,000 3,128,000 -502,000 1,469,000 -2,404,000 -1,434,000              
          payment on convertible notes
         -25,000                                                
          interest, net of amounts capitalized
         2,113,000 165,000 109,000  108,000 2,472,000 55,000  2,443,000 1,307,000 2,304,000  2,245,000 210,000 2,406,000  2,297,000 175,000 2,219,000  2,261,000 241,000 2,237,000                          
          income taxes
                -1,000          -172,000 -171,000 -21,000 -561,000 -553,000 224,000 37,000 650,000   843,000 2,766,000   11,988 -13,000   533,000 42,000 75,000 77,000 45,000 26,000 -1,000 
          non-cash operating and financing activities:
                                                         
          warrant issued and vested to customer
         16,739,000                                              
          unrealized foreign exchange
          -5,479,000 250,000                                              
          net decrease in cash, cash equivalents and restricted cash
          20,384,000 -12,322,000  25,249,000 -1,287,000 -37,692,000 23,856,000 2,629,000 1,664,000 -8,639,000 1,011,000 -6,075,000 542,000 -1,028,000  -1,602,000 1,161,000 -776,000                              
          allowance of bad debt
            -1,804,000 -34,000 1,839,000 -3,000 3,000 -8,000 -30,000 11,000                                      
          amortization of convertible notes premium
           -508,000                                              
          principal payments of long-term debt and notes payable
           -55,000 -251,000     -7,166,000 -170,000 -868,000 -1,049,000 -1,198,000 -1,029,000 -1,167,000 -1,845,000 -1,113,000 -1,108,000 -1,091,000 -1,069,000 -1,071,000 -40,132,000 -1,250,000 -790,000 -752,000 -341,000 -4,458,000 -22,389,000 -1,168,000 -14,743,000 3,989,145 -1,795,000 -1,333,000 -867,000    -94,000 -8,050,000 -26,000 -93,000 
          principal payment on long term debt
                                                         
          allowance for obsolete inventory
                                                         
          amortization of debt issuance costs
            393,000 363,000 359,000 315,000 1,380,000 314,000 308,000 306,000 261,000 216,000 214,000 211,000 215,000 216,000 213,000 221,000 227,000 229,000 224,000 220,000 219,000 216,000 214,000 243,000                      
          loss on disposal of assets
               1,000 49,000    -13,000 1,000   -2,000 -2,000   6,000   3,000 1,000 9,000     46,000 11,000 -9,000 49,000 -88,874 4,000 81,000 4,000 65,000 3,000 10,000 -14,000   -1,000  
          notes receivable
                   -742,000 -325,000 178,000 925,000 6,986,000 517,000 -4,712,000 -2,335,000 -1,055,000 -392,000 52,000    134,000 -58,000 -79,000             -3,000        
          prepaid income tax
              -1,000   1,000     175,000 164,000 -151,000 535,000 553,000 97,000 -224,000 -423,000 -128,000 672,000 109,000                  
          accrued income taxes
                                    -464,000   1,844,000 490,000 828,000 3,042,000              
          deposits and prepayment on equipment
                                                         
          proceeds from line of credit borrowing
                                                         
          cash settlement of psu
                                                         
          net increase (decrease ) in cash, cash equivalents and restricted cash
                                                         
          accrued income tax
                                                        
          proceeds from issuance of convertible senior notes, net of debt issuance costs
             -214,000             -2,000 -3,000 -13,000 -2,000 -14,000 76,378,000                      
          proceeds from issuance of shares under equity plans
                                                         
          net cash (used)/provided by financing activities
              4,514,000 -1,417,000                                          
          lower of cost or net realizable value reserve adjustment to inventory
                                                         
          interest for extinguishment of debt
                                                       
          extinguishment of debt
                                                       
          proceeds from line of credit borrowings, net of debt issuance costs
                                                         
          repayments of line of credit borrowings, net of debt issuance costs
                                                         
          deferred income taxes
                            -10,000 2,211,000 7,024,000 -1,877,000 22,280,000 -1,940,000 -3,296,000 -2,474,000 -3,230,000 -5,353,000 722,000 -1,103,000 2,381,000 -5,133,000 2,026,000 612,000 11,844,574             
          net cash from operating activities
                                                         
          proceeds from issuance of notes payable and long-term debt, net of debt issuance costs
                              3,124,000 4,049,000 6,488,000                      
          provision for losses on accounts receivable
                     -4,000 -3,000 -1,000       -34,000 35,000                          
          lower of cost or market reserve adjustment to inventory
                     1,449,000 366,000 2,037,000 554,000 1,124,000 1,274,000 937,000 590,000 416,000 1,276,000 1,648,000 159,000 1,408,000 2,920,000 2,287,000 1,620,000 3,190,000 1,479,000 877,000                  
          unrealized foreign exchange gain
                     1,077,000 369,000 997,000 -376,000 329,000 -158,000 850,000 -829,000 -189,000 -31,000 -103,000 -25,000 -49,000 78,000 -249,000 32,000 674,000 -544,000 -710,000       453,000 314,000          
          deposits for equipment
                     -274,000 -184,000 -30,000                                  
          extinguishment of debt and interest
                                                        
          gain on disposal of assets
                       -39,000                                  
          net cash from by operating activities
                                                         
          purchase of property and equipment with line of credit borrowings
                                                         
          adjustments to reconcile net income to net cash from operating activities:
                                                         
          maturities of short-term investments
                                    -9,000,000 9,000,000 36,000 6,000 2,000 -7,741,248            
          purchase of land use rights
                                    -5,591,000                  
          net income
                                -35,429,000 -8,780,000 -11,366,000 -10,474,000 -8,568,000 -3,732,000 8,034,000 2,120,000 5,716,000 19,375,000 29,071,000 19,789,000 -16,977,766 17,736,000   2,679,000 2,700,000 6,089,000 -675,000 702,000 1,577,000 1,919,000 85,000  
          net cash provided (used in) by operating activities
                                                         
          purchase of short-term investments
                                               -35,000 -26,000 -25,000 -93,000 -31,000 -193,000    
          adjustments to reconcile net income to net cash from
                                                         
          repayments of note payable
                                                         
          proceeds from issuance of notes payable and long-term debt
                                     9,343,000 26,556,000     -28,829,142 3,994,000 4,553,000 20,311,000     5,000,000 3,150,000 
          prepaid tax
                                                         
          other
                                                         
          lower of cost or market adjustment to inventory
                                         690,000                
          change in restricted cash for construction in progress
                                         8,000      4,136,000        
          decrease in restricted cash
                                          -129,000 871,000              
          net increase in cash
                                          15,153,000 9,448,000 -27,810,850 13,618,000 -3,239,000 17,454,000 -9,518,000 9,180,000 18,503,000 -22,266,000 -4,859,000 2,955,000 -18,332,000 30,405,000 14,681,000 
          cash and cash equivalents at beginning of period
                                             28,074,000  32,175,000     
          cash and cash equivalents at end of period
                                             13,618,000 -3,239,000 45,528,000  9,180,000 18,503,000 9,909,000  2,955,000    
          lower of cost or market adjustment
                                           476,000              
          tax withholding related to release of restricted stock
                                           -366,000              
          cash and cash equivalents at beginning of year
                                           50,224,000             
          cash and cash equivalents at end of year
                                           59,672,000             14,681,000 
          deposits and deferred charges
                                               -1,706,000 -1,868,000 -1,952,000 538,000 -956,000 314,000 -221,000 -805,000 -8,000 -6,000 
          cash paid for
                                                         
          purchase of intangible assets with notes payable
                                                         
          provision for obsolete inventory
                                             1,005,000 1,387,000 407,000 655,000 926,000 686,000 565,000 -241,000 414,000 496,000 272,000 -58,000 
          share-based compensation expense
                                             1,047,000 975,000 808,000          
          accounts receivable
                                             -2,614,000 -6,743,000 3,945,000 2,236,000 -8,533,000 -2,877,000 1,643,000 -7,532,000 658,000 -1,000,000 -1,829,000 -5,011,000 
          bank acceptance receivable
                                                   326,000     
          other current assets and other receivables
                                             339,000            
          deposits and prepaid charges
                                             1,522,000            
          repayments of notes payable
                                             -250,000 -250,000 -250,000  -250,000 -250,000 -250,000      
          increase in restricted cash
                                             657,000 -31,000 -240,000  -1,133,000 -1,438,000 -537,000  143,000 -91,000 -73,000  
          interest, net of capitalized amounts
                                             834,000 57,000 386,000          
          inventory
                                               6,210,000 -6,924,000 -10,895,000 -9,140,000 -10,543,000 -1,089,000 -2,656,000 -7,538,000 -4,822,000 -3,131,000 
          share-based compensation and warrant expense
                                                553,000 518,000 533,000 516,000 567,000   489,000  
          exercise of warrants
                                                        
          proceeds from issuance of long-term debt
                                                        
          principal payments of long-term debt
                                                 -857,000        
          proceeds from issuance of common stock
                                                         
          repayments of shareholder loans
                                                         
          issuance of preferred stock
                                                         
          conversion of shareholders' loan to 72,381 shares of series g preferred stock
                                                         
          proceeds from public offering
                                                     -41,000 45,671,000  
          stock-based compensation and warrant expense
                                                         
          cash and cash equivalents at beginning of the period
                                                       22,006,000  
          cash and cash equivalents at end of the period
                                                       52,411,000  
          common stock issued for consultant services
                                                         
          proceeds from initial public offering
                                                         
          conversion of shareholders' loan to preferred stock
                                                         
          deferred offering costs