﻿initialBackgroundClientheight = 0;

function resizeContentBackgroundInit()
{
   document.body.setAttribute("onresize","resizeContentBackground();");
   resizeContentBackground();
}

function resizeContentBackground()
{
   background = document.getElementById("BottomGradientContainer");
   if(background != null)
   {
      windowHeight = Number(document.body.clientHeight);
      backgroundHeight = windowHeight - 0;
      if(initialBackgroundClientheight == 0)
      {
         initialBackgroundClientheight = background.clientHeight;
      }
      if(backgroundHeight > initialBackgroundClientheight)
      {
         background.style.minHeight = backgroundHeight + "px";
         background.style.height = backgroundHeight + "px";
      }
   }
}
