/**
 * Ajusta o login no meio conforme a resolução
 */
var height = screen.height;
var heightLogin = 520;
var dif = height - heightLogin;

var top = parseInt(dif / 2);
top = top+"px";

document.write("<style>body { margin-top: "+top+"; }</style>");