function initBanner(){
  var bannercontainer = document.getElementById("bannercontainer");
  bannercontainer.style.position = "absolute";
  bannercontainer.style.display = "block";
  bannercontainer.style.overflow = "hidden";
  bannercontainer.style.height = "400px";
  bannercontainer.style.top = (getScreenCenterY() - 200) + "px";
  bannercontainer.style.left = (getScreenCenterX() - 400) + "px";
}

function CloseEyeblaster()
{
	document.getElementById("bannercontainer").style.display = "none";
}

function showBanner(){
  document.getElementById("bannercontainer").style.height = "400px";
}

function hideBanner(){
  document.getElementById("bannercontainer").style.height = "400px";
}

function getScreenCenterY() {
	var y = 0;

	y = getInnerHeight()/2;

	return(y);
}

function getScreenCenterX() {
	return(document.body.clientWidth/2);
}

function getInnerHeight() {
var y;
if (self.innerHeight) // all except Explorer
{
y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
	y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	y = document.body.clientHeight;
}
return(y);
}

