function hmx(e) { return e.offsetLeft+(e.offsetParent!=null&&e.tagName!='BODY'?hmx(e.offsetParent):0);}
function hmy(e) { return e.offsetTop+(e.offsetParent!=null&&e.tagName!='BODY'?hmy(e.offsetParent):0);}

function initDropDownMenus(prefix) {
	var counter = 1;
	while (true) {
		var div = document.getElementById(prefix+"-"+counter);
		if (div) {
			var ar = div.getElementsByTagName('UL');
			var ul = ar[0];
			div.onmouseover = function() {
				this.className = 'opened';
				var ar = this.getElementsByTagName('UL');
				var ul = ar[0];
				if (ul) {
					ul.style.left = hmx(this) + 'px';
					//ul.style.top = hmy(this) + 32 + 'px';
				}
			}
			div.onmouseout = function() {
				this.className = 'closed';
			}
		}
		else break;
		counter++;
	}
}

