I think the problem is that you define smallclick, mediumclick and largeclick outside of the method that acctualy uses them.
Another problem is that you are using mouseExited() method and not...