A basic script to replace the normal images with the iPad 3 optimized image(i.e. high resolution images), all you need to do is just keep the high resolution image with a "retina
" extension. For example, imageABC.png becomes imageABCretina.png. Read here why you should do so.
Detecting iPad 3 For Specific Stylesheet and Images
Displaying Retina Images