var floaters_showing = new Array();

function getStyleObject(objectId) 
{
	// cross-browser function to get an object's style object given its
	if(document.getElementById && document.getElementById(objectId)) 
	{
		// W3C DOM
		return document.getElementById(objectId).style;
	} 
	else if (document.all && document.all(objectId)) 
	{
		// MSIE 4 DOM
		return document.all(objectId).style;
	} 
	else if (document.layers && document.layers[objectId]) 
	{
		// NN 4 DOM.. note: this won't find nested layers
		return document.layers[objectId];
	} 
	else 
	{
		return false;
	}
}

function ShowFloater(floater, line, lineheight)
{
	style = getStyleObject(floater);
	var left = 100;
	var top = (lineheight * line);
	if (document.layers)
	{
		style.left = left;
		style.top = top;
	}
	else 
	{
		style.left = left + "px";
		style.top = top + "px";  
	}
	style.visibility="visible";

	floaters_showing[floaters_showing.length] = style;
}

function ShowSingleFloater(floater, left, top)
{
	var style = getStyleObject(floater);
	if (document.layers)
	{
		style.left = left;
		style.top = top;
	}
	else 
	{
		style.left = left + "px";
		style.top = top + "px";  
	}
	style.visibility="visible";

	floaters_showing[floaters_showing.length] = style;
}

function ShowFloater1(floaters)
{
	var i=0;
	while (i<floaters.length)
	{
		ShowSingleFloater(floaters[i][0], floaters[i][1], floaters[i][2]);
		i = i + 1;
	}
}

function HideFloaters()
{
	var i=0;
	while (i<floaters_showing.length)
	{
		floaters_showing[i].visibility="hidden";
		i = i + 1;
	}
	floaters_showing = new Array();
}

