jQuery(document).ready(function()
{
if(getCookie("swpm_session")==null && getCookie("wp_member_aec")==null)
{
jQuery("#content").replaceWith("
You must login to access this content.");
} else {
if(getCookie("wp_member_aec")=='=0')
{
// If they don't have a subscription, ask them to sign up for one.
jQuery("#main-content").after('
');
jQuery("#content").replaceWith('Your membership has expired. Please renew now.
');
}
}
});