document.getElementPosition = function ( e )
	{
	var x = 0;
	var y = 110;
	var n = e;
		while( n != null )
		{
		x += n.offsetLeft;
		y += n.offsetTop;
		var p = n.parentNode;
			while( p != n.offsetParent )
			{
				if( p.tagName == 'TR' ) y -= p.offsetTop;
			p = p.parentNode;
			}
		n = n.offsetParent;
		}
	return {x: x, y: y};
	}

document.setElementPosition = function ( e, pointX, pointY )
	{
	var x = 0;
	var y = 0;
	var n = e.parentNode;
		while( n != null )
		{
		x += n.offsetLeft;
		y += n.offsetTop;
		n = n.parentNode;
		}
	e.style.pixelLeft = pointX - x + 10;
	e.style.pixelTop = pointY - y - 40;
	}

document.getElementSize = function ( e )
	{
	var w = /*e.style.pixelWidth;
		if( w == 0 ) w = */e.scrollWidth;
	var h = /*e.style.pixelHeight;
		if( h == 0 ) h = */e.scrollHeight;
	return {width: w, height: h};
	}

document.setElementSize = function ( e, width, height )
	{
	var w = width < 1 ? 1 : width;
	var h = height < 1 ? 1 : height;
	e.style.width = w;
	e.style.height = h;
	e.style.clip = 'rect(0px ' + w + 'px ' + h + 'px 0px)';
	}

