window.FontManager = {
	getFontSize : function (size) {
		if (YAHOO.util.Dom.hasClass(document.body, 'size1')) {
			return 'size1';
		} else if (YAHOO.util.Dom.hasClass(document.body, 'size2')) {
			return 'size2';
		} else if (YAHOO.util.Dom.hasClass(document.body, 'size3')) {
			return 'size3';
		}
		
		return 'size1';
	},

	setFontSize : function (fontclass) {
		if (undefined === fontclass) {
			fontclass = 'size1';
		}
		
		YAHOO.util.Dom.removeClass(document.body, 'size1');
		YAHOO.util.Dom.removeClass(document.body, 'size2');
		YAHOO.util.Dom.removeClass(document.body, 'size3');
		YAHOO.util.Dom.addClass(document.body, fontclass);
		
		this.createCookie(fontclass);
	},
	
	createCookie : function createCookie(value) {
		var date		= new Date(),
			 expires	= "";

		date.setFullYear(date.getFullYear() + 1);
		
		expires = "; expires=" + date.toGMTString();
		
		document.cookie = "fontsize=" + value + expires + "; path=/";
	}/*,
	
	getCookieFontSize : function () {
		var match = /fontsize=([0-9]{1,})/i.exec(document.cookie);
		
		if (null !== match && undefined !== match[1]) {
			return parseInt(match[1], 10);
		}
		
		return this.defaultSize;
	}*/
};
