function clsStyle() {}
clsStyle.prototype.show = function (control) { control.style.display = "block"; control.style.visibility = "visible"; }
clsStyle.prototype.hide = function (control) { control.style.display = "none"; control.style.visibility = "hidden"; }
clsStyle.prototype.setTopLeft = function(at, control, postfix) { if (! postfix) postfix = "px"; control.style.left = at.x + postfix; control.style.top = at.y + postfix; }
clsStyle.prototype.setWidthHeight = function(size, control, postfix) { if (! postfix) postfix = "px"; control.style.width = size.x + postfix; control.style.height = size.y + postfix; }
clsStyle.prototype.toggleScroll = function(onOff) {if (onOff) document.body.style.overflow = "auto"; else document.body.style.overflow = "hidden";}
clsStyle.prototype.sizeOf = function(control) {return new clsXY(control.clientWidth, control.clientHeight);}
clsStyle.prototype.scrollOffsetOf = function(control) {return new clsXY(control.scrollLeft, control.scrollTop);}
clsStyle.prototype.showIfHideUnless = function(criteria, control) {if (criteria) this.show(control); else this.hide(control);}
clsStyle.prototype.absXY = function(control)
{
	var current = control;
	var x = 0;
	var y = 0;
	do
	{
		if (current.offsetLeft && current.offsetLeft != NaN)
		{
			x += current.offsetLeft;
		}
		if (current.offsetTop && current.offsetTop != NaN)
		{
			y += current.offsetTop;
		}
		current = current.parentNode;
	}
	while (current != null);
	return new clsXY(x, y);
}
var gStyle = new clsStyle();