if (!nlCommonAlreadyIncluded) // Start of "include file protection" { function initJavascript() { var mainNlPageDivObj = document.getElementById('mainNlPageDiv'); if ('undefined' != typeof initMemHelper) { initMemHelper(); } setDisplaySignup(!needToHide()); } function setDisplaySignup(setVisible) { var signupVisible = 'block'; var otherVisible = 'none'; if (!setVisible) { signupVisible = 'none'; otherVisible = 'block'; } var mainNlPageDivObj = document.getElementById('mainNlPageDiv'); if (mainNlPageDivObj) { var mainNlPageDivUnavailableObj = document.getElementById('mainNlPageDivUnavailable'); mainNlPageDivUnavailableObj.style.display = otherVisible; mainNlPageDivObj.style.display = signupVisible; } var i = 1; while (true) { var signupDiv = document.getElementById('nlSignupCriticalDiv-' + i++); if (!signupDiv) { break; } signupDiv.style.display = signupVisible; } if (setVisible) { var i = 1; while (true) { var yearBornObj = document.getElementById('yearBornRow-' + i++); if (!yearBornObj) { break; } if (showAgeScreen()) { yearBornObj.style.display = ''; } else { yearBornObj.style.display = 'none'; } } } } var nlCommonAlreadyIncluded = true; var nlGlobalIdNum = 1; function getNlIdNum() { return(nlGlobalIdNum++); } function drawMainNlPage() { var idNum = getNlIdNum(); var html = '
Loading ....
If this appears for more than a few seconds, this service is temporarily unavailable. I apologize for any inconvenience.
\n'; document.write(html); } function drawNlRightSideBar() { var idNum = getNlIdNum(); var html = ' \n'; document.write(html); } function drawBodyShort() { var idNum = getNlIdNum(); var html = ' \n'; document.write(html); } function drawBodyShortAndThin() { var idNum = getNlIdNum(); var html = '\n'; document.write(html); } function opt_in_fields(idNum, loc) { var html = '
\n\
\n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n'; html += genYearBornListBox(idNum); html += ' \n\ \n'; /* \n\ */ html += ' \n\ \n\
First Name:
Primary Email:
\n\ (I hate SPAM, so I\'ll never sell or share your email address.)
 
IMPORTANT: After you click the sign up button below, be sure to confirm your sign up by following the instructions that arrive in your email. You won\'t be signed up until you confirm.
 
 
\n\ (You can unsubscribe at any time, of course.)
\n\
\n\ \n\
\n'; return html; } function opt_in_fields2(idNum, loc) { var html = '
\n\
\n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n'; html += genYearBornListBox(idNum); html += ' \n'; /* \n\ */ html += ' \n\
First Name:
Primary Email:
\n\ (I hate SPAM, so I\'ll never sell or share your email address.)

(You can unsubscribe at any time, of course.)

(You can unsubscribe at any time, of course.)
\n\
\n\ \n\
\n'; return html; } function opt_in_fields_sidebar(idNum, loc) { var html = '
\n\
\n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n'; html += genYearBornListBox(idNum); html += ' \n'; /* \n\ */ html += ' \n\
First Name:
Email:
\n\ (I hate SPAM, so I\'ll never sell or share your email address.)

(You can unsubscribe at any time.)

(You can unsubscribe at any time.)
\n\
\n\ \n\
\n'; return html; } function opt_in_fields_thin(idNum, loc) { var html = '
\n\
\n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n\ \n'; html += genYearBornListBox(idNum); html += ' \n\ \n\
First Name:
Primary Email:
\n\ (I hate SPAM, so I\'ll never sell or share your email address.)

(You can unsubscribe at any time, of course.)
\n\
\n\ \n\
\n'; return(html); } function genYearBornListBox(idNum) { var html = 'Year of Birth: \n'; html += ' \n'; html += '\n'; return html; } function showAgeScreen() { return (('true' == getCookieVal('main', 'needAgeScreen')) || checkCookieExists('bsbverse0')); } function needToHide() { return ('true' == getCookieVal('mainTmp', 'hideBecauseOfAge')); } function nlOnSubmit(idNum) { var theForm = document.getElementById('nlOptInForm-' + idNum); var theYearObj = document.getElementById('yearBornListBox-' + idNum); var theYearRowObj = document.getElementById('yearBornRow-' + idNum); if ('none' != theYearRowObj.style.display) { if (theYearObj.value < 0) { alert('Please select a value for the year'); return; } if (theYearObj.value <= 13) { setCookieVal('mainTmp', 'hideBecauseOfAge', 'true', null); setDisplaySignup(false); return; } } theForm.submit(); } function checkCookieExists(key) { var sep1 = '; '; var sep2 = '='; var lToSearch = sep1 + document.cookie; var nKey = sep1 + '' + key + sep2; var start = lToSearch.indexOf(nKey); if (start < 0) { return false; } return true; } function getCookieVal(key, subKey) { var part1 = cookieExtract(document.cookie, key, '; ', '=', false) var part2 = cookieExtract(part1[1], subKey, '#', '|', false); return unescape(part2[1]); } function setCookieVal(key, subKey, val, expiry) { var regExNotAllowed = /[=;#|]/; if (key.match(regExNotAllowed) || subKey.match(regExNotAllowed)) { return; } var part1 = cookieExtract(document.cookie, key, '; ', '=', false); var part2 = cookieExtract(part1[1], subKey, '#', '|', true); var tmpCookie = key + '='; var needPoundPending = false; if ('' != part2[0]) { tmpCookie += part2[0]; needPoundPending = true; } if ('' != val) { if (needPoundPending) { tmpCookie += '#'; } tmpCookie += subKey + '|' + escape(val); needPoundPending = true; } if ('' != part2[2]) { if (needPoundPending) { tmpCookie += '#'; } tmpCookie += part2[2]; } tmpCookie += '; '; if (-1 == expiry) { tmpCookie += 'expires=Thu, 31-Dec-2020 00:00:00 GMT; '; } else if (null != expiry) { tmpCookie += 'expires=' + expiry; } tmpCookie += 'path=/;'; document.cookie = tmpCookie; } function cookieExtract(toSearch, key, sep1, sep2, getAll) { var retObj = ['', '', '']; var lToSearch = sep1 + toSearch + sep1; var nKey = sep1 + '' + key + sep2; var start = lToSearch.indexOf(nKey); if (-1 == start) { retObj[0] = toSearch; return retObj; } var end = lToSearch.indexOf(sep1, start + 1); retObj[1] = lToSearch.substring(start + nKey.length, end); if (getAll) { if (start > 0) { retObj[0] = lToSearch.substring(sep1.length, start); } if (end < lToSearch.length - sep1.length) { retObj[2] = lToSearch.substring(end + sep1.length, lToSearch.length - sep1.length); } } return retObj; } if ( (document.location.pathname.indexOf('memory') >= 0) && ((document.location.pathname.indexOf('bible') >= 0) || (document.location.pathname.indexOf('scripture') >= 0)) ) { setCookieVal('main', 'needAgeScreen', 'true', -1); } } // End of "include file protection"