
//----------------------------------------------------------------------------------------------------
// Configuration
//----------------------------------------------------------------------------------------------------

  var imgName = "../Images/iloader.gif"     // image name (path)
  var imgWidth = 16;              // image width (pixels)
  var imgHeight = 16;             // image height (pixels)
  var fadeInSpeed = 100;           // content fade-in speed (0 - 30; 0 = no fading)*

// * Fading is not supported by all browsers.

//----------------------------------------------------------------------------------------------------
// Build loading image box
//----------------------------------------------------------------------------------------------------

  var safari = (navigator.userAgent.indexOf('Safari') != -1) ? true : false;

  if((document.all || document.getElementById) && !safari) {
    document.write('<style> .clsImage { ' +
                   'position: absolute; top: 50%; left: 50%; ' +
                   'width: ' + imgWidth + 'px; ' +
                   'height: ' + imgHeight + 'px; ' +
                   'margin-top: -' + Math.round(imgHeight / 2) + 'px; ' +
                   'margin-left: -' + Math.round(imgWidth / 2) + 'px; ' +
                   'z-index: 99999; ' +
                   '} </style> ' +
                   '<div id="divImage" class="clsImage">' +
                   '<img src="' + imgName + '" width="' + imgWidth + '" height="' + imgHeight + '">' +
                   '</div>' +
                   '<div id="Content" style="width:100%; visibility:hidden">');
  }

//----------------------------------------------------------------------------------------------------

