Leonard0 - 11:36 am on Sep 27, 2012 (gmt 0)
IMO this script is only the interface to the Adsense code which is contained in pagead2.googlesyndication.com/pagead/show_ads.js
But as I said, it should be cleared with Adsense first.
As I suspected, window.innerWidth does not work in IE8 and older [stackoverflow.com...]
In the above script, windowWidth should be substituted for window.innerWidth and the following line should be inserted on the first line of the script, only in the first ad on the page.
windowWidth = window.innerWidth || document.documentElement.clientWidth;
When getting it okayed by Adsense, ask if it is also possible to eliminate the ad heights and ad widths from the script since they are ignored by the Adsense code anyway. That would save 6 lines in the script.