(function(n){n.fn.unveil=function(t,i){function o(){var t=u.filter(function(){var t=n(this);if(!t.is(":hidden")){var i=r.scrollTop(),e=i+r.height(),u=t.offset().top,o=u+t.height();return o>=i-f&&u<=e+f}});e=t.trigger("unveil");u=u.not(e)}var r=n(window),f=t||0,s=window.devicePixelRatio>1,h=s?"data-src-retina":"data-src",u=this,e;this.one("unveil",function(){var n=this.getAttribute(h);n=n||this.getAttribute("data-src");n&&(this.setAttribute("src",n),typeof i=="function"&&i.call(this))});r.on("scroll.unveil resize.unveil lookup.unveil",o);return o(),this}})(window.jQuery),function(){$(document).ready(function(){h();c();$("#defstrongs").hide();$("img").unveil(1,function(){$(this).load(function(){this.style.opacity=1})});$(window).on("resize",function(){s()});$("#GetBibles").click(function(){n();r()});$("#GetBiblesSm").click(function(){n();r()});$("#GetBiblesSmStrongs").click(function(){n();u()});$("#GetParallelBibles").click(function(){n();i()});$("#GetParallelBiblesSm").click(function(){n();i()});$("#GetStrongsBibles").click(function(){n();u()});$("#ButtonTrKjvVar").click(function(){n()});$("#NavSearchButton").click(function(){n();w()});$("#rbStrongs").click(function(){$("#defstrongs").show(200);$("#defthayer").hide(200)});$("#rbThayers").click(function(){$("#defstrongs").hide(200);$("#defthayer").show(200)});$(".navnext").click(function(){n()});$(".navprev").click(function(){n()});$(".navbar-brand").click(function(){n()});$(".strongslinks").click(function(){n()});$(".strongslink").click(function(){var r,i,u,f;return n(),r=$("#StrongsBibleId").val(),i=$(this).attr("href"),(i===null||i===""||i==="#")&&(u=$(this).attr("target"),f=" ",i=t("Strongs/"+r+"/"+u+"/")),window.open(i,"_self"),!1});$(".bookref").click(function(){n()});$(".interhead").click(function(){var n=$(this).attr("data-bible");window.location.href=t("BibleInformation/#"+n)});$(".featurehead").click(function(){n();$(this).css("background-color","#d3d3d3");var i=$(this).attr("data-ref");i!==""&&(window.location.href=t(i))});$(".contentmenu").click(function(){n()});$(".contentblock .inner").click(function(){n();var i=$(this).attr("data-ref");i!==""&&(window.location.href=t(i))});$(".contentblock .inner a").click(function(){n()});$(".whatistr a").click(function(){n()});$(".chapterref a").click(function(){n()});$(".biblemenutoggle").click(function(n){n.preventDefault();var t=$("#menu");t.is(":visible")?t.slideUp(400):($("html, body").animate({scrollTop:"0px"},300),t.slideDown(400));f()});$(".bibleselectmini a").click(function(){n()});$(".bibleselector").click(function(){var i=$(this).attr("data-ref");i!==null&&(n(),i!==""&&(window.location.href=t(i)))});$(".blogblock").click(function(){var i=$(this).attr("data-ref");i!==null&&i!==""&&(n(),i!==""&&(window.location.href=t("Editorial/"+i)))});$(".blogdoc").click(function(){var i=$(this).attr("data-ref");i!==null&&i!==""&&(n(),i!==""&&(window.location.href=t("Document/"+i)))});$(".editorialmenu").click(function(){n()});$(".library li a").click(function(){n()});$(".interhead").hover(function(){$(this).css("color","#93030e");$(this).css("cursor","pointer");$(this).css("text-decoration","underline")},function(){$(this).css("color","");$(this).css("cursor","default");$(this).css("text-decoration","none")});$(".featurehead").hover(function(){$(this).css("color","#039");$(this).css("background-color","#d3d3d3");$(this).css("cursor","pointer");$(this).css("text-decoration","underline")},function(){$(this).css("color","");$(this).css("background-color","");$(this).css("cursor","default");$(this).css("text-decoration","none")});$(".contentblock .inner").hover(function(){$(this).css("background-color","#e3e3e3");$(this).css("cursor","pointer")},function(){$(this).css("background-color","#f3f3f3");$(this).css("cursor","")});$("#BibleBooks").change(function(){a();$("#BibleChapters").val(1);$("#BibleVerses").val(1);$("#GetBibles").removeClass("btn-primary");$("#GetBibles").addClass("btn-danger");o()});$("#BibleChapters").change(function(){$("#GetBibles").removeClass("btn-primary");$("#GetBibles").addClass("btn-danger");o()});$("#BibleVerses").change(function(){n();r()});$("#ParallelBibleBooks").change(function(){$("#GetParallelBibles").removeClass("btn-primary");$("#GetParallelBibles").addClass("btn-danger");v()});$("#ParallelBibleChapters").change(function(){n();i()});$("#ParallelBible1").change(function(){n();i()});$("#ParallelBible2").change(function(){n();i()});$("#ParallelBible3").change(function(){n();i()});$("#StrongsBibleBooks").change(function(){l();$("#StrongsBibleChapters").val(1);$("#StrongsBibleVerses").val(1);$("#GetStrongsBibles").removeClass("btn-primary");$("#GetStrongsBibles").addClass("btn-danger");e()});$("#StrongsBibleChapters").change(function(){$("#GetStrongsBibles").removeClass("btn-primary");$("#GetStrongsBibles").addClass("btn-danger");e()});$("#StrongsBibleVerses").change(function(){n();u()});$("#BibleBookSelect").change(function(){var i,r;n();i=$("#BibleBookSelect").val();i==="0"?window.location.href=t(""):(r=$("#BibleName").val(),window.location.href=t(r+"/"+i+"/1"))});$("#searchterm").on("keypress",function(n){if(n.keyCode===13)return $("#NavSearchButton").click(),!1})});var h=function(){b();k();y();p();f();s()},c=function(){$("#popupInterlinear").hide();$("#nbInterlinear").hover(function(){var t=$(this),n=$("#popupInterlinear"),i=new Popper(t,n,{placement:"bottom"});n.show()},function(){$("#popupInterlinear").hide()});$("#popupParallel").hide();$("#nbParallel").hover(function(){var t=$(this),n=$("#popupParallel"),i=new Popper(t,n,{placement:"bottom"});n.show()},function(){$("#popupParallel").hide()});$("#popupStrongs").hide();$("#nbStrongs").hover(function(){var t=$(this),n=$("#popupStrongs"),i=new Popper(t,n,{placement:"bottom"});n.show()},function(){$("#popupStrongs").hide()});$("#popupEditorial").hide();$("#nbEditorial").hover(function(){var t=$(this),n=$("#popupEditorial"),i=new Popper(t,n,{placement:"bottom"});n.show()},function(){$("#popupEditorial").hide()})},l=function(){var n=$("#StrongsBibleBooks").val();$.getJSON({url:t("GetChapterCount/"+n),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=$("#StrongsBibleChapters"),t;for(i.empty(),t=1;t<n+1;t++)$("<option>",{value:t}).html(t).appendTo(i);$("#StrongsBibleChapters").val(1);$("#StrongsBibleVerses").val(1)},error:function(){alert("Server Error!")}})},e=function(){var n=$("#StrongsBibleBooks").val(),i=$("#StrongsBibleChapters").val();$.getJSON({url:t("GetVerseCount/"+n+"/"+i),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=$("#StrongsBibleVerses"),t;for(i.empty(),t=1;t<n+1;t++)$("<option>",{value:t}).html(t).appendTo(i);$("#StrongsBibleVerses").val(1)},error:function(){alert("Server Error!")}})},a=function(){var n=$("#BibleBooks").val();$.getJSON({url:t("GetChapterCount/"+n),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=$("#BibleChapters"),t;for(i.empty(),t=1;t<n+1;t++)$("<option>",{value:t}).html(t).appendTo(i);$("#BibleChapters").val(1);$("#BibleVerses").val(1)},error:function(){alert("Server Error!")}})},o=function(){var n=$("#BibleBooks").val(),i=$("#BibleChapters").val();$.getJSON({url:t("GetVerseCount/"+n+"/"+i),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=$("#BibleVerses"),t;for(i.empty(),t=1;t<n+1;t++)$("<option>",{value:t}).html(t).appendTo(i);$("#BibleVerses").val(1)},error:function(){alert("Server Error!")}})},v=function(){var n=$("#ParallelBibleBooks").val();$.getJSON({url:t("GetChapterCount/"+n),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=$("#ParallelBibleChapters"),t;for(i.empty(),t=1;t<n+1;t++)$("<option>",{value:t}).html(t).appendTo(i)},error:function(){alert("Server Error!")}})},y=function(){if($("#BookNo").length){var n=$("#BookNo").val(),t=$("#ChapterNo").val(),i=$("#VerseNo").val();$("#BibleBooks").val(n);$("#BibleChapters").val(t);$("#BibleVerses").val(i);$("#BibleBookSelect").length&&($("#BibleBookSelect").val(n),$(".chapterref a").each(function(){$(this).attr("data-chapter")===t&&($(this).css("color","#fff"),$(this).css("background-color","#003399"))}))}if($("#ParallelBookNo").length){var r=$("#ParallelBookNo").val(),u=$("#ParallelChapterNo").val(),f=$("#ParallelBibleType1").val(),e=$("#ParallelBibleType2").val(),o=$("#ParallelBibleType3").val();$("#ParallelBibleBooks").val(r);$("#ParallelBibleChapters").val(u);$("#ParallelBible1").val(f);$("#ParallelBible2").val(e);$("#ParallelBible3").val(o)}if($("#StrongsBookNo").length){var s=$("#StrongsBookNo").val(),h=$("#StrongsChapterNo").val(),c=$("#StrongsVerseNo").val();$("#StrongsBibleBooks").val(s);$("#StrongsBibleChapters").val(h);$("#StrongsBibleVerses").val(c)}},p=function(){if($("#StrongsBookNo").length){var n=$("#StrongsNumber").val();$(".strongsno").each(function(){$(this).html()===n&&($(this).css("color","#fff"),$(this).css("background-color","#003399"))})}},r=function(){var n=$("#BibleBooks").val(),i=$("#BibleChapters").val(),r=$("#BibleVerses").val(),u=n*1e6+i*1e3+r*1;window.location.href=t("Interlinear/"+u)},i=function(){var n=$("#ParallelBibleBooks").val(),i=$("#ParallelBibleChapters").val(),r=n*1e6+i*1e3+1,u=$("#ParallelBible1").val(),f=$("#ParallelBible2").val(),e=$("#ParallelBible3").val();window.location.href=t("Parallel/"+r+"/"+u+"/"+f+"/"+e)},u=function(){var n=$("#StrongsBibleBooks").val(),i=$("#StrongsBibleChapters").val(),r=$("#StrongsBibleVerses").val(),u=n*1e6+i*1e3+r*1;window.location.href=t("Strongs/"+u)},w=function(){var n=encodeURIComponent($("#searchterm").val().replace(":","_").replace(".","_"));$.getJSON({url:t("GetBibleId/"+n),type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var i=$("#PageName").val();return url=i==="parallel"?t("Parallel/"+n):i==="strongs"?t("Strongs/"+n):t("Interlinear/"+n),window.open(url,"_self"),!1},error:function(){f();alert("Server Error!")}})},b=function(){top.location!==location&&(top.location.href=document.location.href)},k=function(){if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)){var n=document.querySelector('meta[name="viewport"]');n&&(n.content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0",document.addEventListener&&document.addEventListener("gesturestart",function(){n.content="width=device-width, minimum-scale=0.25, maximum-scale=10"},!1))}},d=function(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))},t=function(n){var i=window.location.href.split("/"),r=i[0],t=i[2],u=i[3];return t.indexOf("localhost:")>-1?r+"//"+t+"/"+n:t.indexOf("localhost")>-1||t.indexOf("192.168")>-1?r+"//"+t+"/"+u+"/"+n:r+"//"+t+"/"+n},n=function(){var n=$("div#spinner");n.css("display")==="none"&&(n.html(""),n.append("<img src='"+t("Content/images/loaderblack.gif")+"' /><p>Loading...<\/p>"),n.fadeIn("fast"))},f=function(){var n=$("div#spinner");n.css("display")!=="none"&&(n.stop(),n.fadeOut("fast"))},s=function(){var i=$(".banner-leaderboard"),n=$(".banner-leaderboard iframe");if(n.attr("frameBorder","0"),n.attr("scrolling","no"),i.length){var u=$("body").innerWidth(),r=u*.9,t=r/728,f=90*t;r<728?(i.css("width",r+"px"),i.css("height",f+"px"),n.css("-webkit-transform","scale("+t+")"),n.css("-moz-transform","scale("+t+")"),n.css("-o-transform","scale("+t+")"),n.css("-ms-transform","scale("+t+")"),n.css("transform","scale("+t+")")):(i.css("width","728px"),i.css("height","90px"))}}}()