This will be a much easier question to answer if you view this...
http://wyatteugeneamm.com/101808/test.html
Found this script from a guy giving it out for free. Can't figure out how to manipulate x,y positions to detect browser edge and keep the big image on the screen.
Thanks for any help.
