	(function() {
        var wasIaLoadFinishedNotified = false;
        var IA_AD_FINISHED_LOADING_EVENT = 'iaadfinishedloading';

        var iaNotifyLoadFinished = function() {
            if (!wasIaLoadFinishedNotified) {
                wasIaLoadFinishedNotified = true;
                window.location.href = IA_AD_FINISHED_LOADING_EVENT + '://' + "success";
            }
        }

        var prevOnload = window.onload;
        window.onload = function() {
           if (typeof prevOnload === 'function') {
               prevOnload.apply();
           }

           iaNotifyLoadFinished.apply(null);
       };
   })();

