function floatingBannerInit()
{
	if(!document.getElementById('floatingBanner')){return;}
	
	var fb = document.getElementById('floatingBanner');
	var fbCont = document.getElementById('floatingBannerCont');
	if( fbCont.innerHTML.length < 1 ){return;}
	
	var w = fb.scrollHeight;
	var h = fb.scrollWidth;
	
	if(w.length == 0)
	{
		w = fb.clientHeight;
		h = fb.clientWidth;
	}
	if(w.length == 0)
	{
		w = fb.offsetHeight;
		h = fb.offsetWidth;
	}
	
	//calculate best coordinates to be shown, depending on scroll, dimensions and window
	if (document.layers) {
		px = (window.innerWidth/2)+window.pageXOffset-(w/2);
		py = (window.innerHeight/2)+window.pageYOffset-(h/2);
	} else if (document.all) {
		px = (document.body.clientWidth/2)+document.body.scrollLeft-(w/2);
		py = (document.body.clientHeight/2)+document.body.scrollTop-(h/2);
	} else if (document.getElementById) {
		// Netscape 6 behaves the same as Netscape 4 in this regard
		px = (window.innerWidth/2)+window.pageXOffset-(w/2);
		py = (window.innerHeight/2)+window.pageYOffset-(h/2);
	}
	//fb.style['top']=py+'px';
	//fb.style['left']=px+'px';
	
	document.getElementById('floatingBanner').style['display'] = 'block';
	
	setTimeout("floatingBannerHide()",10000);
}
function floatingBannerHide()
{
	document.getElementById('floatingBanner').style['display'] = 'none';
}

floatingBannerInit();
