// JavaScript Document
function insertFlash(sPlaceholderID, sFileName, nWidth, nHeight) {
	//alert("sPlaceholderID : " + sPlaceholderID + ", sFileName: " + sFileName + ", nWidth: " + nWidth + ", nHeight: " + nHeight);

	var sHtml = "";
							
		sHtml
			+= "<embed src='images/" + sFileName + "'"
			+  " width='" + nWidth + "'"
			+  " height='" + nHeight + "'"
			+  " style='border: 1px solid #999999;'"
			+  " quality='high'"
			+  " wmode='transparent'"
			+  " pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'"
			+  " type='application/x-shockwave-flash'"
			+  ">"
			+  "</embed>";
			
	document.getElementById(sPlaceholderID).innerHTML = sHtml;
	
}

function insertGraphic(nNumber) {
	var nTotal = 10;
	if(nNumber == null || nNumber == "undefined")
		var nRandom = Math.floor(Math.random()*nTotal+1); 
	else 
		var nRandom = nNumber;
	var sPicture = "images/background" + nRandom + ".jpg"; 
	document.getElementById("oMainTable").style.backgroundImage = "url(" + sPicture + ")";
}

function buttonOver(oButton) {
	document.getElementById(oButton).className = "buttonTextOver";
}

function buttonOut(oButton) {
	document.getElementById(oButton).className = "buttonText";
}

function showMenu(oMenu) {
	document.getElementById(oMenu).style.visibility = "visible";
}


function addQuote() {
	oQuotes = new Array();
	
	oQuotes[0] = "<span class='quoteTitle'>Kingdom:</span><br/><strong>Zechariah 14:9:</strong><br/> <em>\"And the LORD shall be king over all the earth: in that day shall there be one LORD, and his name one.\"</em>";
	oQuotes[1] = "<span class='quoteTitle'>World peace:</span><br/><strong>Isaiah 2:4:</strong><br/> <em>\"And he shall judge among the nations, and shall rebuke many people: and they shall beat their swords into plowshares, and their spears into pruninghooks: nation shall not lift up sword against nation, neither shall they learn war any more.\"</em>";
	oQuotes[2] = "<span class='quoteTitle'>God’s Creation:</span><br/><strong>Psalm 19:1</strong><br/> <em>\"The heavens declare the glory of God; and the firmament sheweth his handywork\"</em>";
	oQuotes[3] = "<span class='quoteTitle'>Christ's return:</span><br/><strong>Acts 1:11:</strong><br/> <em>\"Which also said, Ye men of Galilee, why stand ye gazing up into heaven? this same Jesus, which is taken up from you into heaven, shall so come in like manner as ye have seen him go into heaven.\"</em>";
	oQuotes[4] = "<span class='quoteTitle'>Baptism:</span><br/><strong>Mark 16:16:</strong><br/> <em>\"He that believeth and is baptized shall be saved; but he that believeth not shall be damned.\"</em>";
	oQuotes[5] = "<span class='quoteTitle'>Resurrection:</span><br/><strong>Acts 24:15:</strong><br/> <em>\"And have hope toward God, which they themselves also allow, that there shall be a resurrection of the dead, both of the just and unjust.\"</em>";
	oQuotes[6] = "<span class='quoteTitle'>Mortality:</span><br/><strong>Ezekiel 18:4:</strong><br/> <em>\"Behold, all souls are mine; as the soul of the father, so also the soul of the son is mine: the soul that sinneth, it shall die.\"</em>";
	oQuotes[7] = "<span class='quoteTitle'>The Bible:</span><br/><strong>II Timothy 3:16:</strong><br/> <em>\"All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness:\"</em>";
	oQuotes[8] = "<span class='quoteTitle'>Conclusion:</span><br/><strong>Ecclesiastes 12:13:</strong><br/> <em>\"Let us hear the conclusion of the whole matter: Fear God, and keep his commandments: for this is the whole duty of man\"</em>";
	
	var nRandom = Math.floor(oQuotes.length*Math.random());
	document.getElementById("oInformation").innerHTML = oQuotes[nRandom];


}