function expandStory(idLink,idStory,txtLess,txtMore) {
  if (typeof idLink=="string") idLink = document.getElementById(idLink);
  if (typeof idStory=="string") idStory = document.getElementById(idStory);
  if (typeof txtLess=="undefined") txtLess="[Show Less...]";
  if (typeof txtMore=="undefined") txtMore="[Read More...]";
  if (idLink.innerHTML == txtLess) {
    idLink.innerHTML = txtMore;
    idStory.style.display = "none";
  } else {
    idLink.innerHTML = txtLess;
    idStory.style.display = "";
  }
}

function flashText(id,numFlashes) {
  if (id.indexOf("#")!=-1) id=id.substr(id.indexOf("#")+1);
  var el = document.getElementById(id);
  //alert(id+"$"+el);
  if (!el) return;
  el.className = (el.className == "flash") ? "" : "flash";
  if (numFlashes>1) setTimeout("flashText('"+id+"',"+(numFlashes-1)+")",250);
}
