var popupLinkConfig = new Array;

try {// gecko
	window.addEventListener("load", C4_init, false);
} catch (e) {}
try {// IE
	window.attachEvent("onload", C4_init);
} catch (e) {}

function C4_init(e) {
	if (!document.getElementsByTagName) return true;

	var a = document.getElementsByTagName("a");
	for (var i=0; i<a.length; i++) {
		if (a[i].className == "pasts") {
			a[i].href = "mailto:";
			a[i].href += a[i].childNodes[0].firstChild.nodeValue;
			a[i].href += "%40";
			a[i].href += a[i].childNodes[2].firstChild.nodeValue;
		} else if (a[i].className == "jImgPopup") {
			if (a[i].target == "" || a[i].target == null) {
				a[i].target = "_jimgpopup";// _blank, if each link in new window
			}
			a[i].onclick = C4_popJImg;
		}
	}
	return true;
}
