var BrowserType = (document.getElementById) ? "W3C DOM" : "Netscape";

var zIndex = -1;
var LayerHide = (BrowserType == "W3C DOM") ? "hidden" : "hide"
var LayerShow = (BrowserType == "W3C DOM") ? "visible" : "show"

function buildLayer(LayerName,LeftPos,TopPos,LayerWidth,LayerHeight,LayerVisible,LayerContent)
{
	if (BrowserType == "W3C DOM")
	{
		document.writeln('<div id="' + LayerName +
			'" style="position:absolute; overflow:none; left:' + LeftPos +
			'px; top:' + TopPos + 'px; width:' + LayerWidth + 'px; height:' + LayerHeight +
			'px; visibility:' + LayerVisible + '; z-Index=' + (++zIndex) + ';">' +
			LayerContent + '</div>');
	}
}

function DisplayPopup(sNewText,nXpos,nYpos)
{
	if (BrowserType == "W3C DOM")
	{
		var oDiv = document.getElementById("RolloverLayer");
		oDiv.innerHTML = sNewText;
		oDiv.style.visibility = "visible";
		oDiv.style.left = nXpos;
		oDiv.style.top = nYpos;
	}
}

function HidePopup(oEvent)
{
	if (BrowserType == "W3C DOM")
	{
		document.all.RolloverLayer.style.visibility = 'hidden'; 
	}
}

function SetPopup(oEvent,sPopupText)
{
	if (BrowserType == "W3C DOM")
	{
		var xMouse, yMouse;
		xMouse = oEvent.clientX + document.body.scrollLeft;
		yMouse = oEvent.clientY + document.body.scrollTop;
		var WAText;
		WAText = '<table border="0" cellpadding="3" cellspacing="0">\n';
		WAText += '<tr><td bgcolor="#FDE2B3">' + sPopupText + '</td></tr>\n</table>';
		DisplayPopup(WAText,195,yMouse-5);
	}
}

function NavOver(oEventRef,sBarID,sPopupContent)
{
	if (BrowserType == "W3C DOM")
	{
		eval(sBarID + ".bgColor = '#ffffff';");
		SetPopup(oEventRef,sPopupContent);
	}
}

function NavOut(oEventRef,sBarID)
{
	if (BrowserType == "W3C DOM")
	{
		eval(sBarID + ".bgColor = '#c2d7eb';");
		HidePopup(oEventRef);
	}
}

if (BrowserType == "W3C DOM")
{
	buildLayer('RolloverLayer',300,150,250,400,LayerHide,'');
}
