text = new TextChange('textstyle');
buttons = new CtrlButtons('textchangeDecButton', 'textchangeIncButton');
cookies = new CookieMuncher("1 year","");

window.status = cookies.get("textstyle",0)

text.onSizeChanged = function (o) {
    cookies.store("textstyle", o.size);
	buttons.toggle(o.size > 1, 'textchangeDecButton');
	buttons.toggle(o.size < TextChange.MAXSIZE, 'textchangeIncButton');
	window.status = "font size: " + o.size;
	return true;
}
text.resizeTo(Number(cookies.get("textstyle",0)));
