/********************************************************************************/
function getEl(param)
/********************************************************************************/
{
	return ($(param)) ? $(param) : param;
}

/********************************************************************************/
function show()
/********************************************************************************/
{
	if(arguments.length < 1)
		return false;

	var el = getEl(arguments[0]);
	el.style.display = 'block';
}

/********************************************************************************/
function hide()
/********************************************************************************/
{
	if(arguments.length < 1)
		return false;

	var el = getEl(arguments[0]);
	el.style.display = 'none';
}

/********************************************************************************/
function getLeft(htmlObject)
/********************************************************************************/
{
  if (htmlObject.offsetParent)
  {
  	return (htmlObject.offsetLeft + getLeft(htmlObject.offsetParent));
	}
  else
  	return (htmlObject.offsetLeft);
}

/********************************************************************************/
function getTop(htmlObject)
/********************************************************************************/
{
  if (htmlObject.offsetParent)
  	return (htmlObject.offsetTop + getTop(htmlObject.offsetParent));
  else
	return (htmlObject.offsetTop);
}

