docs: function getCookie(cname) {
              var name = cname + "=";
              var ca = doc.cookie.split(';'),
                  i = 0,
                  l = ca.length;
              for (; i < l; i++) {
                  var c = ca[i];
                  while (c.charAt(0) == ' ') {
                      c = c.substring(1);
                  }if (c.indexOf(name) != -1) return unescape(c.substring(name.length, c.length));
              }
              return "";
          }