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

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

function tellFriend() {
  var body = "Hi,<br><br>I just stumbled upon this WorldClockr application:" +
      "<br><br>http://m.worldclockr.com<br><br>" +
      "a collection of animated world clocks with accurate sunrise and sunset times." +
      "<br>The desktop version can be found here:" +
      "<br><br>http://www.worldclockr.com<br><br>" +
      "Best regards";
  window.open("mailto:?subject=WorldClockr on the iPhone&body=" + body, "_self");  
}  
    
