| 
           Marketable securities (Tables) 
         | 
        12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           Dec. 31, 2012 
         | 
      |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Marketable securities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of investments in available-for-sale securities | 
 
 
 Investments in available-for-sale securities at December 31, 2012 were: 
 
 
 
 
 
 Investments in available-for-sale securities at December 31, 2011 were: 
 
  | 
      ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of cost and market value of the company's investments determined by contractual maturity | 
 
 
 
 The cost and market value of our investments at December 31, 2012 by contractual maturity were: 
 
 
 
 
 The cost and market value of our investments at December 31, 2011 by contractual maturity were: 
 
  | 
      ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||