function checkForNote(dtIn,iy,im,id) {
  var y = dtIn.getFullYear()
  var m = dtIn.getMonth() + 1
  var d = dtIn.getDate()
  var cNdx = "a" + y + "."
  if (m < 10) cNdx += "0"
  cNdx += (m)
  if (d < 10) cNdx += "0"
  cNdx += d
  if (aNote[cNdx]) return aNote[cNdx][1]
  return false
}

function areWeGoneYet(e) {
	if (!e) var e = window.event;
	var tg = (window.event) ? e.srcElement : e.target;
	if (tg.nodeName != 'DIV') return;
	var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
	while (reltg != tg && reltg.nodeName != 'BODY')
		reltg= reltg.parentNode
	if (reltg== tg) return;
	// Mouseout took place when mouse actually left layer
	// Handle event
	tg.style.display = 'none'
}

/*
Format:
  Name = aYYYY.MMDD
  Description, style, link
*/

var aNote = new Array();
aNote["a2011.0717"] = [ "Bags on sale in the Bethany UMC Ministry Center.", "sale" ]
aNote["a2011.1016"] = [ "Bags on sale in the Bethany UMC Ministry Center, 9:15am-12:15pm.", "sale" ]
aNote["a2012.0115"] = [ "Bags on sale in the Bethany UMC Ministry Center.", "sale" ]

aNote["a2011.1008"] = [ "Bethany UMC Day of Service, 2:00-3:30pm. Open to members of Bethany UMC", "assembly" ]
aNote["a2011.1022"] = [ "Open Assembly at HCBC NW, 12:45 PM", "assembly" ]
aNote["a2012.0121"] = [ "Open Assembly at Bethany UMC, Fellowship Hall, 3:00 PM / Private Assembly at Behtany UMC, Fellowship Hall", "assembly" ]

aNote["a2011.1023"] = [ "BoG distribution at Church Under the Bridge (CUB), 11AM, Under IH35 at 7th St.", "cub", "cub1.html" ]
aNote["a2012.0122"] = [ "CUB Outreach, 11AM, Under IH35 at 7th St, Downtown Austin", "cub", "cub1.html" ]

