<!--

function getActualX(elem) {
	var ret = 0;
	var node = elem;

	while (node != null) {
		ret = ret + node.offsetLeft;
		node = node.offsetParent;
	}
	return ret;
}

function repositionPopupMenu() {
	var menu, closer, button;

	menu = document.getElementById("menu_product_features");
	closer = document.getElementById("closer");
	button = document.getElementById("product_features_link");

	var newLeft = (getActualX(button) + button.offsetWidth) + "px";	
	if (menu.style.left != newLeft) {
		menu.style.left = newLeft;
		closer.style.left = newLeft;
	}
}

function openEnlargableImage(url) {
	var left, top, width, height;

	if (window.screenLeft)
		left = window.screenLeft;
	else if (window.screenX)
		left = window.screenX;
	else
		left = 0;

	if (window.screenTop)
		top = window.screenTop;
	else if (window.screenY)
		top = window.screenY;
	else
		top = 0;

	if (window.outerWidth)
		width = window.outerWidth;
	else
		width = document.body.offsetWidth;

	if (window.outerHeight)
		height = window.outerHeight;
	else
	{
		top = 0;		
		height = 800;
		if (height > screen.availHeight)
			height = screen.availHeight * 0.9;
	}

	features = "left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",outerWidth=" + width + ",outerHeight=" + height + ",resizable=yes,scrollbars=yes,minimizable=yes,menubar=no,location=no,toolbar=no,status=no";

	// alert(features); 
	window.open(url, "", features);
	return false;
}

//-->
