
var InfoBarDelayTimerID;
var InfoBar;

if ( window.addEventListener ) window.addEventListener( "load", AddInfoBar, false );
else window.attachEvent( "onload", AddInfoBar );


function AddInfoBar() {
	
	InfoBar = document.createElement("div");
	InfoBar.style.position	= "relative";
	InfoBar.style.top		= "0px";
	InfoBar.style.left		= "0px";
	InfoBar = document.body.appendChild(InfoBar);
	
	var InfoBarFrame = document.createElement("iframe");
	InfoBarFrame.src 			= "./BTSEffects/InfoBar.htm";
	InfoBarFrame.scrolling 		= "no";
	InfoBarFrame.frameBorder 	= "no";
	InfoBarFrame.style.width	= "100%";
	InfoBarFrame.style.height	= "26px";
	InfoBar.appendChild(InfoBarFrame);
	
	AdjustInfoBar();
	
	if ( window.addEventListener ) window.addEventListener( "scroll", DelayAdjustInfoBar, false );
	else window.attachEvent( "onscroll", AdjustInfoBar );
	if ( window.addEventListener ) window.addEventListener( "resize", DelayAdjustInfoBar, false );
	else window.attachEvent( "onresize", AdjustInfoBar );
	
	}


function DelayAdjustInfoBar() {
	if (InfoBarDelayTimerID==null) InfoBarDelayTimerID = setTimeout( AdjustInfoBar, 25 );
	}
function AdjustInfoBar() {
	if (IEVersion>0) InfoBar.style.top 
			= document.body.clientHeight - document.body.scrollHeight + document.body.scrollTop;
	else InfoBar.style.top 
			= document.body.clientHeight - document.body.offsetHeight + document.body.scrollTop;
	InfoBar.style.left = document.body.scrollLeft;
	InfoBarDelayTimerID = null;
	}

