First you need to learn how to install a function that extends Raphael to support zooming...
http://www.irunmywebsite.com/raphael/additionalhelp.html?q=addownmethodstocanvas
Next you want to implement Wout's zooming plugin...
http://github.com/wout/raphael-zoom