var IE = document.all?true:false;

// Convert all table data to AREA data using regular expressions for IE support
if(IE)
{
  stMap = document.getElementById('st_map');
  stArea = stMap.innerHTML;

  // Catches and removes all TABLE, TBODY, THEAD, TFOOT, TD, and TR elements
  while((regMat = stArea.match(/<.?t.+?>/i)))
    stArea = stArea.replace(regMat,'');

  // Coverts all A elements to AREA elements
  while(stArea.match(/<a /i)) stArea = stArea.replace(/<a /i,'<area ');
  while((regMat = stArea.match(/>.{1,4}<\/a>/i)))
  {
    srchMat = '' + regMat + '';  // Convert Regular Expression to String
    StExId = srchMat.substring(1,srchMat.search(/</i));
    stArea = stArea.replace(regMat,' value="' + StExId + '">');
  }

  // Write the converted table back out to the page
  stMap.innerHTML = stArea;
}
