/*
* JavaScript to create link bar and right click menu.
*
* Written by Gary Stimson 2004
*/

/* uses search.js, printstyle.css, screenstyle.css, mainscript.js */


var iaAnimate; 
var iaTime;    
var iCounter;

function animateBolt(){
	iaAnimate = new Array(0);
	iaTime    = new Array(0);
	
	iaAnimate.push( 50 , 50 , 100 ,  50 , -50 , -50 , 50 , 50 , 50 , -50 , -50 ,  50 , -50 , 50 , 50 , 100 , 50 , -50 , -50 , 50 , 50 , 50 , -50 , -50 , 50 , -50 , 20 );
	iaTime.push   ( 50 , 40 ,  20 ,  10 ,  50 , 100 , 10 , 20 , 20 ,  20 ,  20 ,  20 ,  20 , 20 , 40 ,  20 , 10 ,  20 ,  20 , 10 , 20 , 20 ,  20 ,  20 , 20 ,  20 , 10 );
	
	iCounter = 0;
	
	oBolt.style.left    = 300;
	imBolt.height       = 50;
	oBolt.style.display = 'block';
	increaseBolt();
}

function increaseBolt(){
	var iTimeBak;
	
	if (iCounter < iaAnimate.length && iCounter < iaTime.length){
		imBolt.height = imBolt.height + iaAnimate[iCounter];
		oBolt.style.left = (document.body.clientWidth / 2) + (178 - imBolt.width);

		iTimeBak = iaTime[iCounter];
		iCounter++;
		
		setTimeout('increaseBolt()', iTimeBak);
	}
	else{
		setTimeout('finishBolt()', 250);
		imBolt.zIndex = 1;
		tbTable.zIndex = 100;
		
	}
	

}

function finishBolt(){
	oBolt.style.display = 'none';
	

}

// *******
