var aiptag = aiptag || {}; aiptag.cmd = aiptag.cmd || []; aiptag.cmd.display = aiptag.cmd.display || []; aiptag.cmd.player = aiptag.cmd.player || []; aiptag.cmd.player.push(function() { adplayer = new aipPlayer({ AD_WIDTH: 960, AD_HEIGHT: 540, AD_FULLSCREEN: true, AD_CENTERPLAYER: false, LOADING_TEXT: 'loading advertisement', PREROLL_ELEM: document.getElementById('preroll'), AIP_COMPLETE: function () { ui_onVideoAdEnded() }, AIP_REMOVE: function () { } }); });