// If there is a UID cookie (means they should be logged in), but the currentLoginStatus cookie not set yet, call setLoginCookies to initialize them
if((readCookie("UID") && readCookie("np_loginStatus") == null) || (readCookie("UID") && readCookie("np_loginStatus") != null && readCookie("np_username") == null) || (readCookie("UID") && readCookie("np_loginStatus") != null && readCookie("np_username") != null)){
	setLoginCookies();
}
// Define a function that - when called - will invoke the subscription-protected page that checks $cms.subscriptionUser and sets js var AND cookies accordingly.
function setLoginCookies(){
    document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://www.nevadapreps.com/templates/determineLoginStatus.js?c=n&ran=' + Math.floor(Math.random()*1000000) + '"></scr'+'ipt>');
}

