var mooFontManager = {
	min: 10,
	max: 21,

	sizeSelector: 'ul.p7menubar a, ul.menubar a, #tartalom a, #tartalom p, #tartalom div, #tartalom table',
	colorSelector: 'ul.menubar a, #tartalom p, #tartalom a, #tartalom div, #tartalom table',

	init: function(){
		$$(this.sizeSelector).each(function(item){
			item.store('original_font_size',item.getStyle('font-size').toInt());
		});
	},

	increase: function(){
		$$(this.sizeSelector).each(function(item){
			item.setStyle('font-size',(item.getStyle('font-size').toInt()+2)+'px');
			item.setStyle('line-height',(item.getStyle('line-height').toInt()+2)+'px');
		});
	},

	decrease: function(){
		$$(this.sizeSelector).each(function(item){
			item.setStyle('font-size',(item.getStyle('font-size').toInt()-2)+'px');
			item.setStyle('line-height',(item.getStyle('line-height').toInt()-2)+'px');
		});
	},

	setForeground: function(color){
		$$(this.colorSelector).each(function(item){
			item.setStyle('color',color);
		});
	},

	setBackground: function(color){
		$('tartalom').setStyle('background-color',color);
	}
}
