/* ### BEGIN Standard Cookie Code ### */
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;
}
/* ### END Standard Cookie Code ### */

styleStart = '<STYLE TYPE="text\/css" MEDIA="screen">\<\!\-\- \@import url(';
styleEnd = '\)\; \-\-\><\/STYLE>';

styleC = getCookie('v8qStyle');
fontC = getCookie('v8qSize');

if (styleC != null) {
  styleURL = 'style/designs/' + styleC + '.css';
  document.write(styleStart + styleURL + styleEnd);
}
else document.write(styleStart + 'style/designs/default.css' + styleEnd);

if (fontC != null) {
  sizeURL = 'style/fonts/' + fontC + '.css';
  document.write(styleStart + sizeURL + styleEnd);
}
else document.write(styleStart + 'style/fonts/default.css' + styleEnd);

document.write(styleStart + 'style/layout.css' + styleEnd);