var Mortgage = {
	init : function()
	{
		var ndMort = document.getElementById("mortgage");
		if (ndMort)
		{
			ndMort.onclick = function (e) {
				if (!e) var e = window.event;
				e.cancelBubble = true;
				if (e.stopPropagation) e.stopPropagation();
			}
			document.onclick = function () { ndMort.style.display = "none"; }
			var ndA = document.getElementsByTagName("a");
			for (var i=0; i<ndA.length; i++)
			{
				if (ndA[i].className=="mort")
					ndA[i].onclick = function (e) {
						if (!e) var e = window.event;
							e.cancelBubble = true;
						if (e.stopPropagation) e.stopPropagation();
						var pos = findPos(this);
						ndMort.style.display = "block";
						ndMort.style.position = "absolute";
						ndMort.style.top = pos[1] + 20 + "px";
						ndMort.style.left = pos[0] + "px";
						
						return false;
					}
			}
		}
	}
}
