var strActiveDivision;
var strDivisionElementOver = "";
var strActiveDivision = "";
var objTimeout;

function fnMenuOver(strMenuItem)
{
   if ((strActiveDivision != strMenuItem) && (strActiveDivision != "")) document.getElementById(strActiveDivision).style.display = 'none';
   strActiveDivision = strMenuItem;
   strDivisionElementOver = "MENU";
   document.getElementById(strMenuItem).style.display = 'block';
   clearTimeout(objTimeout);
}

function fnMenuOut(strMenuItem)
{
   objTimeout = setTimeout("fnClearDiv('" + strMenuItem + "');", 500);
   strDivisionElementOver = "";
}

function fnClearDiv(strMenuItem)
{
   if (strDivisionElementOver == "") document.getElementById(strMenuItem).style.display = 'none';
}


var arrayDivs = new Array("COMMUNICATION", "IDENTITY");
function fnShowDiv(passed_intDIV)
{
  fnHideAllDivs();
  document.getElementById(arrayDivs[passed_intDIV]).style.display = 'block';
}

function fnHideDiv(passed_intDIV)
{
  document.getElementById(arrayDivs[passed_intDIV]).style.display = 'none';
}

function fnHideAllDivs()
{
  for (var intCount = 0; intCount < arrayDivs.length; intCount++)
    document.getElementById(arrayDivs[intCount]).style.display = 'none';
}

function changeImages() {
   if (document.images)
      for (var i=0; i<changeImages.arguments.length; i+=2)
         document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}

// -------------------------------------------------------------------------------------------- Popup Windows

function fnPopup(strWindowName, strURL, intW, intH)
{
  var   strWindowAttributes  = "";
  var   intWidth             = 400;
  var   intHeight            = 500;
  if (intW) intWidth = intW;
  if (intH) intHeight = intH;
  strWindowAttributes = "height=" + intHeight + ",width=" + intWidth + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
  objPopup = window.open(strURL, strWindowName, strWindowAttributes);
  objPopup.focus();
}

function fnPopupBare(strWindowName, strURL, intW, intH)
{
  var   strWindowAttributes  = "";
  var   intWidth             = 400;
  var   intHeight            = 500;
  if (intW) intWidth = intW;
  if (intH) intHeight = intH;
  strWindowAttributes = "height=" + intHeight + ",width=" + intWidth + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";
  objPopup = window.open(strURL, strWindowName, strWindowAttributes);
  objPopup.focus();
}

      function fnClose()
      {
        if (window.opener != null) window.opener.focus();
        window.close();
      }