function isInternetExplorer()
{
	if (document.all) return true;
	return false;
}
function getChildren(obj)
{
	if (isInternetExplorer()) return obj.children;
	else return obj.childNodes;
}
function isChildElement(node, child)
{
	for (var i=0; i<getChildren(node).length; i++)
	{
		if (getChildren(node)[i] == child)
		{
			return true;
		}
		if (isChildElement(getChildren(node)[i], child))
		{
			return true;
		}
	}
	return false;
}
function topMenuMouseOver(row,img)
{
	if (isInternetExplorer())
	{
		if (row["inside"] && row["inside"] == "yes")
		{
			return;
		}
		row["inside"] = "yes";

		getChildren(row.cells[0])[0].style.visibility = "hidden";
	}
	
	row.cells[0].className = "topMenuActive";
	getChildren(row.cells[1])[0].src = img;
	
	if (isInternetExplorer())
	{
		row.cells[0].filters[0].Apply();
		row.cells[0].filters[0].Play();
		getChildren(row.cells[0])[0].style.visibility = "visible";
	}
}
function topMenuMouseOut(row,img)
{
	if (isInternetExplorer())
	{
		if (isChildElement(row, event.toElement))
		{
			event.cancelBubble=true;
			return;
		}
		row["inside"] = "no";
		
		getChildren(row.cells[0])[0].style.visibility = "hidden";
	}

	row.cells[0].className = "topMenuInactive";
	getChildren(row.cells[1])[0].src = img;
	
	if (isInternetExplorer())
	{
		row.cells[0].filters[0].Apply();
		row.cells[0].filters[0].Play();
		getChildren(row.cells[0])[0].style.visibility = "visible";
	}
}