Added background-size css3 property. Now media fragments (only defined on images) are correctly scaled according to the actual size of the resized image. I used the image's property 'naturalWidth' because it was the cleanest solution, but it is not supported by IE older than 9 and Opera. Script compressed with online YUI compressor.
Ignored aptana project file in git repo
Added back video size's handling
Delete .project
Merge pull request #1 from mrgreenh/master

Added support to client-side scaled images