XML 62 R50.htm IDEA: XBRL DOCUMENT v3.7.0.1
Restricted cash (Details) - USD ($)
$ in Thousands
Jul. 31, 2017
Jan. 31, 2017
Jul. 31, 2016
Jan. 31, 2016
Restricted Cash and Cash Equivalents Items [Line Items]        
Cash and cash equivalents $ 8,546 $ 7,603 $ 11,612  
Restricted cash 893 1,098 942  
Cash, cash equivalents and restricted cash shown in the statement of cashflows $ 9,439 $ 8,701 $ 12,554 $ 18,955