// this function is from plone_deprecated/login.js

function cookiesEnabled() {
  // Test whether cookies are enabled by attempting to set a cookie and then change its value
  // set test cookie
  var c = "areYourCookiesEnabled=0";
  document.cookie = c;
  var dc = document.cookie;
  // cookie not set?  fail
  if (dc.indexOf(c) == -1) return 0;
  // change test cookie
  c = "areYourCookiesEnabled=1";
  document.cookie = c;
  dc = document.cookie;
  // cookie not changed?  fail
  if (dc.indexOf(c) == -1) return 0;
  // delete cookie
  document.cookie = "areYourCookiesEnabled=; expires=Thu, 01-Jan-70 00:00:01 GMT";
  return 1;
}

jq(document).ready(function() {
    if(!cookiesEnabled()) {
        jq("#cookie-information-message").show();
        jq("#form-mform").fadeTo('slow', 0.3)
        jq("#fieldset-captcha").hide();
        jq("#actionsView").hide();
    }
});