var arSplash = new Array() ;
var arPreview = new Array() ;

//------------------------------------------------------------------------
// preloadSplash : preloads images for splash screen.
//------------------------------------------------------------------------
function preloadSplash()
{
  if (document.images)
  {
    // preload splash screen background images.
    arSplash[0] = new Image(); arSplash[0].src = secureURL + '../images/splash_01.png' ;
    arSplash[1] = new Image(); arSplash[1].src = secureURL + '../images/splash_02.png' ;
    arSplash[2] = new Image(); arSplash[2].src = secureURL + '../images/splash_03.png' ;
    arSplash[3] = new Image(); arSplash[3].src = secureURL + '../images/splash_04.png' ;
    arSplash[4] = new Image(); arSplash[4].src = secureURL + '../images/splash_05.png' ;
    arSplash[5] = new Image(); arSplash[5].src = secureURL + '../images/splash_06.png' ;
    arSplash[6] = new Image(); arSplash[6].src = secureURL + '../images/splash_07.png' ;

    // remaining images will be initialized once page is fully loaded.
    arPreview[0] = new Image(); arPreview[0].src = secureURL + '../images/preview_01.png' ;
    arPreview[1] = new Image();
    arPreview[2] = new Image();
    arPreview[3] = new Image();
    arPreview[4] = new Image();
    arPreview[5] = new Image();
    arPreview[6] = new Image();
    arPreview[7] = new Image();
    arPreview[8] = new Image();
    arPreview[9] = new Image();
  }
}

//------------------------------------------------------------------------
// preloadScrnShot : preloads images for screenshots.
//------------------------------------------------------------------------
function preloadScrnShot()
{
  if (document.images)
  {
    arPreview[1].src = secureURL + '../images/preview_02.png' ;
    arPreview[2].src = secureURL + '../images/preview_03.png' ;
    arPreview[3].src = secureURL + '../images/preview_04.png' ;
    arPreview[4].src = secureURL + '../images/preview_05.png' ;
    arPreview[5].src = secureURL + '../images/preview_06.png' ;
    arPreview[6].src = secureURL + '../images/preview_07.png' ;
    arPreview[7].src = secureURL + '../images/preview_08.png' ;
    arPreview[8].src = secureURL + '../images/preview_09.png' ;
    arPreview[9].src = secureURL + '../images/preview_10.png' ;
  }
}