function writeStyleSheetLinks()
{
  if (navigator.appName == "Microsoft Internet Explorer") {
    document.write('<link rel="stylesheet" type="text/css" href="css/indexIE.css" />');
  } else {
    document.write('<link rel="stylesheet" type="text/css" href="css/indexW3C.css" />');
  }
}

function handleMouseOverOfTableCellWithOverlay(cell, overlay)
{
  setDisplayAttributeOfOverlayWithNumber("block", overlay);
  
  cell.style.backgroundImage = "url(images/reflection_b.png)";
/*  
  if (overlay == 1) {
    cell.style.backgroundImage = "url(reflection_2.png)";
  } else if (overlay == 2) {
    cell.style.backgroundImage = "url(reflection_5.png)";
  } else if (overlay == 3) {
    cell.style.backgroundImage = "url(reflection_8.png)";
  }
*/
}

function handleMouseOutOfTableCellWithOverlay(cell, overlay)
{
  setDisplayAttributeOfOverlayWithNumber("none", overlay);

  cell.style.backgroundImage = "url(images/reflection_a.png)";
/*
  if (overlay == 1) {
    cell.style.backgroundImage = "url(reflection_1.png)";
  } else if (overlay == 2) {
    cell.style.backgroundImage = "url(reflection_4.png)";
  } else if (overlay == 3) {
    cell.style.backgroundImage = "url(reflection_7.png)";
  }
*/
}

function setDisplayAttributeOfOverlayWithNumber(attribute, number)
{ 
  var string = 'overlay_' + number;
  var overlay = document.getElementById(string);
    
  overlay.style.display = attribute;
}

