// Francois Simard
// 7/8/2003
var buttonList = new Array(); // Button id list

// Place the transparent div on top of each buttons and set his content to a clear image beign the size of the button
function LoadButton()
{
  var arrLen = buttonList.length;
  var elew, eleh, lPos, tPos;
  for(var i=0;i<arrLen;i+=2)
    {
      elew = (GetRealImgLeft('DMright_'+buttonList[i]) + GetImageWidth('DMright_'+buttonList[i])) - GetRealImgLeft('DMleft_'+buttonList[i]);
      CDC(buttonList[i]+'Hover', "<a"+buttonList[i+1]+" onmouseover=\"ButtonSwitch('"+buttonList[i]+"MO');\" onmouseout=\"ButtonSwitch('"+buttonList[i]+"MO');\"><img src=\"Images/clear.gif\" border=0 width="+elew+" height="+GetImageHeight('DMright_'+buttonList[i])+"></a>");

      lPos = GetRealLeft('DMleft_'+buttonList[i]);
      tPos = GetRealTop('DMleft_'+buttonList[i]);

      MDR(buttonList[i]+'Hover', tPos, lPos);
      MDR(buttonList[i]+'MO', tPos, lPos);

      SV(buttonList[i]+'Hover', 'visible');
    }
}

function ButtonSwitch(obj)
{
  if(isV(obj))
    SV(obj, 'hidden');
  else
    SV(obj, 'visible');
}