function infoBar(settings)
{
myBrowser = ( navigator.userAgent);
var pos=myBrowser.indexOf("MSIE 6.")
if (pos>=0)
{
	//test to see if we can support this
	if(!document.createElement)
	{
		alert('I\'m sorry, but your browser doesn\'t support this feature.');
		return;
	}
	//create an empty settings object if one isn't provided
	if(!settings)
	{
		settings = {};
	}
	
	//ie6 doesn't support the 'fixed' css position, so will will have to hack around it
	/*var ie6 = (document.all && window.external && (typeof document.documentElement.style.maxHeight == 'undefined')) ? true : false;*/	
	
	//Create and setup the info bar
	var infoBarDiv = document.createElement('div');
	this.currentOpacity = 10;
	this.infoBar = infoBarDiv;
	infoBarDiv.style.backgroundColor = settings.backColor || '#ffffe8';
	infoBarDiv.style.opacity = '1';
	infoBarDiv.style.filter = 'alpha(opacity=100)';
	infoBarDiv.style.fontSize = '8pt';
	infoBarDiv.style.top = '0px';
	infoBarDiv.style.left = '200px';
	infoBarDiv.style.lineHeight = '12px';
	infoBarDiv.style.padding = '0px';
	infoBarDiv.style.width = '966px';
	infoBarDiv.style.fontFamily = 'Verdana';
	infoBarDiv.style.fontColor = settings.fontColor || '#000000';
	//ie6 doesn't support the 'fixed' css position, so will will have to hack around it
	/*infoBarDiv.style.position = (ie6) ? 'absolute' : 'fixed';*/
	infoBarDiv.style.display = 'none';
	infoBarDiv.style.border = '1px solid #000000';
	infoBarDiv.style.borderTop = '0px';
	infoBarDiv.style.borderLeft = '0px';
	infoBarDiv.style.borderRight = '0px';
	infoBarDiv.style.zIndex = 1000;
	infoBarDiv.style.margin ='0 auto';
	//ie6 doesn't support the 'fixed' css position, so will will have to hack around it
	/*if(ie6)
	{
		window.onscroll = function()
		{
			infoBarDiv.style.top = parseInt(window.pageYOffset || (document.documentElement.scrollTop || 0), 10) + 'px';
			infoBarDiv.style.left = parseInt(window.pageXOffset || (document.documentElement.scrollLeft || 0), 10) + 'px';
		};
	}*/
	
	//Create our icon
	var icon = document.createElement('img');
	icon.src = '/site/images/information.png'; 
	icon.style.cssFloat = 'left';
	icon.style.styleFloat = 'left';  //for IE
	icon.style.verticalAlign = 'middle';
	icon.style.paddingTop = '3px';
	icon.style.paddingLeft = '3px';
	icon.style.paddingRight = '3px';
	icon.style.paddingBottom = '3px';
	
	//Create our ie button 
	var ie = document.createElement('img');
	ie.src = '/site/images/dl-ie.png';
	ie.style.cssFloat = 'right';
	ie.style.styleFloat = 'right'; //for IE
	ie.style.verticalAlign = 'middle';
	ie.style.paddingTop = '3px';
	ie.style.paddingBottom = '3px';
	ie.style.cursor = 'pointer';
	ie.onclick = function()
	{
    window.open('http://www.microsoft.com/windows/internet-explorer/worldwide-sites.aspx');
	};
	
	//Create our FF button 
	var ff = document.createElement('img');
	ff.src = '/site/images/dl-ff.png';
	ff.style.cssFloat = 'right';
	ff.style.styleFloat = 'right'; //for IE
	ff.style.verticalAlign = 'middle';
	ff.style.paddingTop = '3px';
	ff.style.paddingBottom = '3px';
	ff.style.cursor = 'pointer';
	ff.onclick = function()
	{
    window.open('http://www.mozilla.com/firefox/');
	};
	
	//Create our FF button 
	var ff = document.createElement('img');
	ff.src = '/site/images/dl-ff.png';
	ff.style.cssFloat = 'right';
	ff.style.styleFloat = 'right'; //for IE
	ff.style.verticalAlign = 'middle';
	ff.style.paddingTop = '3px';
	ff.style.paddingBottom = '3px';
	ff.style.cursor = 'pointer';
	ff.onclick = function()
	{
    window.open('http://www.mozilla.com/firefox/');
	};
	
	//Create our chrome button 
	var chrome = document.createElement('img');
	chrome.src = '/site/images/dl-chrome.png';
	chrome.style.cssFloat = 'right';
	chrome.style.styleFloat = 'right'; //for IE
	chrome.style.verticalAlign = 'middle';
	chrome.style.paddingTop = '3px';
	chrome.style.paddingBottom = '3px';
	chrome.style.cursor = 'pointer';
	chrome.onclick = function()
	{
    window.open('http://www.google.com/chrome');
	};
	
	//Create our close button 
	var close = document.createElement('img');
	close.src = '/site/images/cross.png';
	close.style.cssFloat = 'right';
	close.style.styleFloat = 'right'; //for IE
	close.style.verticalAlign = 'middle';
	close.style.paddingTop = '3px';
	close.style.paddingBottom = '3px';
	close.style.cursor = 'pointer';
	close.onclick = function()
	{
		infoBarDiv.style.display = 'none';
	};
	
	//Create our text entry
	var infoText = document.createElement('div');
	this.infoBar.infoText = infoText;
	infoText.innerHTML = settings.text || '';
	infoText.style.paddingTop = '3px';
	infoText.style.paddingBottom = '3px';
	
	infoBarDiv.appendChild(close);
	infoBarDiv.appendChild(chrome);
	infoBarDiv.appendChild(ff);
	infoBarDiv.appendChild(ie);
	infoBarDiv.appendChild(icon);
	infoBarDiv.appendChild(infoText);
	document.body.insertBefore(infoBarDiv, document.body.firstChild);
}
}

infoBar.prototype.show = function(fade)
{
	myBrowser = ( navigator.userAgent);
	var pos=myBrowser.indexOf("MSIE 6.")
	if (pos>=0)
	{
	var that = this;
	if(typeof fade == "number")
	{
		this.currentOpacity = 0;
		this.infoBar.style.opacity = '0';
		this.infoBar.style.filter = 'alpha(opacity=0)';
		this.intervalID = window.setInterval(function()
											{
													if(that.currentOpacity < 11)
													{
														that.infoBar.style.opacity = that.currentOpacity / 10;
														that.infoBar.style.filter = 'alpha(opacity=' + that.currentOpacity * 10 + ')';
														that.currentOpacity++;
													}
													else
													{
														window.clearInterval(that.intervalID);
													}
											}, fade);
	}
	else
	{
		this.infoBar.style.opacity = '1';
		this.infoBar.style.filter = 'alpha(opacity=100)';
	}
	this.infoBar.style.display = 'block';
	}
}


