var p1=new Image();
p1.src="img-lb/search-focus.gif";
var p2=new Image();
p2.src="img-lb/go-over.gif";

function menu() {
	document.write("		<table background=\"http://www.livingbold.net/img-lb/subpage_08.gif\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
	document.write("		<tr>");
	document.write("		<td>");
	document.write("			<br>");
	document.write("			<br>");
	document.write("			<table width=\"95%\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" background=\"images/transp.gif\">");
	document.write("			<!-- this table needs a transparent background to look right in NN 4.x -->");
	document.write("				<tr><td class=\"menu\" align=\"right\"><i><a href=\"http://www.livingbold.net\">home</a></i></td></tr>");
	document.write("				<tr><td class=\"menu\" align=\"right\"><i><a href=\"http://www.livingbold.net/articles/arch-articles-topic.html\">articles</a></i></td></tr>");
	document.write("				<tr><td class=\"menu\" align=\"right\"><i><a href=\"http://www.livingbold.net/newsletters/archive/arch-links.html\">bold links</a></i></td></tr>");
	document.write("				<tr><td class=\"menu\" align=\"right\"><i><a href=\"http://www.wels.net/cgi-bin/csGuestbook/csGuestbook.cgi?database=LivingBold.db&command=view\">guestbook</a></i></td></tr>");
	document.write("				<tr><td class=\"menu\" align=\"right\"><i><a href=\"http://www.livingbold.net/arch-polls.shtml\">polls</a></i></td></tr>");
	document.write("				<tr><td class=\"menu\" align=\"right\"><i><a href=\"http://www.livingbold.net/contact.shtml\">contact us</a></i></td></tr>");
	document.write("            </table>");
	document.write("			<br>");
	document.write("			<br>");
	document.write("			<br>");
	document.write("			<br>");
	document.write("		</td>");
	document.write("		</tr>");
	document.write("		</table>");
}

function recent_articles() {
	document.writeln("<div style=\"width:154px\">");
	document.writeln("<h3>Have you read these articles...</h3>");
	document.writeln("<ul class=text>");
document.writeln("<li><a href=\"http://www.livingbold.net/articles/lb021202a.html\">How do I know that Jesus rose from the dead?</a></li>");
document.writeln("<li><a href=\"http://www.livingbold.net/articles/lb021118a.html\">If God is for Us</a></li>");
document.writeln("<li><a href=\"http://www.livingbold.net/articles/lb021230b.html\">War and our Government</a></li>");
document.writeln("<li><a href=\"http://www.livingbold.net/articles/lb021230a.html\">2 Peter 1 #4 - Leave the Edge and Move to Solid Ground</a></li>");
	document.writeln("</ul></div>");
	document.writeln("<br>"); }

function lb_copyright() {
//document.writeln("<div class=text>");
//document.writeln("<i>LivingBold</i> is sponsored by the <a href=\"http://www.wels.net/sab/frm-cyd.html\">Commission on Youth Discipleship</a> (CYD)<br> of the <a href=\"http://www.wels.net\">Wisconsin Evangelical Lutheran Synod</a> (WELS).");
//document.writeln("</div>");
}

// original code by Bill Trefzger 12/12/96
function go1(){
	if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
		location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
	}
}

function mix(text) {
	var newtext = "";

	for (var i = 0; i < text.length; i++){
		newtext += "<font size=" + Math.round(Math.random()*3 + 3) + "px>";

		if (Math.round(Math.random()))
			newtext += (text.charAt(i)).toUpperCase();
		else
			newtext += text.charAt(i);
		newtext += "</font>";
	}
	document.write(newtext);
}


function print() {
	var printlink = "<a target=\"_blank\" href=\"http://www.livingbold.net/cgi-bin/print.cgi?";
	printlink += document.location.pathname + "\">";
	document.write(printlink + "View a better version to print out</a>");
}

function homepage() {
	// This script and many more are available free online at 
	// The JavaScript Source!! http://javascript.internet.com 
	
	// If it's Internet Explorer, use automatic link
	// Be sure to change the "http://www.YourWebSiteHere.com\"
	// to the URL you want them to bookmark.
	if (document.all){
	  document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'' + document.location + '\');" onMouseOver=" window.status=\'Make this page your Home Page\'; return true" onMouseOut="window.status=\' \'; return true ">');
	  document.write('Make this page your Home Page</a>');
	}
	
	// If it's Netscape 6, tell user to drag link onto Home button
	else if (document.getElementById){
	  document.write('<a href="'+document.location+'">Drag this link onto your Home button to make this your Home Page.</a>');
	}
	
	// If it's Netscape 4 or lower, give instructions to set Home Page
	else {
	  document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
	}
}


function bookmark() {
	// This script and many more are available free online at
	// The JavaScript Source!! http://javascript.internet.com 

	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

	var url = document.location;
	var title = "LivingBold";
	
	document.write('<A HREF="javascript:window.external.AddFavorite(\''+url+'\',\''+title+'\');" onMouseOver=" window.status=\'Add this page to your favorites\'; return true" onMouseOut="window.status=\' \'; return true ">Add this page to your favorites</a>');
	}
	else {
	var msg = "<b>Bookmark this page!";
	if(navigator.appName == "Netscape") msg += "  (CTRL-D)</b";
	document.write(msg);
	}
}

function ad() {

var num = 4; /* total number of ads available */
var adnum = (Math.round(Math.random()*(--num)));
num = 0;

if (adnum == num) {
	/* Bible Stories in Pictures */
	document.write("		<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">");
	document.write("		<tr><td align=\"center\" bgcolor=\"#DDDDDD\" style=\"border-color:black\">");
	document.write("		<p class=\"text\">Read Bible stories like a comic book</p>");
	document.write("		<a href=\"http://www.wels.net/sab/cyd/picaday/picaday.html\" target=\"_blank\"><img src=\"http://www.wels.net/sab/cyd/picaday/imgs/bibstry.gif\" alt=\"Go to Bible Stories in pictures\" width=\"101\" height=\"36\" hspace=\"0\" vspace=\"0\" border=\"0\"></a>");
	document.write("		<p class=\"text\">There\'s a new picture for every day of the year!</p>");
	document.write("		</td></tr>");
	document.write("		</table>");
	} else if (adnum == ++num) {
	/* @WELS Email */
	document.write("		<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">");
	document.write("		<tr><td align=\"center\" bgcolor=\"#ffddff\">");
	document.write("		<p class=\"text\">Get your FREE web email account!</p>");
	document.write("		<a href=\"http://www.wels.net/webmail\" target=\"_blank\"><img src=\"http://www.wels.net/sab/image-g/butn-atwelsnet.gif\" alt=\"Go to @WELS.net Email\" width=\"101\" height=\"36\" hspace=\"0\" vspace=\"0\" border=\"0\"></a>");
	document.write("		<p class=\"text\">Send and receive email from anywhere on the internet</p>");
	document.write("		</td></tr>");
	document.write("		</table>");
	} else if (adnum == ++num) {
	/* Heaven Sent Postcards */
	document.write("		<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">");
	document.write("		<tr><td align=\"center\" bgcolor=\"#FFFFCC\">");
	document.write("		<p class=\"text\"><b>NEW</b> and <i>improved</i> Heaven Sent Postcards</p>");
	document.write("		<a href=\"http://www.wels.net/cgi-bin/ecards/index.cgi\" target=\"_blank\"><img src=\"http://www.wels.net/sab/ecards/postcard_button.gif\" alt=\"Go to Heaven Sent Postcards\" width=\"101\" height=\"36\" hspace=\"0\" vspace=\"0\" border=\"0\"></a>");
	document.write("		<p class=\"text\">Free e-cards for you to send to your friends</p>");
	document.write("		</td></tr>");
	document.write("		</table>");
	} else {
	/* Church locator */
	document.write("		<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">");
	document.write("		<tr><td align=\"center\" bgcolor=\"#CCCCFF\">");
	document.write("		<p class=\"text\"><i><b>Find Your Way</b></i></p>");
	document.write("		<a href=\"http://wels.know-where.com/wels/\" target=\"_blank\"><img src=\"http://www.wels.net/knowWhere/images/locator_button.gif\" alt=\"Go to the Church Locator\" width=\"101\" height=\"36\" hspace=\"0\" vspace=\"0\" border=\"0\"></a>");
	document.write("		<p class=\"text\">Locate a WELS church or school near you</p>");
	document.write("		</td></tr>");
	document.write("		</table>");
	}
}