﻿Element.implement(
{
	show: function() {
		this.setStyle('display', '');

		return this;
	},

	hide: function() {
		this.setStyle('display', 'none');

		return this;
	},

	isHidden: function() {
		return (this.getStyle('display') == 'none');
	},

	toggleDisplay: function() {
		if (this.isHidden) {
			this.show();
		} else {
			this.hide();
		}

		return this;
	}
});

