function findPosition(elm) {
	var p = new Object();
	p.left = 0;
	p.top = 0;
	p.width = elm.offsetWidth;
	p.height = elm.offsetHeight;
	while (elm != null) {
		p.left += elm.offsetLeft;
		p.top += elm.offsetTop;
		elm = elm.offsetParent;
	}
	return p;
}

function textOverHandler(e) {
	var targ;
	if (!e) var e = window.event;
	if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	if (targ.nodeType && targ.nodeType == 3)
		targ = targ.parentNode;

	switch (e.type) {
		case "mouseover":
			var p = findPosition(targ.posDiv)
			targ.infoText.style.left = (p.left) + "px";
			targ.infoText.style.top = (p.top) + "px";
			targ.infoText.style.width = (p.width - 4) + "px";
			targ.infoText.style.height = (p.height - 4) + "px";
			if (typeof(targ.infoText.style.filter) != "undefined")
				targ.infoText.style.filter = "Alpha(Opacity=95)";
			targ.infoText.style.display = "block";
			break;
		case "mouseout":
			targ.infoText.style.display = "none";
			break;
	}
	return false;
}

function initOvers() {
	var as = document.getElementsByTagName("a");
	for (var n = 0; n < as.length; n++) {
		if (as[n].className == "event_mouse_over_detail") {
			var luo = as[n];
			while (luo != null && luo.nodeType == 1) {
				if (luo.tagName.toLowerCase() == "div" && luo.className == "event_container")
					break;
				luo = luo.parentNode;
			}
			if (luo.tagName.toLowerCase() == "div" && luo.className == "event_container") {
				var cn = luo.childNodes;
				for (var n1 = 0; n1 < cn.length; n1++) {
					if (cn[n1].className == "event_even_more") {
						as[n].infoText = cn[n1];
						as[n].onmouseover = textOverHandler;
						as[n].onmouseout = textOverHandler;
						as[n].onclick = textOverHandler;
					}
					if (cn[n1].className == "events_description")
						as[n].posDiv = cn[n1];
				}
			}
		}
	}
}


