var fractalMapProgressCurrent = 0;
var fractalMapProgressTotal = 1;
var timerID;

function fractalMapShowSplash( show, fsm )
{
   document.all[ 'FractalSplash' ].style.visibility = show;
   document.all[ 'FractalMap' ].visible = fsm;
}

function fractalMapHideSplash()
{
	if ( fractalMapProgressCurrent == fractalMapProgressTotal )
	{
		fractalMapShowSplash( 'hidden', true );
	}
}

function fractalMapSetProgress( current, total )
{
	fractalMapProgressCurrent = current;
	fractalMapProgressTotal = total;

	if (document.all[ 'FractalProgress' ].width < (( current * 128 ) / total))
	{
		clearInterval(timerID);
		document.all[ 'FractalProgress' ].width = ( current * 128 ) / total;
	}
}

function tickProgress()
{
	if (document.all[ 'FractalProgress' ].width < 128)
	{
		document.all[ 'FractalProgress' ].width++;
	}
}
