var warning = '<div class="accessHidden"><a href="#next">jump warning<\/a><h1>Notice<\/h1><p>This site&#8217;s design is only visible in a graphical browser that supports <a href="http:\/\/www.webstandards.org\/upgrade\/" title="The Web Standards Project&#8217;s BROWSER UPGRADE initiative."> web standards<\/a>, but its content is accessible to any browser or Internet device.  (<a href="\/Aboutthiswebsite\/Accessibility">Why we do this<\/a>.)<\/p><a name="next"><\/a><\/div>';
var css_warning = '<div class="accessHidden"><a href="#next">jump warning<\/a><h1>Notice<\/h1><p>This site&#8217;s design is only visible in a graphical browser that supports <a href="http:\/\/www.webstandards.org\/upgrade\/" title="The Web Standards Project&#8217;s BROWSER UPGRADE initiative."> web standards<\/a>, but its content is accessible to any browser or Internet device.  (<a href="\/Aboutthiswebsite\/Accessibility">Why we do this<\/a>.)<\/p><a name="next"><\/a><\/div>';

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  
  return unescape(dc.substring(begin + prefix.length, end));
}

if(!getCookie('seen-warning')) {
  if (current_browser.version < 5) {
    document.write(warning);
  } 
  else {
    document.write(css_warning);
  }
  setCookie('seen-warning');
} 
