I stripped down this javascript to be as simple as possible, and it\'s still not working in IE8.
function addLoadEvent(func) { var oldonload = window.onload;
The standard onload event won't work if another script is called using an HTML defer command.
defer
<script for="window" event="onload" defer="1">products.related();</script>
Changing the above to use the standard addLoadEvent() function made it work.
addLoadEvent()