// hello!
// (c) David Barton. 2002.
// http://www.limpfish.com/
// works in NS4, IE4/5/6, Opera 5, NS6 / Mozilla 0.9.8
var layerRef="null",layerStyleRef="null",styleSwitch="null";previous=0;
function init()
{
	isNS4 = (document.layers) ? true : false;
	isIE4 = (document.all && !document.getElementById) ? true : false;
	if (isNS4) 
	{
		layerStyleRef="layer.";
		layerRef="document.layers";
		bracketOpen='["';
		bracketClose='"]';
		styleSwitch="";
	}
	else
	{
		layerStyleRef="layer.style.";
		styleSwitch=".style";
		if (isIE4)
		{
			bracketOpen='["';
			bracketClose='"]';
			layerRef="document.all";
		}
		else
		{
			// IE5, 6 and NS6, moz
			bracketOpen='("';
			bracketClose='")';
			layerRef="document.getElementById";
		}
	}
}
function doStyleStuff(layerName,action)  // do any style action for any browser 
{
	eval(layerRef+bracketOpen+layerName+bracketClose+styleSwitch+'.'+action);
}
function showLayer(layerName) 
{
	
	doStyleStuff(layerName,'visibility="visible"');
}
function hideLayer(layerName) 
{
	doStyleStuff(layerName,'visibility="hidden"');
}
function moveLayerTo(layerName,left,top) 
{
	doStyleStuff(layerName,'top='+top);
	doStyleStuff(layerName,'left='+left);
}