SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)
3 Months Ended
Mar. 31, 2015
Accounting Policies [Abstract]  
Schedule of accumulated other comprehensive loss
The components of accumulated other comprehensive loss were as follows (in thousands):
 
March 31,
2015
 
December 31,
2014
Foreign currency translation adjustment
$
(6,954
)
 
$
(5,693
)
Accumulated net unrealized loss on investments, net of tax
(523
)
 
(691
)
Total accumulated other comprehensive loss
$
(7,477
)
 
$
(6,384
)
Calculation of basic and diluted net income per share
The following table sets forth the calculation of basic and diluted net income (loss) per share (in thousands, except per share data):
 
Three Months Ended
March 31,
 
Numerator:
2015
 
2014
 
Net income (loss)
$
(6,127
)
 
$
9,740

Denominator:
 

 
 

Denominator for basic net income (loss) per share — weighted-average outstanding shares
31,831

 
28,273

Effect of dilutive securities:
 

 
 

Stock options and restricted stock

 
567

Denominator for diluted net income (loss) per share — weighted-average outstanding shares
31,831

 
28,840

 
 

 
 

Net income (loss) per share — basic 
$
(0.19
)
 
$
0.34

Net income (loss) per share — diluted 
$
(0.19
)
 
$
0.34

Stock-based compensation expense for stock options and restricted stock
Stock-based compensation expense for stock options and restricted stock issued under equity incentive plans and stock purchases under the ESPP included in the Company’s results of operations were as follows (in thousands):
 
Three Months Ended
March 31,
 
2015
 
2014
Cost of revenues
$
1,370

 
$
1,208

Selling and marketing
982

 
1,101

Software development
1,270

 
1,447

General and administrative
3,820

 
4,123

Total stock-based compensation
$
7,442

 
$
7,879