﻿  var c_iMS = 15;
  var c_iHeightInc = 3;
  var c_iHeightDec = 3;

  var g_iHeightCur;
  var g_iHeightMax;
  var g_iHeightMin;
  var g_oDivInner = null;
  var g_oDivOuter = null;

  function splashgrow( )
  {
    g_iHeightCur += c_iHeightInc;
    if ( g_iHeightCur > g_iHeightMax )
    {
      g_iHeightCur = g_iHeightMax;
      g_oDivInner.style.display = '';
    }
    else
    {
      setTimeout( "splashgrow( )", c_iMS );
    }
    g_oDivOuter.style.height = g_iHeightCur + 'px';
  }
  
  function splashopen( idOuter, idInner, iHeightMax )
  {
    g_oDivOuter = document.getElementById( idOuter );
    g_oDivInner = document.getElementById( idInner );
    g_iHeightCur = 0;
    g_iHeightMax = iHeightMax;
    g_oDivOuter.style.height = g_iHeightCur + 'px';
    g_oDivOuter.style.display = '';
    g_oDivInner.style.display = 'none';
    setTimeout( "splashgrow( )", c_iMS );
  }
  
  function splashshrink( )
  {
    g_iHeightCur -= c_iHeightDec;
    if ( g_iHeightCur < g_iHeightMin )
    {
      g_iHeightCur = g_iHeightMin;
    }
    else
    {
      setTimeout( "splashshrink( )", c_iMS );
    }
    g_oDivOuter.style.height = g_iHeightCur + 'px';
  }
  
  function splashclose( )
  {
    g_iHeightCur = g_iHeightMax;
    g_iHeightMin = 0;
    g_oDivInner.style.display = 'none';
    setTimeout( "splashshrink( )", c_iMS );
  }

