﻿function center() {
    var left = document.getElementById('left');
    var right = document.getElementById('right');

    width = (document.body.clientWidth - 960) / 2

    if (width > 0) {
        left.style.width = (width + 140) + 'px';
        right.style.width = width + 'px';
    }
}

