
var pageForm= "<form style=\"display: inline; margin: 0; padding: 0;\" name=\"frmSearch\" method=\"post\" action=\"loadingSearch.asp\">";
pageForm+= "<input type=\"hidden\" name=\"countBox\" value=\"9\">";
pageForm+= "<input type=\"hidden\" name=\"searchType\" value=\"This Week\">";
pageForm+= "<input type=\"hidden\" name=\"tutorialHold\" value=\"No\">";
pageForm+= "<input type=\"hidden\" name=\"whichTheOne\" value=\"ThisWeek\">";
pageForm+= "<input type=\"hidden\" name=\"tutorialStep\" value=\"1\">";
pageForm+= "<input type=\"hidden\" name=\"whichPage\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"theOtherType\" value=\"illustrations\">";
pageForm+= "<input type=\"hidden\" name=\"whichOne\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"theType\" value=\"files\">";
pageForm+= "<input type=\"hidden\" name=\"whichOne\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"whichOne2\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"whichOne3\" value=\"a\">";
pageForm+= "<input type=\"hidden\" name=\"whichFile\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"tocTypeSub\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"PageNum\" value=\"1\">";
pageForm+= "<input type=\"hidden\" name=\"the1PageNumber\" value=\"1\">";
pageForm+= "<input type=\"hidden\" name=\"defaultSQLB\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"masterScriptureRef\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"masterBibleCode\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"theA1PageNumber\" value=\"1\">";
pageForm+= "<input type=\"hidden\" name=\"theC1PageNumber\" value=\"1\">";
pageForm+= "<input type=\"hidden\" name=\"columnAType\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"columnAMenuOption\" value=\"abingdon\">";
pageForm+= "<input type=\"hidden\" name=\"columnCMenuOption\" value=\"scripture\">";
pageForm+= "<input type=\"hidden\" name=\"columnCType\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"content_title\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"txtAuthor\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"kingsURL\" value=\"powerpoints.asp\">";
pageForm+= "<input type=\"hidden\" name=\"thisWeekSearch\" value=\"No\">";
pageForm+= "<input type=\"hidden\" name=\"theDate\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"weekly_id\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"id\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"fncBibleNumber\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"showContext\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"revealDictionary\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"term_id\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"firstClick\" value=\"No\">";
pageForm+= "<input type=\"hidden\" name=\"thelectionarySeries\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"thebibleSeries\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"dictionaryMatch\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"tempDate\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"dictionaryMatchCenter\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"term_idCenter\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"whichLetterDictionary\" value=\"a\">";
pageForm+= "<input type=\"hidden\" name=\"whichLetterAuthor\" value=\"a\">";
pageForm+= "<input type=\"hidden\" name=\"theTradition\" value=\"RCL\">";

pageForm+= "<input type=\"hidden\" name=\"ExtraSpecialDays\" value=\"418\">";
pageForm+= "<input type=\"hidden\" name=\"ExtraKeywords\" value=\"418\">";

pageForm+= "<input type=\"hidden\" name=\"defaultBible\" value=\"NIV\">";
pageForm+= "<input type=\"hidden\" name=\"isChildrenBulletin\" value=\"No\">";

pageForm+= "<input type=\"hidden\" name=\"currentCode\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"currentCode\" value=\"Yes\">";

pageForm+= "<input type=\"hidden\" name=\"lectionaryNumber\">";
pageForm+= "<input type=\"hidden\" name=\"defaultRCL\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"defaultRC\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"defaultEP\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"defaultLC\" value=\"\">";

pageForm+= "<input type=\"hidden\" name=\"thelectionarySeriesTwo\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"thebibleSeriesTwo\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"user_id\" value=\"theUser_id\">";
pageForm+= "<input type=\"hidden\" name=\"getContentTheType\" value=\"\">";
pageForm+= "<input type=\"hidden\" name=\"tocType\" value=\"\">";
pageForm+= "<span id=\"theContentGoesHere\" style=\"margin: 0px; padding: 0px;\" ></span>";
pageForm+= "<span id=\"theOtherContentGoesHere\" style=\"margin: 0px; padding: 0px;\" ></span>";
pageForm+= "</form>";

var newArrayTabs = new Array();

newArrayTabs[1] = "scripturesearch";
newArrayTabs[2] = "lectionarysearch";
newArrayTabs[3] = "quicksearch";
newArrayTabs[4] = "ThisWeek";
//newArrayTabs[5] = "AdventSeries";
newArrayTabs[5] = "series";
newArrayTabs[6] = "specialdays";


newArrayTabs[11] = "scripturesearchbible";
newArrayTabs[12] = "lectionarysearchbible";
newArrayTabs[13] = "quicksearchbible";

newArrayTabs[7] = "Humor";
newArrayTabs[8] = "Author";
newArrayTabs[9] = "illustrations";
newArrayTabs[10] = "showAll";
newArrayTabs[11] = "showAllMedia";
newArrayTabs[29] = "resources";
newArrayTabs[90] = "illustrations";
newArrayTabs[91] = "Humor";
newArrayTabs[92] = "kingsPPTs";
newArrayTabs[103] = "resources";

/* commented out dd 11/19/2009
newArrayTabs[7] = "Humor";
newArrayTabs[8] = "Author";
newArrayTabs[9] = "illustrations";
newArrayTabs[10] = "showAll";
newArrayTabs[90] = "illustrations";
newArrayTabs[91] = "Humor";
*/

var newArrayTops = new Array();

newArrayTops[1] = 1;
newArrayTops[2] = 2;
newArrayTops[3] = 6;
newArrayTops[4] = 22;
newArrayTops[5] = 24;
newArrayTops[6] = 3;
newArrayTops[7] = 20;
newArrayTops[8] = 4;
newArrayTops[9] = 7;
newArrayTops[10] = 5;
newArrayTops[11] = 25;
newArrayTops[12] = 26;
newArrayTops[13] = 27;
newArrayTops[14] = 28;
newArrayTops[15] = 101;
newArrayTops[16] = 102;
newArrayTops[17] = 29;
newArrayTops[18] = 30;
newArrayTops[19] = 31;
newArrayTops[20] = 103;
newArrayTops[21] = 104;

var nameTops = new Array;

nameTops[1]="sermon";
nameTops[2]="illustration";
nameTops[26]="commentary";
nameTops[25]="dictionary";
nameTops[22]="powerpoint";
nameTops[27]="videos";
nameTops[24]="archaeology";
nameTops[3]="childrenResources";
nameTops[20]="childbulletin";
nameTops[4]="worshipaids";
nameTops[5]="drama";
nameTops[6]="eulogies";
nameTops[101]="thisWeek";
nameTops[102]="scripture";
nameTops[103]="resources";
nameTops[104]="resources";

nameTops[29]="powerpoint";
nameTops[30]="splashscreen";
nameTops[31]="motionbackground";

var newArraySubs = new Array();

newArraySubs[1] = "HumorIllustrations";
newArraySubs[2] = "HumorHumor";
newArraySubs[3] = "HumorAuthor";
newArraySubs[4] = "HumorLectionary";
newArraySubs[5] = "HumorPPTs";


var newArrayLectionary = new Array();
newArrayLectionary[1] = "RCL";
newArrayLectionary[2] = "RC";
newArrayLectionary[3] = "EP";
newArrayLectionary[4] = "LC";


var newArrayBible = new Array();
newArrayBible[1] = "NIV";
newArrayBible[2] = "RSV";
newArrayBible[3] = "ASV";
newArrayBible[4] = "KJV";
newArrayBible[5] = "PAR";

var newArrayTOC = new Array();
newArrayTOC[1] = "1";
newArrayTOC[2] = "2";
newArrayTOC[3] = "3";
newArrayTOC[4] = "4";
newArrayTOC[5] = "5";
newArrayTOC[6] = "6";
newArrayTOC[7] = "7";
newArrayTOC[8] = "8";
newArrayTOC[9] = "9";
newArrayTOC[10] = "10";
newArrayTOC[11] = "11";
newArrayTOC[12] = "12";
newArrayTOC[13] = "13";
newArrayTOC[14] = "14";
newArrayTOC[15] = "15";
newArrayTOC[16] = "16";
newArrayTOC[17] = "17";
newArrayTOC[18] = "18";
newArrayTOC[19] = "19";
newArrayTOC[20] = "20";
newArrayTOC[21] = "21";
newArrayTOC[33] = "22";
newArrayTOC[23] = "23";
newArrayTOC[24] = "24";
newArrayTOC[25] = "25";
newArrayTOC[26] = "26";
newArrayTOC[27] = "27";
newArrayTOC[28] = "28";
newArrayTOC[29] = "29";
newArrayTOC[30] = "30";
newArrayTOC[31] = "31";
newArrayTOC[32] = "32";

var newArrayColA = new Array();

newArrayColA[1] = "illustrations";
newArrayColA[2] = "illustrationsSweet";
newArrayColA[3] = "abingdon";
newArrayColA[4] = "interpreters";
newArrayColA[5] = "lectionary";
newArrayColA[6] = "lenSweet";
newArrayColA[7] = "dictionary";

var newArrayColC = new Array();

newArrayColC[1] = "scripture";
newArrayColC[2] = "bulletinAid";
newArrayColC[3] = "lectionaryAid";
newArrayColC[4] = "thisWeek";
newArrayColC[5] = "childrensSermon";
newArrayColC[6] = "drama";

function submitenter(myfield,e)
{
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	//alert(keycode)
	if (keycode == 13)
	   {
	   document.frmSearch.PageNum.value=1;
	   
	   checkOut(); 
	   return false;
	   checkOut();
	   }
	else
		{
	   return true;
	   }
}

function checkOut()
{
	getContent("quicksearch", "columnTwo");
}


function getContent()
{
	document.frmSearch.submit();
}

function getDataA()
{
	document.frmSearch.submit();
}

function getPPTSlideByName(tempName)
{
	document.frmSearch.tocType.value=22;
	setColorTop(22);
	document.frmSearch.searchType.value='Keyword Search';
	document.frmSearch.whichTheOne.value='quicksearch';
	setContent('quicksearch');
	//cancelCheckTWFP();
	document.frmSearch.txtKeywords.value = tempName;
	document.frmSearch.PageNum.value=1;
	checkOut();
}

function setColorsTOC(thebutton)
{
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayTOC.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'tocType" + newArrayTOC[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		if (NAME) {
			if (newArrayTOC[i] == document.frmSearch.tocType.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				NAME.className="second-nav-link-On" ;
			} else {
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayTOC[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					NAME.className="second-nav-link" ;
				}
			}
		}
	}
}

function setColorsColA(thebutton)
{
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayColA.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'buttonA" + newArrayColA[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		if (NAME) {
			if (newArrayColA[i] == document.frmSearch.columnAMenuOption.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				NAME.className="second-nav-link-On" ;
			} else {
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayColA[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					NAME.className="second-nav-link" ;
				}
			}
		}
	}
}

function setColorsColC(thebutton)
{
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayColC.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'buttonC" + newArrayColC[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		if (NAME) {
			if (newArrayColC[i] == document.frmSearch.columnCMenuOption.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				NAME.className="second-nav-link-On" ;
			} else {
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayColC[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					NAME.className="second-nav-link" ;
				}
			}
		}
	}
}


function setColorsBible(thebutton)
{
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayBible.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'theBible" + newArrayBible[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		if (NAME) {
			if (newArrayBible[i] == document.frmSearch.defaultBible.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				NAME.className="second-nav-link-On" ;
			} else {
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayTOC[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					NAME.className="second-nav-link" ;
				}
			}
		}
	}
}

function setColors(thebutton)
{
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayTabs.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'button" + newArrayTabs[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		if (NAME) {
			if (newArrayTabs[i] == document.frmSearch.whichTheOne.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				NAME.className="second-nav-link-On" ;
			} else {
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayTabs[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					NAME.className="second-nav-link" ;
				}
			}
		}
	}
	
	
	/*
	//alert("here" + thebutton)
	if (thebutton != "blank") {
		try {
			eval("button" + thebutton + ".style.backgroundColor ='#990000'")
		} catch(er) {
		
		}
	}
	
	for (var i=1; i < newArrayTabs.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		if (newArrayTabs[i] == document.frmSearch.whichTheOne.value) {
			eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
		} else {
			//alert(newArrayTabs[i] + "--" + thebutton)
			if (newArrayTabs[i] != thebutton) {
				eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
			}
		}
	}
	*/
	
}

function setColorTop(thebutton)
{

	var tempInstructions;
	tempInstructions = buildInstructions(thebutton);
	document.getElementById("theInstructions").innerHTML = tempInstructions;
	
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayTops.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'button" + newArrayTops[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		//if (theItem == "button104") {
			//alert(NAME)
		//}
		if (NAME) {
			if (newArrayTops[i] == document.frmSearch.tocType.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				eval("NAME.className='" + nameTops[newArrayTops[i]] + "On'");
			} else { 
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayTops[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					eval("NAME.className='" + nameTops[newArrayTops[i]] + "'");
				}
			}
		}
	}
	
	switch(thebutton)
	{
		case 24:
			//url = "getArchaelogy.asp?1=1";
			//getData(url);
			break;
	}
	
	
	
	//alert("here" + thebutton)
	/*if (thebutton != "blank") {
		try {
			eval("button" + thebutton + ".style.backgroundColor ='#990000'")
		} catch(er) {
		
		}
	}
	for (var i=1; i < newArrayTops.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		if (newArrayTops[i] == document.frmSearch.tocType.value) {
			eval("button" + newArrayTops[i] + ".style.backgroundColor ='#990000'")
			
			if (document.frmSearch.tocType.value == "20") {
			//	getCB();
				document.getElementById("theMenuPlace").innerHTML="";
			}
			
			
			
		} else {
			//alert(newArrayTabs[i] + "--" + thebutton)
			if (newArrayTops[i] != thebutton) {
				eval("button" + newArrayTops[i] + ".style.backgroundColor ='#000000'")
			}
		}
	}
	
	*/
}

function getCB()
{
	var tempDate;
	tempDate = document.frmSearch.tempDate.value;
	document.frmSearch.whichOne.value='';
	document.frmSearch.isChildrenBulletin.value='Yes';
	document.frmSearch.tocType.value=20;
	setColorsTOC('20');
	document.frmSearch.PageNum.value=1;
	
	getContent();
}

function setColorSubs(thebutton)
{
	//alert("here" + thebutton)
	/*if (thebutton != "blank") {
		try {
			eval("button" + thebutton + ".style.backgroundColor ='#990000'")
		} catch(er) {
		
		}
	}
	for (var i=1; i < newArraySubs.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		if (newArraySubs[i] == document.frmSearch.tocTypeSub.value) {
			try {
				eval("button" + newArraySubs[i] + ".style.backgroundColor ='#990000'")
			} catch(er) {
		
			}
		} else {
			//alert(newArrayTabs[i] + "--" + thebutton)
			if (newArraySubs[i] != thebutton) {
				try {
					eval("button" + newArraySubs[i] + ".style.backgroundColor ='#000000'")
				} catch(er) {
		
				}
			}
		}
	}
	*/
	
}

function setColorLectionary(thebutton)
{
	//alert("here" + thebutton)
	var theItem
	var NAME;
	
	for (var i=1; i < newArrayLectionary.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		eval("theItem = 'button" + newArrayLectionary[i] +"'");
		//alert(theItem);
		NAME = document.getElementById(theItem);
		if (NAME) {
			if (newArrayLectionary[i] == document.frmSearch.theTradition.value) {
				//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#990000'")
				NAME.className="second-nav-link-On" ;
			} else {
				//alert(newArrayTabs[i] + "--" + thebutton)
				if (newArrayLectionary[i] != thebutton) {
					//eval("button" + newArrayTabs[i] + ".style.backgroundColor ='#000000'")
					NAME.className="second-nav-link" ;
				}
			}
		}
	}
	/*if (thebutton != "blank") {
		try {
			eval("button" + thebutton + ".style.backgroundColor ='#990000'")
		} catch(er) {
		
		}
	}
	for (var i=1; i < newArrayLectionary.length; i++) {
		//alert(newArrayTabs[i] + "--" + thebutton)
		if ((newArrayLectionary[i] == document.frmSearch.theTradition.value)){
			try {
				eval("button" + newArrayLectionary[i] + ".style.backgroundColor ='#990000'")
				//eval("theLectionaryHere.innerHTML = contentLectionary" + document.frmSearch.theTradition.value);
			} catch(er) {
		
			}
		} else {
			//alert(newArrayTabs[i] + "--" + thebutton)
			if (newArrayLectionary[i] != thebutton) {
				try {
					eval("button" + newArrayLectionary[i] + ".style.backgroundColor ='#000000'")
				} catch(er) {
		
				}
			}
		}
	}
	
	*/
}

function checkSearchScriptures(whichBox, otherBox)
{
	var tempIndex;
	eval("tempIndex = document.frmSearch.scriptureBook[" + whichBox + "].selectedIndex");
	if (tempIndex > 0) {
		eval("document.frmSearch.scriptureBook[" + otherBox + "].selectedIndex = 0");
	}
}


function setContent(theType)
{
	var url;
	var theLocation;
	setColors(theType);
	if (document.frmSearch.tocType.value=="") {
		document.frmSearch.tocType.value="1";
		//button1.style.backgroundColor ='#990000';
	}	
	
	
	switch(theType)
	{
		case "HumorLectionary":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
			
				document.frmSearch.whichOne.value='Humor';
				setColorSubs(theType);
				url = "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=Lectionary&theDate=" + document.frmSearch.theDate.value
				theLocation = "columnTwo";
				setColorSubs(theType);
				getData(url);
			}
			break;
			
		case "HumorPPTs":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
			
				document.frmSearch.whichOne.value='Humor';
				setColorSubs(theType);
				url = document.frmSearch.kingsURL.value + "?user_id=" + document.frmSearch.user_id.value + "&noTop=Yes";
				theLocation = "columnTwo";
				setColorSubs(theType);
				getData(url);
			}
			break;
		case "HumorDetails2":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				document.frmSearch.whichOne.value='Humor';
				setColorSubs(theType);
				url = "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=Humor&theOtherType=humor&whichOne=other&whichOne3=" + document.frmSearch.whichOne3.value + "&whichFile=" + document.frmSearch.whichFile.value;
				theLocation = "columnTwo";
				setColorSubs(theType);
				if (document.frmSearch.whichFile.value) {
					getData(url);
				} else {
					getDataA(url);
				}
				
			}
			break;
				
		case "HumorAuthor":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				document.frmSearch.whichOne.value='Humor';
				setColorSubs(theType);
				url = "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=authorList&whichLetter=" + document.frmSearch.whichLetterAuthor.value + "&tocType=" + document.frmSearch.tocType.value;
				theLocation = "columnTwo";
				setColorSubs(theType);
				//if (document.frmSearch.whichFile.value) {
				//	getData(url);
				//} else {
					getDataA(url);
				//}
				
			}
			break;
			
		case "HumorIllustrations":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
			
				document.frmSearch.whichOne.value='Humor';
				setColorSubs(theType);
				url = "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=Humor&theOtherType=illustrations&whichOne=other&theType=" + document.frmSearch.theType.value + "&whichOne3=" + document.frmSearch.whichOne3.value + "&whichFile=" + document.frmSearch.whichFile.value;
				theLocation = "columnTwo";
				setColorSubs(theType);
				if (document.frmSearch.whichFile.value) {
					getData(url);
				} else {
					getDataA(url);
				}
			}
			break;
		
		case "HumorList":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
				
				//document.getElementById("theContentGoesHere").innerHTML = contentHumorBar;
				
				url = "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=Humor&whichOne3="+ document.frmSearch.whichOne3.value;
				
				//url = "generateContent.asp?whichType=Humor&theOtherType=illustrations&whichOne=other&theType=" + document.frmSearch.theType.value + "&whichOne3=" + document.frmSearch.whichOne3.value + "&whichFile=" + document.frmSearch.whichFile.value;
				
				
				theLocation = "columnTwo";
				setColorSubs(theType);
				if (document.frmSearch.whichFile.value) {
					getData(url);
				} else {
					getDataA(url);
				}
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//buttonHumorHumor.style.backgroundColor ='#990000';
			
			break;
		
		case "Humor":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
				
				//document.getElementById("theContentGoesHere").innerHTML = contentHumorBar;
				
				//url = "generateContent.asp?whichType=Humor&whichOne3="+ document.frmSearch.whichOne3.value;
				
				url = "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=Humor&theOtherType=illustrations&whichOne=other&theType=" + document.frmSearch.theType.value + "&whichOne3=" + document.frmSearch.whichOne3.value + "&whichFile=" + document.frmSearch.whichFile.value;
				
				
				theLocation = "columnTwo";
				setColorSubs(theType);
				if (document.frmSearch.whichFile.value) {
					getData(url);
				} else {
					getDataA(url);
				}
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//buttonHumorHumor.style.backgroundColor ='#990000';
			
			break;
			
		case "ThisWeek":
			
			//document.getElementById('contentRightGutter').className="tableTopBarBlue";
			//document.getElementById('contentleftGutter').className="tableTopBarBlue";
			//document.getElementById("contentMain").className="tableTopBarBlue";
			
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
				
				//theContentGoesHere.innerHTML = "<img border='0' src='images/spacer.gif' width='1' height='1'>";
				var tempBar;
				tempBar = "<table border='0'  width='496'  width='496' height='15' align='center' cellpadding='0' cellspacing='0'>";
				
				tempBar+= "<tr>";
				//tempBar+= "<td><img border='0' src='images/spacer.gif' width='1' height='14'></td>";
				tempBar+= "<td class='thisWeekHeaderTextFour'><!-- theDefaultRCL --></td>";
				tempBar+= "</tr>";
				//tempBar+= "<tr>";
				//tempBar+= "<td colpsan='2'><img border='0' src='images/spacer.gif' width='480' height='1'>&nbsp;</td>";
				//tempBar+= "</tr>";
				tempBar+= "</table>";
				
				document.getElementById("theContentGoesHere").innerHTML = tempBar;
				
				url= "generateContent.asp?user_id=" + document.frmSearch.user_id.value + "&whichType=ThisWeek";
				url+= "&theDate=" + document.frmSearch.theDate.value;
				url+= "&theTradition=" + document.frmSearch.theTradition.value;
				theLocation = "columnTwo";
				getData(url);
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
			
			
			
			break;
		case "series":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
				
				document.getElementById("theContentGoesHere").innerHTML = contentSERIESNew;
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
			break;
		case "seriesSD":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				if (document.frmSearch.firstClick.value=="No") {
					//document.getElementById("columnA").innerHTML = "";
					//document.getElementById("columnC").innerHTML = "";
					document.frmSearch.firstClick.value="Yes";
					
					//sideBarA.style.backgroundColor ="#FFFFFF";
					//sideBarC.style.backgroundColor ="#FFFFFF";
				}
				
				document.getElementById("theContentGoesHere").innerHTML = contentSDNew;
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
			break;
		case "quicksearch":
			document.getElementById("theContentGoesHere").innerHTML = contentKW;
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
			if (document.frmSearch.tocType.value==24) {
				document.frmSearch.whichSearch[1].checked =true;
			}
			
			break;
		case "scripturesearch":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				document.getElementById("theContentGoesHere").innerHTML = contentSS;
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
			break;
		case "lectionarysearch":
			if (document.frmSearch.tocType.value==25) {
				//document.getElementById('tableTopBarIDB').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDC').className="tableTopBarBlue";
				//document.getElementById('tableTopBarIDD').className="tableTopBarBlue";
				document.getElementById("theContentGoesHere").innerHTML = menuSorry25;
				//getDictionaryList();
			} else {
				document.getElementById("theContentGoesHere").innerHTML = contentLSNew;
				setColorLectionary("test");
				eval("document.getElementById('theLectionaryHere').innerHTML = contentLectionary" + document.frmSearch.theTradition.value);
				if (document.frmSearch.theTradition.value == "RCL") {
					for (var z=0; z< document.frmSearch.rcl_week.length; z++)
					{
						//url+= "&rcl_week=" + document.frmSearch.rcl_week.options[document.frmSearch.rcl_week.selectedIndex].text;
						if ((document.frmSearch.rcl_week.options[z].text == document.frmSearch.defaultRCL.value)) {
							document.frmSearch.rcl_week.selectedIndex = z;
						}
					}
					if (document.frmSearch.rcl_week.selectedIndex > 0) {
						getContent("lectionarysearch", "columntwo");
					}
				}
				if (document.frmSearch.theTradition.value == "RC") {
					for (var z=0; z< document.frmSearch.catholic_week.length; z++)
					{
						//url+= "&rcl_week=" + document.frmSearch.rcl_week.options[document.frmSearch.rcl_week.selectedIndex].text;
						if ((document.frmSearch.catholic_week.options[z].text == document.frmSearch.defaultRC.value)) {
							document.frmSearch.catholic_week.selectedIndex = z;
						}
					}
					if (document.frmSearch.catholic_week.selectedIndex > 0) {
						getContent("lectionarysearch", "columntwo");
					}
				}
				if (document.frmSearch.theTradition.value == "EP") {
					for (var z=0; z< document.frmSearch.episcopal_week.length; z++)
					{
						//url+= "&rcl_week=" + document.frmSearch.rcl_week.options[document.frmSearch.rcl_week.selectedIndex].text;
						if ((document.frmSearch.episcopal_week.options[z].text == document.frmSearch.defaultEP.value)) {
							document.frmSearch.episcopal_week.selectedIndex = z;
						}
					}
					if (document.frmSearch.episcopal_week.selectedIndex > 0) {
						getContent("lectionarysearch", "columntwo");
					}
				}
				if (document.frmSearch.theTradition.value == "LU") {
					for (var z=0; z< document.frmSearch.lutheran_week.length; z++)
					{
						//url+= "&rcl_week=" + document.frmSearch.rcl_week.options[document.frmSearch.rcl_week.selectedIndex].text;
						if ((document.frmSearch.lutheran_week.options[z].text == document.frmSearch.defaultLU.value)) {
							document.frmSearch.lutheran_week.selectedIndex = z;
						}
					}
					if (document.frmSearch.lutheran_week.selectedIndex > 0) {
						getContent("lectionarysearch", "columntwo");
					}
				}
			}
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
			document.frmSearch.currentCode.value="document.frmSearch.PageNum.value=1;getContent(putQuotelectionarysearchputQuote, putQuotecolumnAputQuote);";
			
			break;
		default:
			document.getElementById("theContentGoesHere").innerHTML = "Click link";
			document.getElementById("theOtherContentGoesHere").innerHTML = "";
			//document.getElementById("DictionaryPrint").innerHTML = "";
	}
		
}




var baseThirdBar = ""
baseThirdBar+= "<table border='0' bgcolor='#9F0000'  width='496' height='15' align='center' cellpadding='0' cellspacing='0'>";
baseThirdBar+= "<tr>";
baseThirdBar+= "<td class='thisWeekHeaderText' align='center'>&nbsp;&nbsp;</td>";
baseThirdBar+= "</tr>";
baseThirdBar+= "<tr>";
baseThirdBar+= "</table>";

var contentDictionaryInstructions ="<BR><table border=0 class=\"detailsText\"><tr><td>Please click on <B>\"Reveal Dictionary Terms\"</B> to the left of the printer icon. This will ";
contentDictionaryInstructions+= "reveal dictionary terms in the middle column. <BR><BR>Note this option will only be displayed once you are viewing a sermon ";
contentDictionaryInstructions+= "or illustration in the middle column.  <BR><BR>As you read the sermon click on the blue highlighted ";
contentDictionaryInstructions+= "words which have been revealed and the International Bible Dictionary's article on that term will ";
contentDictionaryInstructions+= "appear here in the this right hand column.</td></tr></table>";

var contentDictionaryInstructions2 ="<BR><table border=0 class=\"detailsText\"><tr><td>Before we can show you the International Bible Dictionary's article on any term, ";
contentDictionaryInstructions2+= "you will need to be viewing actual sermon or illustration content in the middle column.</td></tr></table>";

var contentDictionaryInstructions3 ="<BR><table border=0 class=\"detailsText\"><tr><td>We are having a problem showing International Bible Dictionary's article on that term. ";
contentDictionaryInstructions3+= "  Please try another term.</td></tr></table>";

var contentDictionaryPrint = "<table>";
contentDictionaryPrint+= "	<tr>";
contentDictionaryPrint+= "";
contentDictionaryPrint+= "		<td><a href=\"javascript:document.frmSearch.revealDictionary.value='Yes';getContent('detailedView', 'columnB');\">Reveal Dictionary Terms</a></td>";
contentDictionaryPrint+= "		<td>&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; </td>";
contentDictionaryPrint+= "		<td>";
contentDictionaryPrint+= "		&nbsp;<span class=\"style4\"><a href=\"javascript:printPage('all');void(0);\"><img src=\"images/tools_print.gif\" width=\"14\" height=\"13\" /></a>&nbsp; ";
contentDictionaryPrint+= "		<a href=\"javascript:printPage('all');void(0);\">Print All</a>&nbsp;·&nbsp;<a href=\"javascript:printPage('two');void(0);\">1st</a>&nbsp;·&nbsp;<a href=\"javascript:printPage('one');void(0);\">2nd</a>&nbsp;·&nbsp;<a href=\"javascript:printPage('three');void(0);\">3rd</a> </span></td>";
contentDictionaryPrint+= "";
contentDictionaryPrint+= "	</tr>";
contentDictionaryPrint+= "</table>";
//<img border='0' src='images/dots_transparentv2.gif' width='575' height='20'>";

var contentDictionaryPrint2 = "<table>";
contentDictionaryPrint2+= "	<tr>";
contentDictionaryPrint2+= "";
contentDictionaryPrint2+= "		<td><a href=\"javascript:document.frmSearch.revealDictionary.value='No';getContent('detailedView', 'columnB');\">Hide Dictionary Terms</a></td>";
contentDictionaryPrint2+= "		<td>&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; </td>";
contentDictionaryPrint2+= "		<td>";
contentDictionaryPrint2+= "		&nbsp;<span class=\"style4\"><a href=\"javascript:printPage('all');void(0);\"><img src=\"images/tools_print.gif\" width=\"14\" height=\"13\" /></a>&nbsp; ";
contentDictionaryPrint2+= "		<a href=\"javascript:printPage('all');void(0);\">Print All</a>&nbsp;·&nbsp;<a href=\"javascript:printPage('two');void(0);\">1st</a>&nbsp;·&nbsp;<a href=\"javascript:printPage('one');void(0);\">2nd</a>&nbsp;·&nbsp;<a href=\"javascript:printPage('three');void(0);\">3rd</a> </span></td>";
contentDictionaryPrint2+= "";
contentDictionaryPrint2+= "	</tr>";
contentDictionaryPrint2+= "</table>";
//<img border='0' src='images/dots_transparentv2.gif' width='575' height='20'>";

var contentHumorBar = "<table border=0 bgcolor='#000000'  width='496' align='center' cellspacing=0 cellpadding=5>";
contentHumorBar+= "<tr>";
contentHumorBar+= "<td id='buttonHumorIllustrations' align='center'><a class='theMasterNav' href = \"javascript:document.frmSearch.tocType.value='99';document.frmSearch.tocTypeSub.value='HumorIllustrations';document.frmSearch.whichFile.value='';document.frmSearch.theOtherType.value='illustrations';document.frmSearch.whichOne3.value='a';document.frmSearch.whichOne.value='Humor';setContent('HumorIllustrations');void(0);\" onMouseOver=\"setColorSubs('HumorIllustrations');window.status='Sermon Illustrations';return false;\" onMouseOut=\"setColorSubs('blank');window.status='';return false;\" >Illustrations</a></td>";
contentHumorBar+= "<td id='buttonHumorHumor' bgcolor='#990000' align='center'><a class='theMasterNav' href =\"javascript:document.frmSearch.tocType.value='99';document.frmSearch.tocTypeSub.value='HumorHumor';document.frmSearch.whichFile.value='';document.frmSearch.theOtherType.value='humor';document.frmSearch.whichOne3.value='a';document.frmSearch.whichOne.value='Humor';setContent('HumorList');void(0);\" onMouseOver=\"setColorSubs('HumorHumor');window.status='Humor';return false;\" onMouseOut=\"setColorSubs('blank');window.status='';return false;\">Humor</a></td>";
contentHumorBar+= "<td id='buttonHumorAuthor' align='center'><a class='theMasterNav' href = \"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.tocTypeSub.value='HumorAuthor';document.frmSearch.whichOne.value='Author';setContent('HumorAuthor');void(0);\" onMouseOver=\"setColorSubs('HumorAuthor');window.status='Author';return false;\" onMouseOut=\"setColorSubs('blank');window.status='';return false;\" >Authors</a></td>";
contentHumorBar+= "<td id='buttonHumorLectionary' align='center'><a class='theMasterNav' href = \"javascript:document.frmSearch.tocType.value='99';document.frmSearch.tocTypeSub.value='HumorLectionary';document.frmSearch.whichOne.value='Humor';setContent('HumorLectionary');void(0);\" onMouseOver=\"setColorSubs('HumorLectionary');window.status='Lectionary';return false;\" onMouseOut=\"setColorSubs('blank');window.status='';return false;\" >Lectionary</a></td>";
contentHumorBar+= "<td id='buttonHumorPPTs' align='center'><a class='theMasterNav' href = \"javascript:document.frmSearch.tocType.value='99';document.frmSearch.tocTypeSub.value='HumorPPTs';document.frmSearch.whichOne.value='Humor';setContent('HumorPPTs');void(0);\" onMouseOver=\"setColorSubs('HumorPPTs');window.status='King Duncans PPTs';return false;\" onMouseOut=\"setColorSubs('blank');window.status='';return false;\" >King's PPTs</a></td>";
contentHumorBar+= "</tr>";
contentHumorBar+= "</table>";

var contentSS = "OT:&nbsp;&nbsp;&nbsp;<select class='bible-search-select-box'name='scriptureBook' size='1' onChange='checkSearchScriptures(0, 1);'>";
contentSS+= "					<option value=''>- Select One -</OPTION>";
contentSS+= "					<OPTION>Genesis</OPTION>";
contentSS+= "					<OPTION>Exodus</OPTION>";
contentSS+= "					<OPTION>Leviticus</OPTION>";
contentSS+= "					<OPTION>Numbers</OPTION>";
contentSS+= "					<OPTION>Deuteronomy</OPTION>";
contentSS+= "					<OPTION>Joshua</OPTION>";
contentSS+= "					<OPTION>Judges</OPTION>";
contentSS+= "					<OPTION>Ruth</OPTION>";
contentSS+= "					<OPTION>1 Samuel</OPTION>";
contentSS+= "					<OPTION>2 Samuel</OPTION>";
contentSS+= "					<OPTION>1 Kings</OPTION>";
contentSS+= "					<OPTION>2 Kings</OPTION>";
contentSS+= "					<OPTION>1 Chronicles</OPTION>";
contentSS+= "					<OPTION>2 Chronicles</OPTION>";
contentSS+= "					<OPTION>Ezra</OPTION>";
contentSS+= "					<OPTION>Nehemiah</OPTION>";
contentSS+= "					<OPTION>Esther</OPTION>";
contentSS+= "					<OPTION>Job</OPTION>";
contentSS+= "					<OPTION>Psalms</OPTION>";
contentSS+= "					<OPTION>Proverbs</OPTION>";
contentSS+= "					<OPTION>Ecclesiastes</OPTION>";
contentSS+= "					<OPTION>Song of Solomon</OPTION>";
contentSS+= "					<OPTION>Isaiah</OPTION>";
contentSS+= "					<OPTION>Jeremiah</OPTION>";
contentSS+= "					<OPTION>Lamentations</OPTION>";
contentSS+= "					<OPTION>Ezekiel</OPTION>";
contentSS+= "					<OPTION>Daniel</OPTION>";
contentSS+= "					<OPTION>Hosea</OPTION>";
contentSS+= "					<OPTION>Joel</OPTION>";
contentSS+= "					<OPTION>Amos</OPTION>";
contentSS+= "					<OPTION>Obadiah</OPTION>";
contentSS+= "					<OPTION>Jonah</OPTION>";
contentSS+= "					<OPTION>Micah</OPTION>";
contentSS+= "					<OPTION>Nahum</OPTION>";
contentSS+= "					<OPTION>Habakkuk</OPTION>";
contentSS+= "					<OPTION>Zephaniah</OPTION>";
contentSS+= "					<OPTION>Haggai</OPTION>";
contentSS+= "					<OPTION>Zechariah</OPTION>";
contentSS+= "					<OPTION>Malachi</OPTION>";
contentSS+= "				</select>&nbsp;&nbsp;&nbsp;NT:&nbsp;&nbsp;&nbsp;<select class='bible-search-select-box' name='scriptureBook' size='1' onChange='checkSearchScriptures(1, 0);'>";
contentSS+= "					<option value=''>- Select One -</OPTION>";
contentSS+= "					<OPTION>Matthew</OPTION>";
contentSS+= "					<OPTION>Mark</OPTION>";
contentSS+= "					<OPTION>Luke</OPTION>";
contentSS+= "					<OPTION>John</OPTION>";
contentSS+= "					<OPTION>Acts</OPTION>";
contentSS+= "					<OPTION>Romans</OPTION>";
contentSS+= "					<OPTION>1 Corinthians</OPTION>";
contentSS+= "					<OPTION>2 Corinthians</OPTION>";
contentSS+= "					<OPTION>Galatians</OPTION>";
contentSS+= "					<OPTION>Ephesians</OPTION>";
contentSS+= "					<OPTION>Philippians</OPTION>";
contentSS+= "					<OPTION>Colossians</OPTION>";
contentSS+= "					<OPTION>1 Thessalonians</OPTION>";
contentSS+= "					<OPTION>2 Thessalonians</OPTION>";
contentSS+= "					<OPTION>1 Timothy</OPTION>";
contentSS+= "					<OPTION>2 Timothy</OPTION>";
contentSS+= "					<OPTION>Titus</OPTION>";
contentSS+= "					<OPTION>Philemon</OPTION>";
contentSS+= "					<OPTION>Hebrews</OPTION>";
contentSS+= "					<OPTION>James</OPTION>";
contentSS+= "					<OPTION>1 Peter</OPTION>";
contentSS+= "					<OPTION>2 Peter</OPTION>";
contentSS+= "					<OPTION>1 John</OPTION>";
contentSS+= "					<OPTION>2 John</OPTION>";
contentSS+= "					<OPTION>3 John</OPTION>";
contentSS+= "					<OPTION>Jude</OPTION>";
contentSS+= "					<OPTION>Revelation</OPTION>";
contentSS+= "				</select>&nbsp;&nbsp;&nbsp;Chapter:&nbsp;&nbsp;&nbsp;<input type='text' name='scriptureChapter' size='4' maxlength='4' class='bible-input-box' >";
contentSS+= "&nbsp;&nbsp;&nbsp;<a href=\"javascript:document.frmSearch.PageNum.value=1;getContent('scripturesearch', 'columnA');\" onClick=\"document.frmSearch.currentCode.value='document.frmSearch.PageNum.value=1;getContent(putQuotescripturesearchputQuote, putQuotecolumnAputQuote);'\"><img border='0' onMouseOver=\"this.src='images/bible-search-submit-button-over.jpg';\" onMouseOut=\"this.src='images/bible-search-submit-button.jpg';\" style='width:69px;height:19px;border:0;vertical-align:middle;' src='images/bible-search-submit-button.jpg' alt='Search' /></a>";

var contentLSNew= "		<table border='0'  width='496' align='center' cellspacing='0' class='second-nav-link'>";
contentLSNew+= "				<tr>";
contentLSNew+= "					<td align='center'><a id='buttonRCL' class='second-nav-link' href = \"javascript:document.frmSearch.theTradition.value='RCL';setContent('lectionarysearch');setColorLectionary('RCL');void(0);\" onMouseOver=\"setColorLectionary('RCL');window.status='Lectionary - Revised Common Search';return false;\" onMouseOut=\"window.status='';return false;\" >RCL</a>&nbsp;·</td>";
contentLSNew+= "					<td align='center'><a id='buttonRC' class='second-nav-link' href = \"javascript:document.frmSearch.theTradition.value='RC';setContent('lectionarysearch');setColorLectionary('RC');void(0);\" onMouseOver=\"window.status='Lectionary - Catholic Search';return false;\" onMouseOut=\"window.status='';return false;\" >RC</a>&nbsp;·</td>";
contentLSNew+= "					<td align='center'><a id='buttonEP' class='second-nav-link' href = \"javascript:document.frmSearch.theTradition.value='EP';setContent('lectionarysearch');setColorLectionary('EP');void(0);\" onMouseOver=\"window.status='Lectionary - Episcopal Search';return false;\" onMouseOut=\"window.status='';return false;\" >EP</a>&nbsp;·</td>";
contentLSNew+= "					<td align='center'><a id='buttonLC' class='second-nav-link' href = \"javascript:document.frmSearch.theTradition.value='LC';setContent('lectionarysearch');setColorLectionary('LC');void(0);\" onMouseOver=\"window.status='Lectionary - Lutheran Search';return false;\" onMouseOut=\"window.status='';return false;\" >LCMS</a>&nbsp;</td>";
contentLSNew+= "					<td align='center'><span id='theLectionaryHere'></span></td>";
contentLSNew+= "					<TD><FONT SIZE='2' FACE='Arial, Helvetica' color='#FFFFFF'><input type='RADIO' name='cycle' value='A' >A";
contentLSNew+= "<input type='RADIO' name='cycle' value='B' >B";
contentLSNew+= "<input type='RADIO' name='cycle' value='C'  checked >C</font></TD>";

//contentLSNew+= "					<TD align='right'><input type='button' name='Submit' value='Search' onClick=\"document.frmSearch.PageNum.value=1;getContent('lectionarysearch', 'columnA');\"></TD>";
contentLSNew+= "					<TD valign=bottom><a href=\"javascript:document.frmSearch.PageNum.value=1;getContent('lectionarysearch', 'columnA');\" onClick=\"document.frmSearch.currentCode.value='document.frmSearch.PageNum.value=1;getContent(putQuotelectionarysearchputQuote, putQuotecolumnAputQuote);';\" ><img border='0' onMouseOver=\"this.src='images/bible-search-submit-button-over.jpg';\" onMouseOut=\"this.src='images/bible-search-submit-button.jpg';\" style='width:69px;height:19px;border:0;' src='images/bible-search-submit-button.jpg' alt='Search' /></a></TD>";
contentLSNew+= "				</tr>";
contentLSNew+= "		</table>";

var contentLectionaryRCL= "					<select name='rcl_week' size='1' class='bible-search-select-box' >";
contentLectionaryRCL+= "						<option value=''>- Select One -</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Advent 1</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Advent 2</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Advent 3</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Advent 4</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Christmas, Proper 1</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Christmas, Proper 2</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Christmas, Proper 3</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Christmas 1</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Jan 1 - Holy Name of Jesus</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Jan 1 - On Sunday</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Christmas 2</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Baptism of the Lord</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 2</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 3</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 4</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 5</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 6</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 7</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 8</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Epiphany 9</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Transfiguration</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Ash Wednesday</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Lent 1</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Lent 2</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Lent 3</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Lent 4</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Lent 5</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Liturgy of the Palms</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Liturgy of the Passion</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Monday in Holy Week</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Tuesday in Holy Week</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Wednesday in Holy Week</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Holy Thursday</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Good Friday</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Holy Saturday</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter Vigil</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter Day</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter Evening</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter 2</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter 3</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter 4</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter 5</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter 6</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Ascension</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Easter 7</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Pentecost</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Trinity Sunday</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 3</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 4</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 5</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 6</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 7</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 8</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 9</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 10</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 11</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 12</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 13</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 14</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 15</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 16</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 17</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 18</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 19</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 20</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 21</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 22</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 23</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 24</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 25</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>All Saints</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 26</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 27</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Proper 28</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Thanksgiving Day</OPTION>";
contentLectionaryRCL+= "						<OPTION rclweek>Christ the King</OPTION>";
contentLectionaryRCL+= "						</select>";

var contentLectionaryEP= "						<select name='episcopal_week' size='1' class='bible-search-select-box' >";
contentLectionaryEP+= "						<OPTION value=''>- Select One -</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Advent 1</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Advent 2</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Advent 3</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Advent 4</optION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Christmas Day I</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Christmas Day II</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Christmas Day III</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Christmas 1</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>January 1 - Holy Name of Jesus</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Christmas 2</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 1 - Baptism</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 2</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 3</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 4</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 5</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 6</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 7</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Epiphany 8</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Transfiguration</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Ash Wednesday</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Lent 1</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Lent 2</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Lent 3</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Lent 4</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Lent 5</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Liturgy of the Palms</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Liturgy of the Word</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Monday of Holy Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Tuesday of Holy Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Wednesday of Holy Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Maundy Thursday</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Good Friday</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Holy Saturday</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter Day - Early Service</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter Day - Principle Service</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter Day - Evening Service</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Monday in Easter Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Tuesday in Easter Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Wednesday in Easter Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Thursday in Easter Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Friday in Easter Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Saturday in Easter Week</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter 2</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter 3</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter 4</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter 5</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter 6</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Ascension</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Easter 7</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Pentecost: Early Service</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Pentecost Principle Service</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Trinity Sunday</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 1</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 2</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 3</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 4</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 5</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 6</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 7</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 8</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 9</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 10</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 11</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 12</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 13</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 14</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 15</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 16</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 17</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 18</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 19</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 20</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 21</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 22</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 23</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 24</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 25</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>All Saints</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 26</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 27</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 28</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Thanksgiving Day</OPTION>";
contentLectionaryEP+= "						<OPTION episcopal_week>Proper 29 (Christ the King)</OPTION>";
contentLectionaryEP+= "						</select>";

var contentLectionaryRC= "						<select name='catholic_week' size='1' class='bible-search-select-box' >";
contentLectionaryRC+= "						<OPTION value=''>- Select One -</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Advent 1</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Advent 2</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Immaculate Conception</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Advent 3</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Advent 4</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Christmas Vigil</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Mass At Midnight</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Mass At Dawn</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Mass During The Day</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Christmas Octave: Holy Family</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Jan. 1 - Octave:  Mother of God</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Epiphany</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Baptism of the Lord</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 2</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 3</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 4</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 5</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 6</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 7</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 8</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ash Wednesday</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Lent 1</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Lent 2</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Lent 3</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Lent 4</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Lent 5</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Procession with Palms</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Lord's Passion</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Maundy Thursday</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Good Friday</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter Vigil</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter Sunday</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter 2</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter 3</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter 4</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter 5</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter 6</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ascension</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Easter 7</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Pentecost</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Trinity Sunday</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Corpus Christi</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 9</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 10</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 11</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 12</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 13</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 14</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 15</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 16</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 17</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 18</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 19</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Assumption of the Virgin Mary</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 20</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 21</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 22</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 23</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 24</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 25</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 26</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 27</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 28</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 29</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 30</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>All Saints</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 31</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 32</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Ordinary Time 33</OPTION>";
contentLectionaryRC+= "						<OPTION catholic_week>Christ the King</OPTION>";
contentLectionaryRC+= "						</select>";

var contentLectionaryLC= "						<select name='lutheran_week' size='1' class='bible-search-select-box' >";
contentLectionaryLC+= "						<OPTION value=''>- Select One -</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Advent 1</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Advent 2</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Advent 3</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Advent 4</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Christmas Eve</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Christmas Dawn</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Christmas Day</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Christmas 1</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Jan..   1 -   Circumcision of our Lord</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Christmas 2</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Baptism of the Lord</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 2</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 3</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 4</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 5</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 6</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 7</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Epiphany 8</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Transfiguration</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Ash Wednesday</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Lent 1</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Lent 2</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Lent 3</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Lent 4</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Lent 5</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Palm-Passion Sunday</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Monday of Holy Week</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Tuesday of Holy Week</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Wednesday of Holy Week</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Maundy Thursday</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Good Friday</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter Eve - Vespers</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter Day</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter Evening</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter 2</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter 3</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter 4</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter 5</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter 6</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Ascension</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Easter 7</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost Eve</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Holy Trinity</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 2</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 3</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 4</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 5</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 6</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 7</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 8</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 9</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 10</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 11</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 12</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 13</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 14</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 15</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 16</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 17</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 18</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 19</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 20</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 21</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 22</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 23</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>All Saints</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 24</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Pentecost 25</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>3rd Last Sunday</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>2nd Last Sunday</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Reformation Day</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Thanksgiving Day</OPTION>";
contentLectionaryLC+= "						<OPTION lutheran_week>Last Sunday (Christ The King)</OPTION>";
contentLectionaryLC+= "						</select>";


var contentKW= "		<table border='0' align='center' cellpadding=0 cellspacing=0>";
contentKW+= "				<TR>";
contentKW+= "					<TD><FONT SIZE='2' FACE='Arial, Helvetica' color='#FFFFFF'>Enter Keyword(s):</font>  <input class='bible-input-box' type='TEXT' name='txtKeywords' size='30' onKeyPress=\"return submitenter(this,event);\"></TD>";
contentKW+= "					<td>&nbsp;&nbsp;</td>";
contentKW+= "					<TD valign=\"bottom\"><a href=\"javascript:document.frmSearch.PageNum.value=1;checkOut();\" onClick=\"document.frmSearch.currentCode.value='document.frmSearch.PageNum.value=1;checkOut();'\" ><img border='0' onMouseOver=\"this.src='images/bible-search-submit-button-over.jpg';\" onMouseOut=\"this.src='images/bible-search-submit-button.jpg';\" style='width:69px;height:19px;border:0;' src='images/bible-search-submit-button.jpg' alt='Search' /></a></TD>";
contentKW+= "					<td>&nbsp;&nbsp;&nbsp;</td>";
contentKW+= "					<TD><input type='radio' name='whichSearch' value='fullSearch' onClick=\"BASFullText();\" checked><FONT SIZE='2' FACE='Arial, Helvetica' color='#FFFFFF'>Full Text</font>&nbsp;&nbsp;<input type='radio' name='whichSearch' value='titleSearch' ><FONT SIZE='2' FACE='Arial, Helvetica' color='#FFFFFF'>Title</font></TD>";
contentKW+= "				</TR>";
contentKW+= "			</table>";

var contentSERIESNew= "		<table border='0' align='center' cellpadding=0 cellspacing=0>";
contentSERIESNew+= "				<TR>";
contentSERIESNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSERIESNew+= "					<TD><font color='#FFFFFF' face='Arial, Helvetica, sans-serif' size='2'>Series Name:  </font></TD>";
contentSERIESNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSERIESNew+= "					<td><select class='bible-search-select-box' name='lectionarySeries' size='1'>";
contentSERIESNew+= "										<option value=''>- Select One -</OPTION>";
contentSERIESNew+= "										<option value='' 1>Coming Soon</OPTION>";
contentSERIESNew+= "										</select></td>";
contentSERIESNew+= "					<TD>&nbsp;&nbsp;</TD>";
//contentSERIESNew+= "					<TD><input type='button' name='Submit' onClick=\"document.frmSearch.PageNum.value=1;document.frmSearch.thelectionarySeries.value=document.frmSearch.lectionarySeries.options[document.frmSearch.lectionarySeries.selectedIndex].value;getContent('seriesA', 'Two');void(0);\" value='Search' </TD>";
contentSERIESNew+= "					<TD valign=bottom><a href=\"javascript:document.frmSearch.PageNum.value=1;document.frmSearch.thelectionarySeries.value=document.frmSearch.lectionarySeries.options[document.frmSearch.lectionarySeries.selectedIndex].value;getContent('seriesA', 'Two');void(0);\" onClick=\"document.frmSearch.currentCode.value='document.frmSearch.PageNum.value=1;document.frmSearch.thelectionarySeries.value=document.frmSearch.lectionarySeries.options[document.frmSearch.lectionarySeries.selectedIndex].value;getContent(putQuoteseriesAputQuote, putQuoteTwoputQuote);void(0);'\"><img border='0' onMouseOver=\"this.src='images/bible-search-submit-button-over.jpg';\" onMouseOut=\"this.src='images/bible-search-submit-button.jpg';\" style='width:69px;height:19px;border:0;' src='images/bible-search-submit-button.jpg' alt='Search' /></a></TD>";
contentSERIESNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSERIESNew+= "				</TR>";
contentSERIESNew+= "			</table>";


var contentSDNew= "		<table border='0'  align='center' cellpadding=0 cellspacing=0>";
contentSDNew+= "				<TR>";
contentSDNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSDNew+= "					<TD><font color='#FFFFFF' face='Arial, Helvetica, sans-serif' size='2'>Special Days:  </font></TD>";
contentSDNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSDNew+= "					<td><select class='bible-search-select-box' name='lectionarySeries' size='1'>";
contentSDNew+= "										<option value=''>- Select One -</OPTION>";
contentSDNew+= "										<option value='' 4>Coming Soon</OPTION>";
contentSDNew+= "										</select></td>";
contentSDNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSDNew+= "					<TD valign=bottom><a href=\"javascript:document.frmSearch.PageNum.value=1;document.frmSearch.thelectionarySeries.value=document.frmSearch.lectionarySeries.options[document.frmSearch.lectionarySeries.selectedIndex].value;getContent('seriesASD', 'Two');void(0);\" onClick=\"document.frmSearch.currentCode.value=''\"><img border='0' onMouseOver=\"this.src='images/bible-search-submit-button-over.jpg';\" onMouseOut=\"this.src='images/bible-search-submit-button.jpg';\" style='width:69px;height:19px;border:0;' src='images/bible-search-submit-button.jpg' alt='Search' /></a></TD>";
//contentSDNew+= "					<TD><input type='button' name='Submit' onClick=\"document.frmSearch.PageNum.value=1;document.frmSearch.thelectionarySeries.value=document.frmSearch.lectionarySeries.options[document.frmSearch.lectionarySeries.selectedIndex].value;getContent('seriesASD', 'Two');void(0);\" value='Search' </TD>";
contentSDNew+= "					<TD>&nbsp;&nbsp;</TD>";
contentSDNew+= "				</TR>";
contentSDNew+= "			</table>";

//menuA = "&nbsp;<a href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='1';getContentA();\" class=\"second-nav-link\">Sermon</a><BR>";
var menuA = "&nbsp;<a id='buttonAillustrations' href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='2';document.frmSearch.columnAMenuOption.value='illustrations';setColorsColA('illustrations');getContentA();\" class=\"second-nav-link\">Illustrations</a><BR>";
menuA+= "&nbsp;<a id='buttonAillustrationsSweet' href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='2Sweet';document.frmSearch.columnAMenuOption.value='illustrationsSweet';setColorsColA('illustrationsSweet');getContentA();\" class=\"second-nav-link\">Illustrations - Len Sweet</a><BR>";
menuA+= "&nbsp;<a id='buttonAabingdon' href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='26';document.frmSearch.columnAMenuOption.value='abingdon';setColorsColA('abingdon');getContentA();\" class=\"second-nav-link-On\">Abingdon Commentary</a><BR>";
menuA+= "&nbsp;<a id='buttonAinterpreters' href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='21';document.frmSearch.columnAMenuOption.value='interpreters';setColorsColA('interpreters');getContentA();\" class=\"second-nav-link\">Interpreter's Commentary</a><BR>";
menuA+= "&nbsp;<a id='buttonAlectionary' href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='18';document.frmSearch.columnAMenuOption.value='lectionary';setColorsColA('lectionary');getContentA();\" class=\"second-nav-link\">Lectionary Commentary</a><BR>";
menuA+= "&nbsp;<a id='buttonAlenSweet' href=\"javascript:document.frmSearch.theA1PageNumber.value='1';document.frmSearch.columnAType.value='23';document.frmSearch.columnAMenuOption.value='lenSweet';setColorsColA('lenSweet');getContentA();\" class=\"second-nav-link\">Len Sweet's Commentary</a><BR>";
menuA+= "&nbsp;<a id='buttonAdictionary' href=\"javascript:document.frmSearch.columnAType.value='99';document.frmSearch.columnAMenuOption.value='dictionary';setColorsColA('dictionary');getDictionary();\" class=\"second-nav-link\">Dictionary</a><BR>";
menuA+= "<br><hr align='center' color='#ffffff' width='85%'>";

var menuC = "<div align='right'><a id='buttonCscripture' href=\"javascript:document.frmSearch.theC1PageNumber.value='1';document.frmSearch.fncBibleNumber.value=document.frmSearch.masterBibleCode.value;document.frmSearch.columnCType.value='99';document.frmSearch.columnCMenuOption.value='scripture';setColorsColC('scripture');getScripture();\" class=\"second-nav-link-On\">Scripture</a>&nbsp;<BR>";
//menuC+= "<a href=\"javascript:document.frmSearch.columnCType.value='99';getDictionary();\" class=\"second-nav-link\">Dictionary</a>&nbsp;&nbsp;<BR>";
menuC+= "<a id='buttonCbulletinAid' href=\"javascript:document.frmSearch.theC1PageNumber.value='1';document.frmSearch.columnCType.value='7';document.frmSearch.columnCMenuOption.value='bulletinAid';setColorsColC('bulletinAid');getContentC();\" class=\"second-nav-link\">Bulletin Aid</a>&nbsp;<BR>";
menuC+= "<a id='buttonClectionaryAid' href=\"javascript:document.frmSearch.theC1PageNumber.value='1';document.frmSearch.columnCType.value='4';document.frmSearch.columnCMenuOption.value='lectionaryAid';setColorsColC('lectionaryAid');getContentC();\" class=\"second-nav-link\">Lectionary Aid</a>&nbsp;<BR>";
menuC+= "<a id='buttonCthisWeek' href=\"javascript:document.frmSearch.theC1PageNumber.value='1';document.frmSearch.columnCType.value='99';document.frmSearch.columnCMenuOption.value='thisWeek';setColorsColC('thisWeek');getTWT();\" class=\"second-nav-link\">This Week's Text</a>&nbsp;<BR>";
menuC+= "<a id='buttonCchildrensSermon' href=\"javascript:document.frmSearch.theC1PageNumber.value='1';document.frmSearch.columnCType.value='3';document.frmSearch.columnCMenuOption.value='childrensSermon';setColorsColC('childrensSermon');getContentC();\" class=\"second-nav-link\">Children's Sermon</a>&nbsp;<BR>";
menuC+= "<a id='buttonCdrama' href=\"javascript:document.frmSearch.theC1PageNumber.value='1';document.frmSearch.columnCType.value='5';document.frmSearch.columnCMenuOption.value='drama';setColorsColC('drama');getContentC();\" class=\"second-nav-link\">Drama</a>&nbsp;<BR>";
menuC+= "&nbsp;<br>";
menuC+= "</div><br><hr align='center' color='#ffffff' width='85%'>";
//menuC+= "<a href=\"javascript:javascript:document.frmSearch.tutorialStep.value='1';getTutorial();void(0);;\" class=\"topMenu\">Tutorial</a><BR>";

var menuSorry25 = "<p align='center'><B>Sorry but this option is not available for the 'Dictionary' search.</B></p>";


var subMenuItems = new Array;


		

subMenuItems[0] = "  ·  ";
subMenuItems[1] = "<a id='buttonscripturesearch' href=\"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.searchType.value='Scripture Search';document.frmSearch.whichTheOne.value='scripturesearch';setContent('scripturesearch');cancelCheckTWFP();setColors('scripturesearch');void(0);\" class='second-nav-link'>Scripture</a>";
subMenuItems[2] = "<a id='buttonlectionarysearch' href=\"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.searchType.value='Lectionary Search';document.frmSearch.whichTheOne.value='lectionarysearch';setContent('lectionarysearch');cancelCheckTWFP();setColors('lectionarysearch');void(0);\" class='second-nav-link'>Lectionary</a>";
subMenuItems[3] = "<a id='buttonquicksearch' href=\"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.searchType.value='Keyword Search';document.frmSearch.whichTheOne.value='quicksearch';setContent('quicksearch');cancelCheckTWFP();setColors('quicksearch');void(0);\" class='second-nav-link'>Keyword</a>";
subMenuItems[4] = "<a id='buttonThisWeek' href=\"javascript:if ((document.frmSearch.tocType.value=='99') || (document.frmSearch.tocType.value=='25')) {document.frmSearch.tocType.value='1'};document.frmSearch.whichTheOne.value='ThisWeek';document.frmSearch.weekly_id.value='';setContent('ThisWeek');setColors('ThisWeek');cancelCheckTWFP();void(0);\" class='second-nav-link'>This Week</a>";
subMenuItems[5] = "<a id='buttonAuthor' href=\"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.tocTypeSub.value='HumorAuthor';document.frmSearch.whichTheOne.value='Author';document.frmSearch.whichOne.value='Author';setContent('HumorAuthor');setColors('Author');void(0);\" class='second-nav-link'>Author</a>";
subMenuItems[6] = "<a id='buttonseries' href=\"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.whichTheOne.value='series';setContent('series');cancelCheckTWFP();setColors('series');void(0);\" class='second-nav-link'>Series</a>";
subMenuItems[7] = "<a id='buttonspecialdays' href=\"javascript:if (document.frmSearch.tocType.value=='99') {document.frmSearch.tocType.value='1'};document.frmSearch.whichTheOne.value='specialdays';setContent('seriesSD');cancelCheckTWFP();setColors('specialdays');void(0);\" class='second-nav-link'>Special Days</a>";
subMenuItems[8] = "<a id='tocType6' href=\"sampleEulogies.asp\" onclick=\"document.frmSearch.tocType.value='6';setColorsTOC('6');void(0);\" class='second-nav-link'>Eulogies</a>";
subMenuItems[9] = "<a id='buttonillustrations' href=\"javascript:document.frmSearch.tocType.value='90';document.frmSearch.tocTypeSub.value='HumorIllustrations';document.frmSearch.whichFile.value='';document.frmSearch.theOtherType.value='illustrations';document.frmSearch.whichOne3.value='a';document.frmSearch.whichOne.value='Humor';setContent('HumorIllustrations');document.frmSearch.whichTheOne.value='illustrations';setColors('illustrations');void(0);\"  class='second-nav-link'>Illustration A-Z List</a>";
subMenuItems[10] = "<a id='buttonHumor' href=\"javascript:document.frmSearch.tocType.value='91';document.frmSearch.tocTypeSub.value='HumorHumor';document.frmSearch.whichFile.value='';document.frmSearch.theOtherType.value='humor';document.frmSearch.whichOne3.value='a';document.frmSearch.whichOne.value='Humor';document.frmSearch.whichTheOne.value='Humor';setContent('HumorList');setColors('Humor');void(0);\" class='second-nav-link'>Humor A-Z</a>";
subMenuItems[11] = "<a id='tocType26' href=\"sampleCommentaries.asp\" onclick=\"document.frmSearch.tocType.value='26';setColorsTOC('26');void(0);\" class='second-nav-link'>Abingdon</a>";
subMenuItems[12] = "<a id='tocType21' href=\"sampleCommentaries.asp?theType=Interpreters\" onclick=\"document.frmSearch.tocType.value='21';setColorsTOC('21');void(0);\" class='second-nav-link'>Interpreters</a>";
subMenuItems[13] = "<a id='tocType18' href=\"sampleCommentaries.asp?theType=Lectionary\" onclick=\"document.frmSearch.tocType.value='18';setColorsTOC('18');void(0);\" class='second-nav-link'>Lectionary</a>";
subMenuItems[14] = "<a id='tocType23' href=\"sampleCommentaries.asp?theType=Sweet\" onclick=\"document.frmSearch.tocType.value='23';setColorsTOC('23');void(0);\" class='second-nav-link'>Len Sweet</a>";
subMenuItems[15] = "<a href='#' class='second-nav-link-On'>A-Z List</a> (An alphabetical list of biblical topics from Abingdon's 5 Vol. Biblical Dictionary is listed below)</a>";
subMenuItems[16] = "<a id='tocType3' href=\"sampleChildrensSermons.asp\" onclick=\"document.frmSearch.tocType.value='3';setColorsTOC('3');void(0);\" class='second-nav-link'>Sermons</a>";
subMenuItems[17] = "<a id='tocType20' href=\"sampleChildrenBulletins.asp\" onclick=\"document.frmSearch.tocType.value=20;setColorsTOC('20');getCB();void(0);\" class='second-nav-link'>Bulletins</a>";
subMenuItems[18] = "<a id='buttonshowAll' href=\"javascript:setColors('showAll');void(0);\" class='second-nav-link'>Show All</a>";
subMenuItems[19] = "<a id='tocType4' href=\"sampleLectionaryAids.asp\" onclick=\"document.frmSearch.tocType.value='4';setColorsTOC('4');void(0);\" class='second-nav-link'>Sermon Aid</a>";
subMenuItems[20] = "<a id='tocType7' href=\"sampleBulletinAids.asp\" onclick=\"document.frmSearch.tocType.value='7';setColorsTOC('7');void(0);\" class='second-nav-link'>Bulletin Aid</a>";
subMenuItems[21] = "<a id='theBibleNIV' href=\"javascript:document.frmSearch.defaultBible.value='NIV';setColorsBible('NIV');void(0);\" class='second-nav-link'>NIV</a>";
subMenuItems[22] = "<a id='theBibleRSV' href=\"javascript:document.frmSearch.defaultBible.value='RSV';setColorsBible('RSV');void(0);\" class='second-nav-link'>RSV</a>";
subMenuItems[23] = "<a id='theBibleASV' href=\"javascript:document.frmSearch.defaultBible.value='ASV';setColorsBible('ASV');void(0);\" class='second-nav-link'>ASV </a>";
subMenuItems[24] = "<a id='theBibleKJV' href=\"javascript:document.frmSearch.defaultBible.value='KJV';setColorsBible('KJV');void(0);\" class='second-nav-link'>KJV</a>";
subMenuItems[25] = "<a id='theBiblePAR' href=\"javascript:document.frmSearch.defaultBible.value='PAR';setColorsBible('PAR');void(0);\"class='second-nav-link'>Parallel All</a>";

subMenuItems[26] = "<a id='tocType22' href=\"samplePowerPoints.asp\" onclick=\"document.frmSearch.tocType.value='22';setColorsTOC('22');void(0);\" class='second-nav-link'>Powerpoints</a>";
subMenuItems[27] = "<a id='tocType27' href=\"sampleVideos.asp\"  onclick=\"document.frmSearch.tocType.value='27';setColorsTOC('27');void(0);\" class='second-nav-link'>Videos</a>";
subMenuItems[28] = "<a id='tocType1' href=\"sampleSermons.asp\" onclick=\"document.frmSearch.tocType.value='1';setColorsTOC('1');void(0);\" class='second-nav-link'>Sermons</a>";


subMenuItems[29] = "<a id='tocType30' href=\"samplePowerPoints.asp\" onclick=\"document.frmSearch.tocType.value='30';setColorsTOC('30');void(0);\" class='second-nav-link'>Powerpoints</a>";
subMenuItems[30] = "<a id='tocType31' href=\"sampleSplashScreens.asp\" onclick=\"document.frmSearch.tocType.value='31';setColorsTOC('31');void(0);\" class='second-nav-link'>Splash Screens</a>";
subMenuItems[31] = "<a id='tocType32' href=\"sampleMotionBackgrounds.asp\" onclick=\"document.frmSearch.tocType.value='32';setColorsTOC('32');void(0);\" class='second-nav-link'>Motion Backgrounds</a>";


subMenuItems[100] = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
subMenuItems[101] = "<span class='main-nav-drop-down-main'>Find Sermons By:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[102] = "<span class='main-nav-drop-down-main'>Find Illustrations By:&nbsp;&nbsp;&nbsp;</span>"
subMenuItems[103] = "<span class='main-nav-drop-down-main'>Choose Commentary:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[104] = "<span class='main-nav-drop-down-main'>Search Method:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[105] = "<span class='main-nav-drop-down-main'>Search the Dictionary By:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[106] = "<span class='main-nav-drop-down-main'>Find Powerpoints By:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[107] = "<span class='main-nav-drop-down-main'>Find Videos By:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[108] = "<span class='main-nav-drop-down-main'>Find Archeology Articles By:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[109] = "<span class='main-nav-drop-down-main'>Choose Resource:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[110] = "<span class='main-nav-drop-down-main'>Choose Type:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[111] = "<span class='main-nav-drop-down-main'>Find Dramas By:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[112] = "<span class='main-nav-drop-down-main'>The Ling Group is a Preferred Partner for Stewardship Resources.  </span>";
subMenuItems[113] = "<span class='main-nav-drop-down-main'>Choose Translation:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[114] = "<span class='main-nav-drop-down-main'>Choose Method:&nbsp;&nbsp;&nbsp;</span>";
subMenuItems[115] = "<span class='main-nav-drop-down-main'>Choose Children's Resource:&nbsp;&nbsp;&nbsp;</span>";

subMenuItems[116] = "<span class='main-nav-drop-down-main'>Choose Type:&nbsp;&nbsp;&nbsp;</span>";

subMenuItems[200] = "";

var scriptureInstructions = "116,28,0,8,200,104,1,0,2,0,3,0,5,0,6,0,7,0,8";
var illustrationInstructions = "102,1,0,2,0,3,0,5,0,9,0,10";
var commentaryInstructions = "103,11,0,12,0,13,0,14,100,104,1,0,2,0,3";
var dictionaryInstructions = "105,15";
var powerpointInstructions = "110,106,1,0,2,0,3";
var videoinstructions = "107,1,0,2,0,3";
var archaeologyInstructions = "108,1,0,2,0,3";

var childrensInstructions = "115,16,0,17,0,100,104,1,0,2,0,3,0,5";
var worshipAidsInstructions = "110,19,0,20,0,100,104,1,0,2,0,3,0,5";
var dramaInstructions = "111,1,0,2,0,3,0,5,0,18";

var instructions = new Array;

instructions[1] = "116,28,0,8,200,100,104,1,0,2,0,3,0,5,0,6,0,7";
instructions[6] = "116,28,0,8,200,100,104,1,0,2,0,3,0,5,0,6,0,7";

instructions[101] = "101,1,0,2,0,3,0,5,0,6,0,7,0,8";
instructions[2] = "102,1,0,2,0,3,0,5,0,9,0,10";

instructions[26] = "103,11,0,12,0,13,0,14,100,104,1,0,2,0,3";
instructions[21] = "103,11,0,12,0,13,0,14,100,104,1,0,2,0,3";
instructions[18] = "103,11,0,12,0,13,0,14,100,104,1,0,2,0,3";
instructions[23] = "103,11,0,12,0,13,0,14,100,104,1,0,2,0,3";


instructions[25] = "105,15";
instructions[22] = "110,26,0,27,200,100,104,1,0,2,0,3";
instructions[27] = "110,29,0,31,0,30,0,27,200,100,104,1,0,2,0,3";

instructions[30] = "110,29,0,31,0,30,0,27,200,100,104,1,0,2,0,3";
instructions[31] = "110,29,0,31,0,30,0,27,200,100,104,3";
instructions[32] = "110,29,0,31,0,30,0,27,200,100,104,3";


instructions[24] = "108,1,0,2,0,3";

instructions[3] = "115,16,0,17,200,100,104,1,0,2,0,3,0,5";
instructions[20] = "115,16,0,17,200,100,104,1,0,2,0,3,0,5";

instructions[4] = "110,19,0,20,200,100,104,1,0,2,0,3,0,5";
instructions[7] = "110,19,0,20,200,100,104,1,0,2,0,3,0,5";

instructions[5] = "111,1,0,2,0,3,0,5,0,18";

instructions[101] = "200";
instructions[102] = "200";
instructions[103] = "200";

function buildInstructions(tempID)
{
	var tempString = instructions[tempID];
	var arrayItems = tempString.split(",");
	var theString = "";
	
	for (var i = 0; i < arrayItems.length; i++) {
		theString += subMenuItems[arrayItems[i]];
	}
	
	//alert(theString)
	return theString;
}
function loadSearch(tempID)
{

	document.getElementById("theForm").innerHTML = pageForm;
	
	switch(tempID)
	{
		case "1":
			document.frmSearch.tocType.value=1;
			setColorTop(1);
			setColorsTOC(1);
			setColors('xx')
			
			break;
		
		case "2":
			//alert("here")
			document.frmSearch.tocType.value=2;
			setColorTop(2);
			setColorsTOC(2);
			
			setColors('xx');
			
			break;
		
		case "6":
			document.frmSearch.tocType.value=6;
			setColorTop(1);
			setColorsTOC(6);
			setColors('xx')
			
			break;
		case "26":
			document.frmSearch.tocType.value=26;
			setColorTop(26);
			setColorsTOC('26');
			setColors('xx');
			
			break;
		case "21":
			document.frmSearch.tocType.value=21;
			setColorTop(26);
			setColorsTOC('21');
			setColors('xx');
			
			break;
		case "18":
			document.frmSearch.tocType.value=18;
			setColorTop(26);
			setColorsTOC('18');
			setColors('xx');
			
			break;
		case "23":
			document.frmSearch.tocType.value=23;
			setColorTop(26);
			setColorsTOC('23');
			setColors('xx');
			
			break;
			
		case "25":
			document.frmSearch.tocType.value=25;
			setColorTop(25);
			setColors('xx');
			
			break;
		
		case "24":
			document.frmSearch.tocType.value=24;
			setColorTop(24);
			setColorsTOC('24');
			setColors('xx');
			
			break;
		case "27":
			document.frmSearch.tocType.value=27;
			setColorTop(27);
			setColorsTOC('27');
			setColors('xx');
			
			break;
			
		case "22":
			document.frmSearch.tocType.value=22;
			setColorTop(22);
			setColorsTOC('22');
			setColors('xx');
			
			break;
		
		case "29":
			document.frmSearch.tocType.value=30;
			setColorTop(30);
			setColorsTOC('30');
			setColors('xx');
			
			break;
		case "30":
			document.frmSearch.tocType.value=31;
			setColorTop(31);
			setColorsTOC('31');
			setColors('xx');
			
			break;
		case "31":
			document.frmSearch.tocType.value=32;
			setColorTop(32);
			setColorsTOC('32');
			setColors('xx');
			
			break;
		case "4":
			document.frmSearch.tocType.value=4;
			setColorTop(4);
			setColorsTOC('4');
			setColors('xx');
			
			break;
		
		case "7":
			document.frmSearch.tocType.value=7;
			setColorTop(4);
			setColorsTOC('7');
			setColors('xx');
			
			break;
			
		case "5":
		
			document.frmSearch.tocType.value=5;
			setColorTop(5);
			setColors('xx');
			break;
			
		case "3":
			document.frmSearch.tocType.value=3;
			setColorTop(3);
			setColorsTOC('3');
			setColors('xx');
			
			break;
		case "20":
			document.frmSearch.tocType.value=20;
			setColorTop(20);
			setColorsTOC('20');
			setColors('xx');
			
			break;
			
		case "29":
		
			
			break;
			
		case "102":
			document.frmSearch.tocType.value=102;
			setColorTop(102);
			setColors('xx');
			
			break;
		case "103":
			document.frmSearch.tocType.value=103;
			setColorTop(103);
			setColors('xx');
			
			break;	
	}
}
function cancelCheckTWFP()
{

}
