
function getAdCookie(cook) {
  var theCookies = document.cookie;
  cook+= "=";
  var pos = theCookies.indexOf(cook);
  if (pos != -1) {
    var start = pos + cook.length;
    var end = theCookies.indexOf(";", start);
    if (end == -1) end = theCookies.length;
    var cookieValue = theCookies.substring(start,end);
    cookieValue = unescape(cookieValue);
    return cookieValue;
  } else {
    return '';
  }
 }

function subSect() {
  if (getAdCookie('UP').indexOf(',p1') >= 0 && document.cookie.indexOf('LOGGED_OUT=Logged') < 0) {
    return (';sect=subscriber');
  } else {
    return (';sect=nonsubscriber');
  }
}

