addLoadListener(function()
{
  var scenes = [
      ['images/AdviceDownloads/AllNewRules133x100Q80', 'The Big Tax Change - All the News Rules'],
	  ['images/AdviceDownloads/CluedUp133x100Q80', 'The Big Tax Change - Are You Clued Up'],
	  ['images/AdviceDownloads/How2Save133x100Q80', 'The Big Tax Change - How to Save £££s'],
	  ['images/AdviceDownloads/LeaseOrBuy133x100Q80', 'The Big Tax Change - Lease or Buy'],
	  ['images/AdviceDownloads/SaveCash133x100Q80', 'The Big Tax Change - How to Save Cash'],
	  ['images/AdviceDownloads/SmarterLease133x100Q80', 'The Big Tax Change - Smarter To Lease']
  ];

  var n = Math.floor(Math.random() * scenes.length);

  var img = document.getElementById('adviceDLBanner');

  img.src = scenes[n][0] + '.jpg';
  img.alt = scenes[n][1];
});

function addLoadListener(fn)
{
  if (typeof window.addEventListener != 'undefined')
  {
    window.addEventListener('load', fn, false);
  }
  else if (typeof document.addEventListener != 'undefined')
  {
    document.addEventListener('load', fn, false);
  }
  else if (typeof window.attachEvent != 'undefined')
  {
    window.attachEvent('onload', fn);
  }
  else
  {
    var oldfn = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = fn;
    }
    else
    {
      window.onload = function()
      {
        oldfn();
        fn();
      };
    }
  }
}

