// Place holder
// author: Bas Wenneker		website: http://www.solutoire.com
// Fx.Font is MIT-Licensed

Fx.Font = new Class({
	initialize: function(elements, sid, gid, growsize){
		this.growsize = (growsize) ? growsize : 2;
		this.elements = [];
 		elements.each(function(el){
			this.elements.push([el,el.getStyle(\'font-size\').toInt()]);
		},this);
		$(gid).onclick = function(){this.grow()}.bind(this);
		$(sid).onclick = function(){this.shrink()}.bind(this);
	},
	grow: function(){
		this.elements.each(function(el){
			if(el[0].getStyle(\'font-size\').toInt() == el[1])
				el[0].effect(\'font-size\',{duration:300,unit:\'%\'}).custom(el[1],el[1]+this.growsize);
		},this);
	},
	shrink: function(){
		this.elements.each(function(el){
			if(el[0].getStyle(\'font-size\').toInt() == el[1]+this.growsize)
				el[0].effect(\'font-size\',{duration:300,unit:\'%\'}).custom(el[1]+this.growsize, el[1]);
		},this);
	}
});
