function displayBanner()
{
//	document.getElementById('banner').innerHTML = 'HELLLO WORLDDDDD';
	initializeTimer()
}


var secs;
var timerID = null;
var timerRunning = false;
var delay = 1000;

function initializeTimer()
{
	// Set the length of the timer, in seconds
	secs = 2;
	stopTheClock()
	startTheTimer()
}

function stopTheClock()
{
	if(timerRunning)
		clearTimeout(timerID)
		timerRunning = false
}

function startTheTimer()
{
	if (secs==0)
	{
		stopTheClock()
		document.getElementById('banner').style.display = 'block';
		moveBanner();
	}
	else
	{
		secs = secs - 1
		timerRunning = true
		timerID = self.setTimeout("startTheTimer()", delay)
	}
}


var total = 0;
var t;
var StartingTop = -500;

function moveBanner()
{
	topValue = StartingTop + (total*20);
	document.getElementById('banner').style.top = topValue + 'px';
	total = total + 1;
	if (total<28)
	{
		t = setTimeout("moveBanner()",100);
	} else {
		clearTimeout(t);
	}
}

function hideBanner()
{
	document.getElementById('banner').style.display = 'none';
	clearTimeout(t);
}
