function getY(oElement) {
	var iReturnValue = 0;
	while( oElement != null ) {
		iReturnValue += oElement.offsetTop;
		oElement = oElement.offsetParent;
	}
	return iReturnValue;
}

function motorinfo(caller, action){
	var action = action;
	var element = document.getElementById('motorinfo');
	if(action == "open"){
		element.style.display = 'block';
		element.style.top = getY(caller) - 250;
	}else if(action == "close"){
		element.style.display = 'none';
	}
}
