function correctSize()
{
    var w, h; // Get inner size
    if (self.innerHeight) { // all except ie
        w = self.innerWidth;
        h = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) { // ie 6 strict
        w = document.documentElement.clientWidth;
        h = document.documentElement.clientHeight;
    } else if (document.body) { // ie not strict
        w = document.body.clientWidth;
        h = document.body.clientHeight;
    }
    
    var wrapper = document.getElementById('wrapper');
    
    if (w < 960) {
        wrapper.style.marginLeft = '0';
        wrapper.style.left = '0';
    } else {
        wrapper.style.marginLeft = '';
        wrapper.style.left = '';
    }
    
    if (h < 620) {
        wrapper.style.marginTop = '0';
        wrapper.style.top = '0';
    } else {
        wrapper.style.marginTop = '';
        wrapper.style.top = '';
    }
}

window.onload = function() { correctSize(); window.onresize = correctSize };

