function showAllEdits() {
  var container = document.getElementById("Countdowns");
  var divs = container.childNodes;
  for (var i = 0; i < divs.length; i++) {
  	if (divs[i].nodeType == 1) {
  	  counterMouseOver(divs[i]);
  	}  
  }
  document.getElementById("EditShowAll").onclick = hideAllEdits;
  document.getElementById("EditShowAll").innerHTML = "Hide Edit Countdowns";
}

function hideAllEdits() {
  var container = document.getElementById("Countdowns");
  var divs = container.childNodes;
  for (var i = 0; i < divs.length; i++) {
  	if (divs[i].nodeType == 1) {
  	  counterMouseOut(divs[i]);
  	}  
  }
  document.getElementById("EditShowAll").onclick = showAllEdits;
  document.getElementById("EditShowAll").innerHTML = "Show Edit Countdowns";
}

function tellFriend() {
  var body = "Hi,<br><br>I just stumbled upon the CountDownr iPhone application:" +
      "<br><br>http://m.countdownr.com<br><br>" +
      "CountDownr provides a collection of countdown counters. Each counter is " +
      "customized to its own time and date when it goes off. You can even have " +
      "counters to the next event on a Google calendar." +
      "<br><br>Best regards";
  window.open("mailto:?subject=CountDownr on the iPhone&body=" + body, "_self");  
}

    