// JavaScript Document
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=")
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 
    c_end=document.cookie.indexOf(";",c_start)
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end))
    } 
  }
return null
}
function removeQuotes(value){
  if(value!=null){
    if(value.indexOf("\"")==0){
      value = value.substring(1);
      if(value.lastIndexOf("\"")==(value.length-1)){
        value = value.substring(0,value.length-1);
      }
    }
  }
  return value;
}

var displayName = removeQuotes(getCookie("displayUserName"));
var subscriptions = getCookie( "subscriptions") ;
var temporaryAccesses = getCookie( "temporaryAccesses");

// Evaluate displayName to set the proper DIV visible.
var subscriberDisplay = 'none';
var visitorDisplay = 'block';

if(displayName!=null){
  if(displayName.length>0){
	subscriberDisplay = 'block';
	visitorDisplay = 'none';
  }
}
