resizeText(getCookie('ps.FontSize'));
function resizeText(multiplier) {
	if (document.body.style.fontSize == '') {
		document.body.style.fontSize = '1.0em';
	}

	if(multiplier == null){
		multiplier = '1.0';
	}

	document.body.style.fontSize = multiplier + 'em';
	var today = new Date();
	var newDate=today.getDate();
	today.setDate(newDate+1);
	setCookie ('ps.FontSize', multiplier, new Date(today), '/');
	
}
function setCookie (cookieName, cookieValue, expires, path, domain, secure) {
  document.cookie = 
    escape(cookieName) + '=' + escape(cookieValue) 
    + (expires ? '; EXPIRES=' + expires.toGMTString() : '')
    + (path ? '; PATH=' + path : '')
    + (domain ? '; DOMAIN=' + domain : '')
    + (secure ? '; SECURE' : '');
}

function getCookie (cookieName) {
  var cookieValue = null;
  var posName = document.cookie.indexOf(escape(cookieName) + '=');
  if (posName != -1) {
    var posValue = posName + (escape(cookieName) + '=').length;
    var endPos = document.cookie.indexOf(';', posValue);
    if (endPos != -1)
      cookieValue = unescape(document.cookie.substring(posValue, endPos));
    else
      cookieValue = unescape(document.cookie.substring(posValue));
  }

  return cookieValue;
}
