function getY( oElement )
{
	var iReturnValue = 0;
	while( oElement != null ) {
		iReturnValue += oElement.offsetTop;
		oElement = oElement.offsetParent;
	}
	return iReturnValue;
}

function getX( oElement )
{
	var iReturnValue = 0;
	while( oElement != null ) {
		iReturnValue += oElement.offsetLeft;
		oElement = oElement.offsetParent;
	}
	return iReturnValue;
}


function show_menu(elem) {
	var elems=elem.getElementsByTagName("ul");
	var theList = null;
	for (i=0; i<elems.length; i++) {
		if (elems[i].className=='roll') {
			theList = elems[i];
			break;
		}
	}
	theList.style.left = (getX(elem) + 160) + 'px';
	theList.style.top = getY(elem) + 'px';
	//$(theList).show('fast', function(){} );
	theList.style.display='block';
}

function hide_menu(elem) {
	var elems=elem.getElementsByTagName("ul");
	var theList = null;
	for (i=0; i<elems.length; i++) {
		if (elems[i].className=='roll') {
			theList = elems[i];
			break;
		}
	}
	theList.style.display='none';
	//$(list).hide('slow', function(){} );
}