document.write("<div id='Layer2' style='position:absolute; left:980px; top:314px; width:17px; height:14px; z-index:2'><a href='#'><img src='images/layer_top.gif' width='15' height='22' border='0'></a></div>");

var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id)
{
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function moveRightEdge()
{
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4)
	{
		yMenuFrom   = Layer2.top;
		yMenuTo     = windows.pageYOffset + 173;
	}
	else if (isDOM)
	{
		yMenuFrom   = parseInt (Layer2.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 300;
	}
	
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo)
	{
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			Layer2.top += yOffset;
		else if (isDOM)
			Layer2.style.top = parseInt (Layer2.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}

if (isNS4)
{
	var Layer2 = document["Layer2"];
	Layer2.top = top.pageYOffset + 135;
	Layer2.visibility = "visible";
	moveRightEdge();
} 
else if (isDOM)
{
	var Layer2 = getRef('Layer2');
	Layer2.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 135;
	Layer2.style.visibility = "visible";
  moveRightEdge();
}