﻿function centerPopup() {
   
    
    var myWidth = 0;
    var adjustVideoLeft = 0; // Fix for FF

    if (typeof (window.innerWidth) == 'number') {
        //Non-IE
        myWidth = window.innerWidth;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
    }

    var x = (myWidth / 2) - (1030 / 2);
    document.getElementById('mainDiv').style.left = x + "px";
    //document.getElementById('marginDivLeft').style.left = (x - 160) + "px";
    //document.getElementById('marginDivRight').style.left = (x + 960) + "px"; //(x + myWidth) + "px";

    
}
