
function moveGraphics() {

  var welcome = document.getElementById("welcome");
  var upperLeft = document.getElementById("registerButton");
  var logoTopImage = document.getElementById("splashHeaderLogo");

  var offset = 0;
  var browser = navigator.appName;
  if (browser.substring(0, 9) == "Microsoft") offset = 8;

  var xOffset = getX(logoTopImage);
  var yOffset = getY(logoTopImage);

  if (welcome != null) {
    welcome.style.top = (115 + offset);
    welcome.style.left = xOffset + 690;
    welcome.style.visibility = "visible";
  }

  if (upperLeft != null) {
    upperLeft.style.top = 110 + offset;
    upperLeft.style.left = xOffset + 45;
    upperLeft.style.visibility = "visible";
  }

}

function getY(oElement) {
  var iReturnValue = 0;
  while (oElement != null) {
    iReturnValue += oElement.offsetTop;
    oElement = oElement.offsetParent;
  }
  return iReturnValue;
}

function getX(oElement) {
  var iReturnValue = 0;
  while (oElement != null) {
    iReturnValue += oElement.offsetLeft;
    oElement = oElement.offsetParent;
  }
  return iReturnValue;
}


$(window).resize(function () {moveGraphics();});
$(window).load(function () {moveGraphics();});

