var xsmall = false;
var ysmall = false;

function universe_align () {
  var scrw = 0;
  var scrh = 0;
  var unidiv = document.getElementById('unidiv');
  var contdiv = document.getElementById('contdiv');
  if (window.innerWidth) {
    scrw = window.innerWidth;
    scrh = window.innerHeight;
  } else if (document.documentElement.clientWidth) {
    scrw = document.documentElement.clientWidth;
    scrh = document.documentElement.clientHeight;
  }
  if ((scrw < 985) && (!xsmall)) {
    unidiv.style.width = "985px";
    contdiv.style.left = "0";
    contdiv.style.marginLeft = "5px";
    contdiv.style.marginRight = "5px";
    xsmall = true;
  }
  if ((scrw > 984) && (xsmall)) {
    unidiv.style.width = "100%";
    contdiv.style.left = "50%";
    contdiv.style.marginLeft = "-487px";
    contdiv.style.marginRight = "0";
    xsmall = false;
  }
  if ((scrh < 606) && (!ysmall)) {
    unidiv.style.height = "606px";
    contdiv.style.top = "0";
    contdiv.style.marginTop = "5px";
    contdiv.style.marginBottom = "5px";
    ysmall = true;
  }
  if ((scrh > 605) && (ysmall)) {
    unidiv.style.height = "100%";
    contdiv.style.top = "50%";
    contdiv.style.marginTop = "-298px";
    contdiv.style.marginBottom = "0";
    ysmall = false;
  }
}

function gohere (loc) {
  window.open(loc);
}