<!--
/* ### BEGIN Standard Cookie Code ### */
/* ### (c)Joe Kczmarek - E-mail: anyone@joek.com ### */
/* ### Used with Express Permission on dyslexia.com  ### */
var exp = new Date();
exp.setTime(exp.getTime() + (7220 * 24 * 60 * 60 * 1000));

function setCookie(name, value, expires) {
  document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString());
}

function getCookie(name) {
  var cname = name + "=";
  var dc = document.cookie;
  if (dc.length > 0) {
    begin = dc.indexOf(cname);
    if (begin != -1) {
      begin += cname.length;
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
      return unescape(dc.substring(begin, end));
    }
  }
  return null;
}

function delCookie(name) {
  document.cookie = name + "=; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
/* ### END Standard Cookie Code ### */


/* ### BEGIN Import Style Sheets ### */
/* ### (c)Joe Kczmarek - E-mail: anyone@joek.com ### */
/* ### Used with Express Permission on dyslexia.com  ### */

styleStart = '<style type="text\/css" media="screen"> \@import url(';
styleEnd = '\)\; <\/style>';

if (getCookie('siteStyle') != null) {
  styleURL = '/sty/color/' + getCookie('siteStyle') + '.css';
  document.write(styleStart + styleURL + styleEnd);
}
else document.write(styleStart + '/sty/color/default.css' + styleEnd);

if (getCookie('siteFont') != null) {
  fontURL = '/sty/fonts/' + getCookie('siteFont') + '.css';
  document.write(styleStart + fontURL + styleEnd);
}
else document.write(styleStart + '/sty/fonts/trebuchet.css' + styleEnd);

if (getCookie('siteSize') != null) {
  sizeURL = '/sty/size/' + getCookie('siteSize') + '.css';
  document.write(styleStart + sizeURL + styleEnd);
}
else document.write(styleStart + '/sty/size/default.css' + styleEnd);


/* ### END Import Style Sheets ### */
//-->

