Interactive Image Panning Script Problem

i have just seen this script on this page.
They just coded X but what about Y ? How can i make it?
The picture goes right to left or left to right (mouse rotation) as well.But How could i do if i want to make this efect up to down too.I mean “Y”.
Is there anybody know how to make it?
Both X and Y Movement ! :h: Vertical and Horizantal

Please Help Me…

Sincerely