bugImage = 3; searchBox = 0; x = 119; bugCS = 100; var searchBot = ""; divCode = "<style>"; divCode += "#etbBug { width:" + x + "px; font-size:12px!important; line-height: 12px!important; background-color:#E4BF47; padding-bottom:5px; margin-top:10px; margin-bottom:10px; display:block; font-family: Arial, Helvetica, sans-serif!important; font-size: 12px!important; line-height: 12px!important; }"; divCode += "#etbBug input { padding-top:2px!important; height:16px!important; border: 1px solid #174171!important; width: 60%!important; vertical-align:top!important;}"; divCode += "</style>"; divCode += "<div id='etbBug'>"; var bugCode = '<a href="http://www.enterthebible.org/">'; bugCode += '<img src="http://www.enterthebible.org/masters/assets/etb/bugs/bug' + bugImage + '-' + bugCS + '.gif" width="' + x + 'px" border="0" alt="Enter the Bible from Luther Seminary" />'; bugCode += '</a>'; searchTerm = ""; if (searchBox) { searcLocal = "http://www.enterthebible.org/Bible.aspx?search="; searchBot = "<div id='ETBSearchArea' style='display:block; text-align:center; margin: 7px 4% 7px; 4%;padding:2%; background-color:#F7F0BF;' >"; searchBot += "<form id='ETBForm' action='#' style='margin:0px!important;padding:0px!important;' >"; searchBot += "<input id='searchETB' type='text' onfocus='this.value=\"\";' onkeypress='{if (event.keyCode==13) {window.location = \"http://www.enterthebible.org/Bible.aspx?search=\" + document.getElementById(\"searchETB\").value; return false;}}' value='Search' style='width: 60%; border: 1px solid #174171; padding: 0px 4px 0px 4px!important; margin:0px!important; height:19px!important; vertical-align:top!important; font-family: Arial, Helvetica, sans-serif!important; font-size: 12px!important; line-height: 12px!important;' />"; searchBot += "<a href='#' onclick='window.location = \"http://www.enterthebible.org/search.aspx?q=\" + document.getElementById(\"searchETB\").value + \"&cx=001947499050786061073:0hfrnxdbpc4&cof=FORID:10&ie=utf-8&oe=utf-8&search_domain=WWW#960\";' ;'><img src='http://www.enterthebible.org/masters/assets/images/sArrow.gif' style='margin-left:0px;margin-top:0px;' width='21px' height='21px' /></a>"; searchBot += "</form>"; searchBot += "</div>"; } bugCode = divCode + bugCode + searchBot + "</div>"; bugCode = bugCode.replace(/</g, "<"); bugCode = bugCode.replace(/>/g, ">"); document.write(bugCode);