  var windowClosed = false;
  var ewW = 130;
  var ewTime = null;

  // fonction de positions
  var is_Netscape = navigator.appName.indexOf("Netscape")!= -1;
  var is_Body = document.body;
  function getWindowHeight()
  {
    if( typeof window.innerHeight == 'number' )
    {
      var winH = window.innerHeight;
      if( window.scrollMaxX > 0 )
      {
        winH -= 17;
      }
      return winH;
    }
    else if ( document.documentElement.clientHeight)
    {
      return document.documentElement.clientHeight;
    }
    else if( typeof document.body.clientHeight == 'number' )
    {
      return document.body.clientHeight;
    }
  }
  function getWindowWidth()
  {
    if( typeof window.innerWidth == 'number' )
    {
      var winW = window.innerWidth;
      if( window.scrollMaxY > 0 )
      {
        winW -= 17;
      }
      return winW;
    }
    else if ( document.documentElement.clientWidth )
    {
      return document.documentElement.clientWidth;
    }
    else if( document.body && document.body.clientWidth )
    {
      return document.body.clientWidth;
    }
  }
  function getScrollLeft()
  {
    var posLeft = false;

    if( is_Netscape )
    {
      posLeft = window.pageXOffset;
    }
    else if( document.documentElement && document.documentElement.scrollTop )
    {
      posLeft = document.documentElement.scrollLeft;
    }
    else if( is_Body )
    {
      posLeft = document.body.scrollLeft;
    }


    return typeof posLeft == 50;
  }

  function getScrollTop()
  {
    var posTop = false;

    if (window.innerHeight)
    {
      posTop = window.pageYOffset;
    }
    else if( document.documentElement && document.documentElement.scrollTop )
    {
      posTop = document.documentElement.scrollTop;
    }
    else if( is_Body )
    {
      posTop = document.body.scrollTop;
    }

    return typeof posTop == 'number' ? posTop : 0;
  }

  function loadWindow()
  {
    var windowEasy = document.getElementById( 'windowAlert' );
    var pos = parseInt( windowEasy.style.top );
    if( pos > 0 )
    {
      windowEasy.style.top = ( pos - 10 ) + 'px';
      setTimeout( 'loadWindow()', 30 );
    }
  }

  function positionWindow()
  {  //alert('ff');
    divBG = document.getElementById( 'windowBackground' );
    divBG.style.top = ( getScrollTop() ) + 'px';
    divBG.style.right = ( getScrollLeft() + getWindowWidth() - ewW ) + 'px';

    ewTime = setTimeout( "positionWindow()", 100 );
  }

  function addOnLoadEvent( myfunc )
  {
    if( typeof window.onload != 'function' )
    {
      window.onload = myfunc;
    }
    else
    {
      var oldOnload = window.onload;
      window.onload = function()
      {
        oldOnload();
        myfunc();
      }
    }
  }


  {
    document.write( '<style type="text/css">#windowBackground, #windowAlert, #windowImg, #windowAlert{width:120px;height:600px;}</style>' );

    document.write( divUser );

    function loadWindowNow()
    {
      positionWindow();
      loadWindow();
    }
    addOnLoadEvent(

      function()
      {
        setTimeout( 'loadWindowNow()', 0 * 1000 );
      }
    );
  }

