dojo.require("dojo.NodeList-fx");

var Zoom = {

	max: 17,
	min: 7,
	current: 11,

	zoom_out: function() {
		this.current -= 2;
		if (this.current < this.min) {
			this.current = this.min;
		}
		this.resize();
	},

	zoom_in: function() {
		this.current += 2;
		if (this.current > this.max) {
			this.current = this.max;
		}
		this.resize();
	},

	resize: function() {
		dojo.animateProperty({
			node: "content", duration: 500,
			properties: {
				fontSize: { end: this.current, unit: "px" }
			}
		}).play();
	}
}