onload = onresize = function() {
var f = document.getElementById('login-box');
m = (document.body.clientWidth/2)+(((document.body.clientHeight*0.9-20)*3/2)/2)-320;
l = document.body.clientWidth*0.95-320;
f.style.marginLeft = (document.body.clientHeight/document.body.clientWidth < .67 ? m : l) + "px";
}