/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function newHeight(h)
{
  var graphic = 326;
  var bHeight = window.innerHeight; // Get Browser Window Height
  if (!bHeight) 
  {
    bHeight = document.body.clientHeight;
    var IE = true;
  }
  var newtop = 0;
  var div = document.getElementById('bg');

  if (bHeight > h )
  {
    newtop = bHeight - graphic;
    if (IE == true) { newtop = newtop * 1 + 40; }
    div.style.top = newtop+'px';
  }
  else
  {
    newtop = h-graphic;
    div.style.top = newtop+'px';
  }
}