<!--
var strOverColorTop = "#999999";
var strOverColor = "#dddddd";

var isSafari = false;
if (navigator.userAgent.indexOf("Safari") != -1)
	isSafari = true;

/*****************************************
*  InitRowEvents()
*
*****************************************/
function InitRowEvents()
{
	var arrRows = document.getElementsByTagName("tr");
	for (i=0; i<arrRows.length; i++)
	{
		if (arrRows[i].className == "listrow")
		{
			arrRows[i].onmouseover = OverRow;
			arrRows[i].onmouseout = OutRow;
		}
	}
	function GetTarget(e)
	{
		if (!e) return (window.event.srcElement);
		else return e.target;
	}
	function OverRow(e)
	{
		if (GetTarget(e).tagName == "TD") GetTarget(e).parentNode.bgColor = strOverColor;
		else if (GetTarget(e).parentNode.tagName == "TD") GetTarget(e).parentNode.parentNode.bgColor = strOverColor; // link or image
		else GetTarget(e).parentNode.parentNode.parentNode.bgColor = strOverColor; // linked image
	}
	function OutRow(e)
	{
		if (GetTarget(e).tagName == "TD") GetTarget(e).parentNode.bgColor = "";
		else if (GetTarget(e).parentNode.tagName == "TD") GetTarget(e).parentNode.parentNode.bgColor = ""; // link or image
		else GetTarget(e).parentNode.parentNode.parentNode.bgColor = ""; // linked image
	}
}

/*****************************************
*  Top menu events
*
*****************************************/
function GetTarget(e)
{
	if (!e) return (window.event.srcElement);
	else return e.target;
}
function TopMenuOver(e)
{
	if (!isSafari)
	{
	  if (GetTarget(e).tagName == "TD") GetTarget(e).bgColor = strOverColorTop;
	  else if (GetTarget(e).parentNode.tagName == "TD") GetTarget(e).parentNode.bgColor = strOverColorTop; // link or image
	  else GetTarget(e).parentNode.parentNode.bgColor = strOverColorTop; // linked image or NS 6.2
	}
}
function TopMenuOut(e)
{
	if (!isSafari)
	{
	  if (GetTarget(e).tagName == "TD") GetTarget(e).bgColor = "";
	  else if (GetTarget(e).parentNode.tagName == "TD") GetTarget(e).parentNode.bgColor = ""; // link or image
	  else GetTarget(e).parentNode.parentNode.bgColor = ""; // linked image or NS 6.2
	}
}

/**************************************************
*  InitButtonEvents()
*
**************************************************/
function InitButtonEvents()
{
	var arrInputButtons = document.getElementsByTagName("input");
	for (i=0; i<arrInputButtons.length; i++)
	{
		if (arrInputButtons[i].className == "button")
		{
			arrInputButtons[i].onmouseover = Over;
			arrInputButtons[i].onmouseout = Out;
		}
	}
	
	var arrButtons = document.getElementsByTagName("button");
	for (i=0; i<arrButtons.length; i++)
	{
		if (arrButtons[i].className == "button")
		{
			arrButtons[i].onmouseover = Over;
			arrButtons[i].onmouseout = Out;
		}
	}
	
	function GetTarget(e)
	{
		if (!e) return (window.event.srcElement);
		else return e.target;
	}
	function Over(e)
	{
		if (GetTarget(e).tagName == "INPUT" || GetTarget(e).tagName == "BUTTON")
			GetTarget(e).className = "buttonOver";
		if (GetTarget(e).parentElement.tagName == "BUTTON")
			GetTarget(e).parentElement.className = "buttonOver";
	}
	function Out(e)
	{
		if (GetTarget(e).tagName == "INPUT" || GetTarget(e).tagName == "BUTTON")
			GetTarget(e).className = "button";
		if (GetTarget(e).parentElement.tagName == "BUTTON")
			GetTarget(e).parentElement.className = "button";
	}
}

/*****************************************
*  SetCSS()
*  Force CSS class on buttons
*
*****************************************/
function SetCSS()
{
  var arrInputs = document.getElementsByTagName("input");
  for (i=0; i<arrInputs.length; i++)
  {
    if (arrInputs[i].type == "submit")
    {
      if (arrInputs[i].className != "button")
      {
        arrInputs[i].className = "button";
        arrInputs[i].style.marginTop = "10px";
      }
    }
  }
}

/*****************************************
*  Init()
*
*****************************************/
function Init()
{
	if (document.getElementById && !isSafari)
	{
		SetCSS();
		InitRowEvents();
		InitButtonEvents();
	}
}
onload = Init;
// -->