function Cursor(){ this.visible = true; this.size = 10; this.thickness = 1; var pos; this.show = function(){ this.pos = getMousePos(); //we use this lots of times, so a local variable is faster for (var i=0;i