Some response for your problem here : http://developer.yahoo.com/performance/rules.html#no_filters
I only use the png with alpha for transparency. You can do that until adobe cs3, and maybe with free softs. So you don't need any js... http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/