Laptop touchpad playing up.

Occasionaly when i turn the laptop on the touchpad is inverted, sometimes not.

It also has periodic fits where the cursor flickers across the screen pressing randomly.
most annoying.

Any ideas?