
	browserName = navigator.appName.substring(0,8);
	browserVer = parseFloat(navigator.appVersion);
	
	var Browser = 0;
	
	if (browserName == 'Microsof' && browserVer < 4){Browser = 0;}
	if (browserName == 'Microsof' && browserVer >= 4){Browser = 1;}
	if (browserName == 'Netscape' && browserVer < 4){Browser = 1;}
	if (browserName == 'Netscape' && browserVer >= 4){Browser = 1;}

	var afrChaps = new Array("");
	var defChaps = new Array("");
	afrChaps[0] = "Genesis";
	afrChaps[1] = "Eksodus";
	afrChaps[2] = "Levitikus";
	afrChaps[3] = "Numeri";
	afrChaps[4] = "Deuteronomium";
	afrChaps[5] = "Josua";
	afrChaps[6] = "Rigters";
	afrChaps[7] = "Rut";
	afrChaps[8] = "1 Samuel";
	afrChaps[9] = "2 Samuel";
	afrChaps[10] = "1 Konings";
	afrChaps[11] = "2 Konings";
	afrChaps[12] = "1 Kronieke";
	afrChaps[13] = "2 Kronieke";
	afrChaps[14] = "Esra";
	afrChaps[15] = "Nehemia";
	afrChaps[16] = "Ester";
	afrChaps[17] = "Job";
	afrChaps[18] = "Psalms";
	afrChaps[19] = "Spreuke";
	afrChaps[20] = "Prediker";
	afrChaps[21] = "Hooglied";
	afrChaps[22] = "Jesaja";
	afrChaps[23] = "Jeremia";
	afrChaps[24] = "Klaagliedere";
	afrChaps[25] = "Esegiël";
	afrChaps[26] = "Daniël";
	afrChaps[27] = "Hosea";
	afrChaps[28] = "Joël";
	afrChaps[29] = "Amos";
	afrChaps[30] = "Obadja";
	afrChaps[31] = "Jona";
	afrChaps[32] = "Miga";
	afrChaps[33] = "Nahum";
	afrChaps[34] = "Habakuk";
	afrChaps[35] = "Sefanja";
	afrChaps[36] = "Haggai";
	afrChaps[37] = "Sagaria";
	afrChaps[38] = "Maleagi";
	afrChaps[39] = "Matteus";
	afrChaps[40] = "Markus";
	afrChaps[41] = "Lukas";
	afrChaps[42] = "Johannes";
	afrChaps[43] = "Handelinge";
	afrChaps[44] = "Romeine";
	afrChaps[45] = "1 Korintiërs";
	afrChaps[46] = "2 Korintiërs";
	afrChaps[47] = "Galasiërs";
	afrChaps[48] = "Efesiërs";
	afrChaps[49] = "Fillipense";
	afrChaps[50] = "Kolossense";
	afrChaps[51] = "1 Tessalonisense";
	afrChaps[52] = "2 Tessalonisense";
	afrChaps[53] = "1 Timoteus";
	afrChaps[54] = "2 Timoteus";
	afrChaps[55] = "Titus";
	afrChaps[56] = "Filemon";
	afrChaps[57] = "Hebreërs";
	afrChaps[58] = "Jakobus";
	afrChaps[59] = "1 Petrus";
	afrChaps[60] = "2 Petrus";
	afrChaps[61] = "1 Johannes";
	afrChaps[62] = "2 Johannes";
	afrChaps[63] = "3 Johannes";
	afrChaps[64] = "Judas";
	afrChaps[65] = "Openbaring";
	defChaps[0] = "Genesis";
	defChaps[1] = "Exodus";
	defChaps[2] = "Leviticus";
	defChaps[3] = "Numbers";
	defChaps[4] = "Deuteronomy";
	defChaps[5] = "Joshua";
	defChaps[6] = "Judges";
	defChaps[7] = "Ruth";
	defChaps[8] = "1 Samuel";
	defChaps[9] = "2 Samuel";
	defChaps[10] = "1 Kings";
	defChaps[11] = "2 Kings";
	defChaps[12] = "1 Chronicles";
	defChaps[13] = "2 Chronicles";
	defChaps[14] = "Ezra";
	defChaps[15] = "Nehemiah";
	defChaps[16] = "Esther";
	defChaps[17] = "Job";
	defChaps[18] = "Psalms";
	defChaps[19] = "Proverbs";
	defChaps[20] = "Ecclesiastes";
	defChaps[21] = "Song of Solomon";
	defChaps[22] = "Isaiah";
	defChaps[23] = "Jeremiah";
	defChaps[24] = "Lamentations";
	defChaps[25] = "Ezekiel";
	defChaps[26] = "Daniel";
	defChaps[27] = "Hosea";
	defChaps[28] = "Joel";
	defChaps[29] = "Amos";
	defChaps[30] = "Obadiah";
	defChaps[31] = "Jonah";
	defChaps[32] = "Micah";
	defChaps[33] = "Nahum";
	defChaps[34] = "Habakkuk";
	defChaps[35] = "Zephaniah";
	defChaps[36] = "Haggai";
	defChaps[37] = "Zechariah";
	defChaps[38] = "Malachi";
	defChaps[39] = "Matthew";
	defChaps[40] = "Mark";
	defChaps[41] = "Luke";
	defChaps[42] = "John";
	defChaps[43] = "Acts";
	defChaps[44] = "Romans";
	defChaps[45] = "1 Corinthians";
	defChaps[46] = "2 Corinthians";
	defChaps[47] = "Galatians";
	defChaps[48] = "Ephesians";
	defChaps[49] = "Philippians";
	defChaps[50] = "Colossians";
	defChaps[51] = "1 Thessalonians";
	defChaps[52] = "2 Thessalonians";
	defChaps[53] = "1 Timothy";
	defChaps[54] = "2 Timothy";
	defChaps[55] = "Titus";
	defChaps[56] = "Philemon";
	defChaps[57] = "Hebrews";
	defChaps[58] = "James";
	defChaps[59] = "1 Peter";
	defChaps[60] = "2 Peter";
	defChaps[61] = "1 John";
	defChaps[62] = "2 John";
	defChaps[63] = "3 John";
	defChaps[64] = "Jude";
	defChaps[65] = "Revelation";

	function addOption(selectbox,text,value ){
		var optn = document.createElement("OPTION");
		optn.text = text;
		optn.value = value;
		selectbox.options.add(optn);
	}
	function removeAllOptions(selectbox){
		var i;
		for(i=selectbox.options.length-1;i>=0;i--){
			selectbox.remove(i);
		}
	}

	function parallel(){
		if (document.getElementById('UserInput').style.visibility == "visible"){
			document.getElementById('UserInput').style.visibility = "hidden";
			document.getElementById('Bible2').style.visibility = "visible";
			document.getElementById('bookChapDivRight1').style.visibility = "visible";
		}else{
			document.getElementById('Bible2').style.visibility = "hidden";
			document.getElementById('bookChapDivRight1').style.visibility = "hidden";
			document.getElementById('UserInput').style.visibility = "visible";
		}
	}
	function cr_click() {
		u=location.href;
		t="Online Bible";
		window.open('sharer.php?heading='+ document.Bible.bible1Text.value + ":" + document.userInput.verseNum.value + " - " + document.userInput.bible1Text.value +'&f=1&u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=536');
		return false;
	}

	function cr_send() {
		memberContr.location.href = 'verseOB.php?verse='+ document.userInput.verseID.value + '&bT='+ document.userInput.bT.value;
		return false;
	}

	function cr_comment() {
		memberContr.location.href = 'verseComment.php?verse='+ document.userInput.verseID.value + '&bT='+ document.userInput.bT.value;
		return false;
	}

	function bibleNext(){
		for(i=1;i<=66;i++) {
			document.getElementById('bookChapDiv'+i).style.visibility = "hidden";
		}
		testVal = document.Bible.bookNameRead.value;
		if (testVal.length > 0){
			bookNum = document.Bible.bookNameRead.options[document.Bible.bookNameRead.selectedIndex].value;
			maxBook = document.Bible['bookChapRead' + bookNum].length;
			document.getElementById('bookChapDiv'+bookNum).style.visibility = "visible";
			bookChapRead = (document.Bible['bookChapRead' + bookNum].options[document.Bible['bookChapRead' + bookNum].selectedIndex].value*1) + 1;
			if (bookChapRead > maxBook){
				bookChapRead = maxBook;
			}
			document.Bible['bookChapRead' + bookNum].selectedIndex = bookChapRead-1;
			chapText = document.Bible.bookNameRead.options[document.Bible.bookNameRead.selectedIndex].text + " " + bookChapRead;
			document.Bible.bible1Text.value = chapText;
			if (browserName == 'Microsof'){
				document.leftReader.location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
			}else{
				window.frames[0].location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
			}
		}else{
			alert('There are no more results.');
		}
	}
	function biblePrev(){
		for(i=1;i<=66;i++) {
			document.getElementById('bookChapDiv'+i).style.visibility = "hidden";
		}
		testVal = document.Bible.bookNameRead.value;
		if (testVal.length > 0){
			bookNum = document.Bible.bookNameRead.options[document.Bible.bookNameRead.selectedIndex].value;
			document.getElementById('bookChapDiv'+bookNum).style.visibility = "visible";
			bookChapRead = (document.Bible['bookChapRead' + bookNum].options[document.Bible['bookChapRead' + bookNum].selectedIndex].value*1) - 1;
			if (bookChapRead == 0){
				bookChapRead = 1;
			}
			document.Bible['bookChapRead' + bookNum].selectedIndex = bookChapRead-1;
			chapText = document.Bible.bookNameRead.options[document.Bible.bookNameRead.selectedIndex].text + " " + bookChapRead;
			document.Bible.bible1Text.value = chapText;
			if (browserName == 'Microsof'){
				document.leftReader.location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
			}else{
				window.frames[0].location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
			}
		}else{
			alert('There are no more results.');
		}
	}
	function doBrowseBook(){
		bookNum = document.Bible.bookNameRead.options[document.Bible.bookNameRead.selectedIndex].value;
		document.getElementById('bookChapDiv'+bookNum).style.visibility = "visible";
		bookChapRead = document.Bible['bookChapRead' + bookNum].options[document.Bible['bookChapRead' + bookNum].selectedIndex].value;
		chapText = document.Bible.bookNameRead.options[document.Bible.bookNameRead.selectedIndex].text + " " + bookChapRead;
		document.Bible.bible1Text.value = chapText;
		if (browserName == 'Microsof'){
			document.leftReader.location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
		}else{
			window.frames[0].location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
		}
	}
	function bibleChapt(chapText){
		document.Bible.bible1Text.value = chapText;
		if (browserName == 'Microsof'){
			document.leftReader.location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
		}else{
			window.frames[0].location.href='bibleRead.php?bT=' + document.Bible.bT.value + "&bible1Text=" + chapText;
		}
	}
	function bibleRead(BibleV, BibleN){
		document.Bible.bT.value = BibleV;
		if (BibleV == "afr53"){
			removeAllOptions(document.Bible.bookNameRead);
			for (var i=0; i < afrChaps.length;++i){
				addOption(document.Bible.bookNameRead, afrChaps[i], (i+1));
			}
		}else{
			removeAllOptions(document.Bible.bookNameRead);
			for (var i=0; i < defChaps.length;++i){
				addOption(document.Bible.bookNameRead, defChaps[i], (i+1));
			}
		}
		document.getElementById("bibleName").innerHTML = BibleN;
		if (browserName == 'Microsof'){
			document.leftReader.location.href='bibleRead.php?bT=' + BibleV + "&bible1Text=" + document.Bible.bible1Text.value;
		}else{
			window.frames[0].location.href='bibleRead.php?bT=' + BibleV + "&bible1Text=" + document.Bible.bible1Text.value;
		}
	}

	function bibleReadRight(BibleV, BibleN){
		document.BibleRight.bT.value = BibleV;
		if (BibleV == "afr53"){
			removeAllOptions(document.BibleRight.bookNameRead);
			for (var i=0; i < afrChaps.length;++i){
				addOption(document.BibleRight.bookNameRead, afrChaps[i], (i+1));
			}
		}else{
			removeAllOptions(document.BibleRight.bookNameRead);
			for (var i=0; i < defChaps.length;++i){
				addOption(document.BibleRight.bookNameRead, defChaps[i], (i+1));
			}
		}
		document.getElementById("bibleNameRight").innerHTML = BibleN;
		if (browserName == 'Microsof'){
			document.rightReader.location.href='bibleReadRight.php?bT=' + BibleV + "&bible1Text=" + document.BibleRight.bible1Text.value;
		}else{
			window.frames[2].location.href='bibleReadRight.php?bT=' + BibleV + "&bible1Text=" + document.BibleRight.bible1Text.value;
		}
	}
	var min=8;
	var max=18;
	function increaseFontSize() {

		if (browserName == 'Microsof'){
			var p = document.leftReader.document.getElementsByTagName('p');
		}else{
			var p = window.frames[0].document.getElementsByTagName('p');
		}
	   for(i=0;i<p.length;i++) {
	      if(p[i].style.fontSize) {
	         var s = parseInt(p[i].style.fontSize.replace("px",""));
	      } else {
	         var s = 14;
	      }
	      if(s!=max) {
	         s += 1;
	      }
	      p[i].style.fontSize = s+"px"
	   }
	}
	function decreaseFontSize() {
		if (browserName == 'Microsof'){
			var p = document.leftReader.document.getElementsByTagName('p');
		}else{
			var p = window.frames[0].document.getElementsByTagName('p');
		}
	   for(i=0;i<p.length;i++) {
	      if(p[i].style.fontSize) {
	         var s = parseInt(p[i].style.fontSize.replace("px",""));
	      } else {
	         var s = 14;
	      }
	      if(s!=min) {
	         s -= 1;
	      }
	      p[i].style.fontSize = s+"px"
	   }   
	}
	function increaseFontSize2() {

		if (browserName == 'Microsof'){
			var p = document.rightReader.document.getElementsByTagName('p');
		}else{
			var p = window.frames[2].document.getElementsByTagName('p');
		}
	   for(i=0;i<p.length;i++) {
	      if(p[i].style.fontSize) {
	         var s = parseInt(p[i].style.fontSize.replace("px",""));
	      } else {
	         var s = 14;
	      }
	      if(s!=max) {
	         s += 1;
	      }
	      p[i].style.fontSize = s+"px"
	   }
	}
	function decreaseFontSize2() {
		if (browserName == 'Microsof'){
			var p = document.rightReader.document.getElementsByTagName('p');
		}else{
			var p = window.frames[2].document.getElementsByTagName('p');
		}
	   for(i=0;i<p.length;i++) {
	      if(p[i].style.fontSize) {
	         var s = parseInt(p[i].style.fontSize.replace("px",""));
	      } else {
	         var s = 14;
	      }
	      if(s!=min) {
	         s -= 1;
	      }
	      p[i].style.fontSize = s+"px"
	   }   
	}
	function doBrowseBookRight(){
		bookNum = document.BibleRight.bookNameRead.options[document.BibleRight.bookNameRead.selectedIndex].value;
		document.getElementById('bookChapDivRight'+bookNum).style.visibility = "visible";
		bookChapRead = document.BibleRight['bookChapRead' + bookNum].options[document.BibleRight['bookChapRead' + bookNum].selectedIndex].value;
		chapText = document.BibleRight.bookNameRead.options[document.BibleRight.bookNameRead.selectedIndex].text + " " + bookChapRead;
		document.BibleRight.bible1Text.value = chapText;
		if (browserName == 'Microsof'){
			document.rightReader.location.href='bibleReadRight.php?bT=' + document.BibleRight.bT.value + "&bible1Text=" + chapText;
		}else{
			window.frames[2].location.href='bibleReadRight.php?bT=' + document.BibleRight.bT.value + "&bible1Text=" + chapText;
		}
	}
	function bibleNext2(){
		for(i=1;i<=66;i++) {
			document.getElementById('bookChapDivRight'+i).style.visibility = "hidden";
		}
		testVal = document.BibleRight.bookNameRead.value;
		if (testVal.length > 0){
			bookNum = document.BibleRight.bookNameRead.options[document.BibleRight.bookNameRead.selectedIndex].value;
			maxBook = document.BibleRight['bookChapRead' + bookNum].length;
			document.getElementById('bookChapDivRight'+bookNum).style.visibility = "visible";
			bookChapRead = (document.BibleRight['bookChapRead' + bookNum].options[document.BibleRight['bookChapRead' + bookNum].selectedIndex].value*1) + 1;
			if (bookChapRead > maxBook){
				bookChapRead = maxBook;
			}
			document.BibleRight['bookChapRead' + bookNum].selectedIndex = bookChapRead-1;
			chapText = document.BibleRight.bookNameRead.options[document.BibleRight.bookNameRead.selectedIndex].text + " " + bookChapRead;
			document.BibleRight.bible1Text.value = chapText;
			if (browserName == 'Microsof'){
				document.rightReader.location.href='bibleReadRight.php?bT=' + document.BibleRight.bT.value + "&bible1Text=" + chapText;
			}else{
				window.frames[2].location.href='bibleReadRight.php?bT=' + document.BibleRight.bT.value + "&bible1Text=" + chapText;
			}
		}else{
			alert('There are no more results.');
		}
	}
	function biblePrev2(){
		for(i=1;i<=66;i++) {
			document.getElementById('bookChapDivRight'+i).style.visibility = "hidden";
		}
		testVal = document.BibleRight.bookNameRead.value;
		if (testVal.length > 0){
			bookNum = document.BibleRight.bookNameRead.options[document.BibleRight.bookNameRead.selectedIndex].value;
			document.getElementById('bookChapDivRight'+bookNum).style.visibility = "visible";
			bookChapRead = (document.BibleRight['bookChapRead' + bookNum].options[document.BibleRight['bookChapRead' + bookNum].selectedIndex].value*1) - 1;
			if (bookChapRead == 0){
				bookChapRead = 1;
			}
			document.BibleRight['bookChapRead' + bookNum].selectedIndex = bookChapRead-1;
			chapText = document.BibleRight.bookNameRead.options[document.BibleRight.bookNameRead.selectedIndex].text + " " + bookChapRead;
			document.BibleRight.bible1Text.value = chapText;
			if (browserName == 'Microsof'){
				document.rightReader.location.href='bibleRead.php?bT=' + document.BibleRight.bT.value + "&bible1Text=" + chapText;
			}else{
				window.frames[2].location.href='bibleRead.php?bT=' + document.BibleRight.bT.value + "&bible1Text=" + chapText;
			}
		}else{
			alert('There are no more results.');
		}
	}


