/*** Fixing the DivX problem */
window.fixDivxPlayerBug = function () {
    var b = document.getElementsByTagName('body')[0];
    if ( window['ReplaceVideoElements'] && ! b.appendChildDivx ){
		clearInterval(intervalId);

		if ( ! window['isInternetExplorer']){
			return;
		}
        b.appendChildDivx = b.appendChild;
        b.appendChild = function (el) {
            if( el.tagName == null) {
                var wrap = document.createElement('div');
                wrap.appendChild(el);
                b.appendChildDivx(wrap);
            }
            else {
                b.appendChildDivx(el);
            }
            return el;
        };
    }
};

var intervalId = setInterval(window.fixDivxPlayerBug, 100);
