Panning image effect

I am using the panning image effect from the URL below:

I am using it on this site:

The problem i have is that I only want the image to start panning left and right at the point the mouse reaches the edge of the table. At the moment you get movement no matter where you are on the screen. Is this possible?