Note: The problem appears to be on line 124...

ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));

For some reason, pageY is not being included as an attribute of the event being passed to the function. I am at a loss for why this would not be present under the circumstances.