initializeMenu();

function linkOver(linkID)
{
	color= "#EBF4F8";
	
	rowStyleLeft = getStyle(linkID + "_left")
	rowStyleRight = getStyle(linkID + "_Right")
	if (isNS4)
	{
		rowStyleLeft.bgColor = color;
		rowStyleRight.bgColor = color;
	}
	else
	{
		rowStyleLeft.backgroundColor = color;
		rowStyleRight.backgroundColor = color;
	}
}

function linkOut(linkID)
{
	color= "#CDE0EB";
	
	rowStyleLeft = getStyle(linkID + "_left")
	rowStyleRight = getStyle(linkID + "_Right")
	if (isNS4)
	{
		rowStyleLeft.bgColor = color;
		rowStyleRight.bgColor = color;
	}
	else
	{
		rowStyleLeft.backgroundColor = color;
		rowStyleRight.backgroundColor = color;
	}
}    

document._domino_target = "_self";
function _doClick(v, o, t, h) {
  var form = document._frmFrontPage;
  if (form.onsubmit) {
     var retVal = form.onsubmit();
     if (typeof retVal == "boolean" && retVal == false)
       return false;
  }
  var target = document._domino_target;
  if (o.href != null) {
    if (o.target != null)
       target = o.target;
  } else {
    if (t != null)
      target = t;
  }
  form.target = target;
  form.__Click.value = v;
  if (h != null)
    form.action += h;
  form.submit();
  return false;
}

//function to open the search window
searchDelay = 0;
searchInFocus = false
function searchOpen()
{
	clearTimeout(searchDelay);
	searchStyle = getStyle("searchMenu")
	searchStyle.visibility = "visible"
	if(!isNS4)
		document.forms[0].search.focus();
}

function searchClose()
{
	if(!searchInFocus)
	{
		if(!isNS4)
			document.forms[0].search.blur();
		searchDelay = setTimeout('searchMenuHide()', 200);
	}
}

function searchMenuHide()
{
	searchStyle = getStyle("searchMenu")
	searchStyle.visibility = "hidden"
	searchInFocus = false;
}

//function to start the search
function searchSite()
{
	document.forms[0].submit();
}

