function ballDrop(btnName,speed)
{
	var	btnRef = document.getElementById(btnName);
	var	refTimer = 0;
	var	speed = speed;
	var	curPos = ballDrop.startPos;
	var internalVal = 5;

	function timoutFunc()
	{
		curPos += ballDrop.incAmt;
		btnRef.style.top = curPos + "px";
		if(curPos >= ballDrop.endPos)
			clearInterval(refTimer);
	}

	this.reset = function()
	{ }

	this.start = function()
	{
		refTimer = setInterval(timoutFunc, speed);
	}
}

ballDrop.startPos = -420;
ballDrop.endPos = 0;
ballDrop.incAmt = 15;


function move()
{
	function b1Start()
	{
		var btn1  = new ballDrop("btn_aboutus",70);
		btn1.start();
	}
	
	function b2Start()
	{
		var btn2  = new ballDrop("btn_services",70);
		btn2.start();
	}

	function b3Start()
	{
		var btn3  = new ballDrop("btn_employers",70);
		btn3.start();
	}

	function b4Start()
	{
		var btn4  = new ballDrop("btn_candidates",70);
		btn4.start();
	}

	function b5Start()
	{
		var btn5  = new ballDrop("btn_contactus",70);
		btn5.start();
	}


	this.start = function()
	{
		setTimeout(b1Start,300);
		setTimeout(b2Start,1700);
		setTimeout(b3Start,3300);
		setTimeout(b4Start,4800);
		setTimeout(b5Start,6400);

		setTimeout(cool_ending,9200);  // givese cool flash effect at end of drop
	}	
}


function cool_ending()
{
	setTimeout("btnHoverEffect('btn_aboutus_s')",50);
	setTimeout("btnHoverEffect('btn_aboutus_s')",1400);

	setTimeout("btnHoverEffect('btn_services_s')",70);
	setTimeout("btnHoverEffect('btn_services_s')",1400);

	setTimeout("btnHoverEffect('btn_employers_s')",100);
	setTimeout("btnHoverEffect('btn_employers_s')",1400);

	setTimeout("btnHoverEffect('btn_candidates_s')",130);
	setTimeout("btnHoverEffect('btn_candidates_s')",1400);

	setTimeout("btnHoverEffect('btn_contactus_s')",160);
	setTimeout("btnHoverEffect('btn_contactus_s')",1400);
}
