function id ( element, elementDocument )
{
    if ( typeof element == "string" )
	{
		if ( elementDocument )
		{
			return elementDocument.getElementById(element);
		}
		return document.getElementById(element);
	}
    else
    {
        return element;
    }
}

function getElementStyle(element)
{
	var elementStyle;
	if (element.currentStyle)
	{// Internet Explorer style.
		elementStyle = element.currentStyle;
	}
	else
	{// Standard style.
		elementStyle = window.getComputedStyle(element, null);
	}
	
	return (elementStyle);
}