  function playVideoClip(video){ 
			if(video=='Jax Scramble'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=http://www.praiseagyouth.com/Chaos Video_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=http://www.praiseagyouth.com/Chaos Video_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/products/dvd/Free-DVD-Player-Software.htm>free dvd player</a></noscript>';
                                document.getElementById('videoTitle').innerHTML = video;
				}
			else if(video=='Pedometer 1'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=Pedometer1_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=Pedometer1_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/mpeg-video-converter.htm>mpeg converter</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;			
				}
			else if(video=='Pedometer 2'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=Pedometer2_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=Pedometer2_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/mpeg-video-converter.htm>mpeg converter</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;
				}
			else if(video=='Pedometer 3'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=Pedometer3_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=Pedometer3_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/products/dvd/Free-YouTube-Download.htm>download youtube</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;
				} 
			else if(video=='The Dog Song'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=DogSong_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=DogSong_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/wmv-video-converter.htm>wmv converter</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;
				}
			else if(video=='Banana Challenge'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=BananaChallenge_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=BananaChallenge_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/flv-video-converter.htm>flv converter</a></noscript>                                         <br />                        <div id="aChange"><a href="http://praiseagyouth.com/UltimateBodyball.wmv" style="font-size: 16px; text-align: center;" class="ac" target="_blank">Launch in external player</a>                        </div>';
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='Jonah Skit'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=JonahSkit_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=JonahSkit_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/wmv-video-converter.htm>wmv converter</a></noscript> '; 
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='Hannah Skit'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=Hannah_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=Hannah_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/flv-video-converter.htm>flv converter</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='Mentos Challenge 1'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=MentosChallengeFirstTry_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=MentosChallengeFirstTry_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/products/dvd/Free-DVD-Player-Software.htm>dvd player</a></noscript> '; 
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='Mentos Challenge 2'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=MentosChallengeSecondTry_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=MentosChallengeSecondTry_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/avs-video-tools.htm>video converter</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='Mentos Challenge 3'){
				document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=MentosChallengeOtherMadness_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=MentosChallengeOtherMadness_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/products/dvd/Free-DVD-Player-Software.htm>dvd player</a></noscript> ';
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='UltimateBodyball'){
                                document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=UltimateBodyballHD_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=UltimateBodyballHD_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/3gp-video-converter.htm>3gp converter</a></noscript> '; 
                                document.getElementById('videoTitle').innerHTML = video;
				}
                        else if(video=='IceSkating1'){
                                document.getElementById('playerPosition').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="384" id="player" align="middle"> <param name="movie" value="player.swf?file=MVI_0893_NEW.flv&size=false&aplay=false&autorew=false&title="/> <param name="menu" value="false"/> <param name="quality" value="high"/> <param name="bgcolor" value="#FFFFFF"/> <embed src="player.swf?file=MVI_0893_NEW.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="512" height="384" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/> </object> <noscript><a href=http://www.dvdvideosoft.com/converter/video/rm-video-converter.htm>rm converter</a></noscript> '; 
                                document.getElementById('videoTitle').innerHTML = video;
				}
			else{
				alert('this isnt right...');
				}
				//aLinkChange();
		 }
		 
		 
		 
		 function videoChange(file){
		 	var browserName=navigator.appName;
			if(browserName=='Netscape'){
		 		document.getElementById('wrapper').innerHTML='<EMBED TYPE="application/x-mplayer2" SRC="'+file+'" NAME="mediaPlayer" WIDTH=492 HEIGHT=368 FULLSCREEN=0 AUTOSTART=1></EMBED>';
				}
			}
			
		function linkChange(file){	
			document.getElementById('aChange').innerHTML='<a href="'+file+'" style="font-size: 16px; text-align: center;" class="ac" target="_blank">Launch in external player</a>';									
			} 
		
		function aLinkChange(){
			var video=document.playerControls.videoClip.value; 
			if(video=='Jax Scramble'){
				linkChange('http://praiseagyouth.com/Chaos Video.wmv');
				}
			else if(video=='Pedometer 1'){
				linkChange('http://praiseagyouth.com/Pedometer1.wmv');				
				}
			else if(video=='Pedometer 2'){
				linkChange('http://praiseagyouth.com/Pedometer2.wmv');
				}
			else if(video=='Pedometer 3'){
				linkChange('http://praiseagyouth.com/Pedometer3.wmv');  
				}
			else if(video=='The Dog Song'){
				linkChange('http://praiseagyouth.com/DogSong.wmv');
				}
                        else if(video=='Jonah Skit'){
				linkChange('http://praiseagyouth.com/JonahSkit.wmv');
				}
                        else if(video=='Hannah Skit'){
				linkChange('http://praiseagyouth.com/HannahSkit.wmv');
				}
                        else if(video=='Mentos Challenge 1'){
				linkChange('http://praiseagyouth.com/MentosChallengeFirstTry.wmv');
				}
                        else if(video=='Mentos Challenge 2'){
				linkChange('http://praiseagyouth.com/MentosChallengeSecondTry.wmv');
				}
                        else if(video=='Mentos Challenge 3'){
				linkChange('http://praiseagyouth.com/MentosChallengeOtherMadness.wmv');
				}
                        else if(video=='UltimateBodyball'){
				linkChange('http://praiseagyouth.com/UltimateBodyball.wmv');
				}
			else{
				linkChange('http://praiseagyouth.com/BananaChallenge.wmv');
				}
				
			}
		  
		  function normal(){
		  	document.mediaPlayer.height=250;
			document.mediaPlayer.width=333;
			playerSIZE(250, 333);	
		  }
		  
		  function large(){
		  	document.mediaPlayer.height=368;
			document.mediaPlayer.width=492;	
			playerSIZE(368, 492);
		  }
		  
		  function playerSIZE(x, y){
		 	var currentVideo=document.playerControls.videoClip.value; 
			var clip;
		  	var browserName=navigator.appName;
		  	if (currentVideo=='Jax Scrample'){
				clip='http://praiseagyouth.com/Chaos Video.asx';
				}
			else if (currentVideo=='Pedometer 1'){
				clip='http://praiseagyouth.com/Pedometer1.asx'; 
				}
			else if (currentVideo=='Pedometer 2'){
				clip='http://praiseagyouth.com/Pedometer2.asx'; 
				}
			else if(currentVideo=='Pedometer 3'){
				clip='http://praiseagyouth.com/Pedometer3.asx'; 
				} 
			else if(currentVideo=='The Dog Song'){
				clip='http://praiseagyouth.com/Dog Song.asx';
				}
                        else if(currentVideo=='Jonah Skit'){
				clip='http://praiseagyouth.com/JonahSkit.asx';
				}
                        else if(currentVideo=='Hannah Skit'){
				clip='http://praiseagyouth.com/HannahSkit.asx';
				}
                        else if(currentVideo=='Mentos Challenge 1'){
				clip='http://praiseagyouth.com/Mentos1.asx';
				}
                        else if(currentVideo=='Mentos Challenge 2'){
				clip='http://praiseagyouth.com/Mentos2.asx';
				}
                        else if(currentVideo=='Mentos Challenge 3'){
				clip='http://praiseagyouth.com/Mentos3.asx';
				}
			else{
				clip='http://praiseagyouth.com/BananaChallenge.asx';
				}
			if(browserName=='Netscape'){
		 		document.getElementById('wrapper').innerHTML='<EMBED TYPE="application/x-mplayer2" SRC="'+clip+'" NAME="mediaPlayer" WIDTH='+y+' HEIGHT='+x+' FULLSCREEN=0 AUTOSTART=1></EMBED>';
				}
			}
		  
		  function checkForm(){
		  	var v=document.playerControls.Vote_for_your_favorite_Video.value;
		  	if (document.playerControls.First_Name.value<1){
				window.alert('What is your first name?');
			  	return false;
				}
			else if(document.playerControls.Last_Name.value<1){
				window.alert('What is your last name?');
			  	return false;
				}
			else{
				window.alert(v + 'was a cool video!');
			  	return true;
				}
			}
		

function checkForm(){
		if (document.favoriteGame.First_Name.value<1) {
			window.alert('What is yo first name???');
		return false;
		}
		else if (document.favoriteGame.Last_Name.value<1) {
			window.alert('What is yo last name???');
		return false;
		}
		else if (document.favoriteGame.Game_Event.value<1) {
			window.alert('Did you forget where you were at?  Tell us a game or event.');
		return false;
		}
		else {
		window.alert('Thanks for voting!');
		return true;
		}
	}

function  picMonthWindow() {
	picMonth = window.open("picmonth.html", "", "toolbar=no,status=no,menubar=no,scrollbar=no,resizable=no,location=yes,width=600,height=409");
	picMonth.document.write('<img src="PicMonthMay.jpg" border="0" alt="picture of the month" />');
}

function newWindow () {
onclick= window.open("Voices.xhtml", "", "fullscreen=no,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,directories=yes,location=yes,width=500,height=400,left=100,top=100")
} 

function pictureMonthOpen(){
	pictureMonth=window.open("", "", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=yes,width=500,height=625");
	pictureMonth.document.write('<img src="PicMonthMay.jpg" width="600" height="717" /><br /><form><table width="500"><tr><td align="center"><input type="button" value="Close Window" onclick="window.close();" /></td></tr></table></form>');
}

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById ("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes [i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

var triviaQuestionArray = new Array();
        triviaQuestionArray[0] = "How many stones did David take with him to face Goliath?<br /><br />";
        triviaQuestionArray[1] = "Two New Testament writers were brothers of Jesus.  One was Jude.  Name the other.<br /><br />";
        triviaQuestionArray[2] = "When Jesus talked to Peter about whether they should pay taxes to Rome or not, how did Jesus tell Peter to get the money to pay with?<br />";

function triviaQuestions(){
        var randomNumber = parseInt(Math.random()*3);
        var formHtml = '<form name="triviaForm" onsubmit="fillInHidden()" action="http://praiseagyouth.com/v-cgi/forms.cgi" enctype="application/x-www-form-urlencoded" method="post"><table style="border: 0px; color: white; font-size: 14px; position: relative; left: 20px;">  <tr>    <th align="right">      Name:    </th>    <td>      <input type="text" name="Your_Name"  size="20" />    </td>  </tr>  <tr>    <th align="right">      Answer:    </th>    <td>      <input type="text" name="Your_Answer"  size="20" />    </td>  </tr>  <tr>    <th></th>    <td>     <input type="submit" name="Form_Submit" value="Submit Answer" />    </td>  </tr>  <tr>    <td colspan="2">      <input type="hidden" name="NameOfTriviaQuestion" value="trivia" />    </td>  </tr></table><input type="hidden" name="_vDeckformid" value="297" /></form></span>';
        var html = '<span style="position: relative; top: 30px; padding-left: 10px; padding-right: 10px;">' + triviaQuestionArray[randomNumber] + formHtml;
        
        return html;
}//close function

var scriptureArray = new Array();
    scriptureArray[0] = "John 4:35  Say not ye, There are yet four months, and then cometh harvest? behold, I say unto you, Lift up your eyes, and look on the fields; for they are white already to harvest.";
    scriptureArray[1] = "Galatians 2:20  I am crucified with Christ: nevertheless I live; yet not I, but Christ liveth in me: and the life which I now live in the flesh I live by the faith of the Son of God, who loved me, and gave himself for me.";
    scriptureArray[2] = "Joshua 1:8  This book of the law shall not depart out of thy mouth; but thou shalt meditate therein day and night, that thou mayest observe to do according to all that is written therein: for then thou shalt make thy way prosperous, and then thou shalt have good success.";
    scriptureArray[3] = "Philippians 4:8  Finally, brethren, whatsoever things are true, whatsoever things are honest, whatsoever things are just, whatsoever things are pure, whatsoever things are lovely, whatsoever things are of good report; if there be any virtue, and if there be any praise, think on these things.";
    scriptureArray[4] = "Philippians 4:9  Those things, which ye have both learned, and received, and heard, and seen in me, do: and the God of peace shall be with you.";
    scriptureArray[5] = "Isaiah 26:3  Thou wilt keep him in perfect peace, whose mind is stayed on thee: because he trusteth in thee.";
    scriptureArray[6] = "1Samuel 15:22  And Samuel said, Hath the LORD as great delight in burnt offerings and sacrifices, as in obeying the voice of the LORD? Behold, to obey is better than sacrifice, and to hearken than the fat of rams. ";
    scriptureArray[7] = "Romams 5:8  But God commendeth his love toward us, in that, while we were yet sinners, Christ died for us. ";
    scriptureArray[8] = "Psalms 55:22  Cast thy burden upon the LORD, and he shall sustain thee: he shall never suffer the righteous to be moved.";
    scriptureArray[9] = "Matthew 11:29-30  Take my yoke upon you, and learn of me; for I am meek and lowly in heart: and ye shall find rest unto your souls.  (30)  For my yoke is easy, and my burden is light.";
    scriptureArray[10] = "2 Corinthians 5:7  (For we walk by faith, not by sight:)";
    scriptureArray[11] = "Habakkuk 2:3  For the vision is yet for an appointed time, but at the end it shall speak, and not lie: though it tarry, wait for it; because it will surely come, it will not tarry.";
    scriptureArray[12] = "Ephesians 6:18  Praying always with all prayer and supplication in the Spirit, and watching thereunto with all perseverance and supplication for all saints;";
    scriptureArray[13] = "Hebrews 10:19  Having therefore, brethren, boldness to enter into the holiest by the blood of Jesus,";
    scriptureArray[14] = "Revelations 2:7  He that hath an ear, let him hear what the Spirit saith unto the churches; To him that overcometh will I give to eat of the tree of life, which is in the midst of the paradise of God. ";
    scriptureArray[15] = "2 Corinthians 4:10  Always bearing about in the body the dying of the Lord Jesus, that the life also of Jesus might be made manifest in our body.";
    scriptureArray[16] = "Ephesians 1:18  The eyes of your understanding being enlightened; that ye may know what is the hope of his calling, and what the riches of the glory of his inheritance in the saints,";
    scriptureArray[17] = "2 Peter 1:4  Whereby are given unto us exceeding great and precious promises: that by these ye might be partakers of the divine nature, having escaped the corruption that is in the world through lust.";
    scriptureArray[18] = "Romans 8:35  Who shall separate us from the love of Christ? shall tribulation, or distress, or persecution, or famine, or nakedness, or peril, or sword?";
    scriptureArray[19] = "Romans 8:39  Nor height, nor depth, nor any other creature, shall be able to separate us from the love of God, which is in Christ Jesus our Lord.";
    scriptureArray[20] = "John 3:16  For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. ";
    scriptureArray[21] = "1 Peter 3:15  But sanctify the Lord God in your hearts: and be ready always to give an answer to every man that asketh you a reason of the hope that is in you with meekness and fear: ";
    scriptureArray[22] = "Proverbs 1:7  The fear of the LORD is the beginning of knowledge: but fools despise wisdom and instruction. ";
    scriptureArray[23] = "Isaiah 54:17  No weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD, and their righteousness is of me, saith the LORD. ";
    scriptureArray[24] = "2 Chronicles 7:14  If my people, which are called by my name, shall humble themselves, and pray, and seek my face, and turn from their wicked ways; then will I hear from heaven, and will forgive their sin, and will heal their land. ";
    scriptureArray[25] = "Jeremiah 29:11  For I know the thoughts that I think toward you, saith the LORD, thoughts of peace, and not of evil, to give you an expected end.";
    scriptureArray[26] = "Matthew 6:33  But seek ye first the kingdom of God, and his righteousness; and all these things shall be added unto you.";
    scriptureArray[27] = "Matthew 6:25  Therefore I say unto you, Take no thought for your life, what ye shall eat, or what ye shall drink; nor yet for your body, what ye shall put on. Is not the life more than meat, and the body than raiment?";
    scriptureArray[28] = "Hebrews 4:7  Again, he limiteth a certain day, saying in David, Today, after so long a time; as it is said, Today if ye will hear his voice, harden not your hearts.";
    scriptureArray[29] = "2 Corinthians 6:2  (For he saith, I have heard thee in a time accepted, and in the day of salvation have I succored thee: behold, now is the accepted time; behold, now is the day of salvation.)";
    scriptureArray[30] = "2 Timothy 3:16  All Scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness:";
    scriptureArray[31] = "2 Timothy 1:7  For God hath not given us the spirit of fear; but of power, and of love, and of a sound mind.";
    scriptureArray[32] = "John 16:33  These things I have spoken unto you, that in me ye might have peace. In the world ye shall have tribulation: but be of good cheer; I have overcome the world.";
    scriptureArray[33] = "John 14:2-3  In my Father's house are many mansions: if it were not so, I would have told you. I go to prepare a place for you.  (3)  And if I go and prepare a place for you, I will come again, and receive you unto myself; that where I am, there ye may be also.";
    scriptureArray[34] = "1Thessalonians 5:23  And the very God of peace sanctify you wholly; and I pray God your whole spirit and soul and body be preserved blameless unto the coming of our Lord Jesus Christ.";
    scriptureArray[35] = "Matthew 4:4  But he answered and said, It is written, Man shall not live by bread alone, but by every word that proceedeth out of the mouth of God. ";
    scriptureArray[36] = "Matthew 11:12  And from the days of John the Baptist until now the kingdom of heaven suffereth violence, and the violent take it by force. ";
    scriptureArray[37] = "Phillippians 3:14  I press toward the mark for the prize of the high calling of God in Christ Jesus.";
    scriptureArray[38] = "Psalms 37:23  The steps of a good man are ordered by the LORD: and he delighteth in his way.";
    scriptureArray[39] = "Isaiah 54:17  No weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD, and their righteousness is of me, saith the LORD.";
    scriptureArray[40] = "1 John 2:5  But whoso keepeth his word, in him verily is the love of God perfected: hereby know we that we are in him. ";
    scriptureArray[41] = "Psalms 101:3  I will set no wicked thing before mine eyes: I hate the work of them that turn aside; it shall not cleave to me. ";
    scriptureArray[42] = "Philippians 2:12  Wherefore, my beloved, as ye have always obeyed, not as in my presence only, but now much more in my absence, work out your own salvation with fear and trembling. ";
    scriptureArray[43] = "Philippians 2:3  Let nothing be done through strife or vainglory; but in lowliness of mind let each esteem other better than themselves.";
    scriptureArray[44] = "1Thessalonians 4:16  For the Lord himself shall descend from heaven with a shout, with the voice of the archangel, and with the trump of God: and the dead in Christ shall rise first: ";
    scriptureArray[45] = "Ephesians 5:16  Redeeming the time, because the days are evil.";
    scriptureArray[46] = "Romans 8:28  And we know that all things work together for good to them that love God, to them who are the called according to his purpose. ";
    scriptureArray[47] = "2Corinthians 9:8  And God is able to make all grace abound toward you; that ye, always having all sufficiency in all things, may abound to every good work: ";
    scriptureArray[48] = "Matthew 5:48  Be ye therefore perfect, even as your Father which is in heaven is perfect.";
    scriptureArray[49] = "Jeremiah 1:5  Before I formed thee in the belly I knew thee; and before thou camest forth out of the womb I sanctified thee, and I ordained thee a prophet unto the nations.";
    scriptureArray[50] = "Matthew 5:41  And whosoever shall compel thee to go a mile, go with him twain.";
    scriptureArray[51] = "1 John 2:2  And he is the propitiation for our sins: and not for ours only, but also for the sins of the whole world.";
    
function getScriptureOfTheWeek(){
        document.getElementById('scripture').innerHTML = scriptureArray[getWeeks()];
}//close function
    
function getWeeks(){
        var startDate = new Date();
        startDate.setFullYear(2008);
        startDate.setMonth(0);
        startDate.setDate(1);

        var todaysDate = new Date();

        var startMillis = startDate.getTime();
        var currentMillis = todaysDate.getTime();

        var minutes = 1000*60
        var hours = minutes*60
        var days = hours*24
        
        var timeDifferenceInMillis = currentMillis - startMillis;
        var totalDays = timeDifferenceInMillis/days;
        var weeks = parseInt(totalDays/7);
        
        return weeks;
}//close function

function picMonthWindow(theUrl,winName,features){
	window.open(theUrl,winName,features);
	}

function dissappear(){
	setTimeout('d();', 5000);
	}

function d(){
	document.getElementById('announcementBox').style.visibility='hidden';
	}	
	
function openCornMaze(){
	document.getElementById('cornMaze').style.visibility = 'visible';
	}
        
function writeTriviaQuestion(){
        document.getElementById('triviaQuestion').innerHTML = triviaQuestions();
        }//close function
        
function fillInHidden(){
        var triviaQuestionName = document.getElementById('triviaQuestion').innerHTML;
        document.triviaForm.NameOfTriviaQuestion.value = triviaQuestionName;
}//close function

var count = 0;
function changeImg(){
        if(count == 0){
                document.getElementById('screen').src = 'Screen.gif';
                count = 1;
                setTimeout('show()', 2000);
        }else{
                document.getElementById('inMessageBoard').innerHTML = restore;
                document.getElementById('screen').src = 'ScreenUp.gif';
                setTimeout('chg()', 1500);
        }
}//close function
function chg(){
        document.getElementById('screen').src = 'MessageBoardScreen copy.gif';
        count = 0;
}//close function
var restore;
function show(){
        restore = document.getElementById('inMessageBoard').innerHTML;
        document.getElementById('inMessageBoard').innerHTML = '<span id="refArea"><select name="scriptureRef" onchange="ref(this.value)"><option value="">Pick a topic</option><option value="ten">Ten Commandments</option><option value="Jesus">Jesus on the ten commandments</option><option value="boy">Relationship with boyfriends/girlfriends</option><option value="boss">Relationship with bosses/employers</option><option value="elder">Relationship with your elders</option><option value="enemy">Relationship with enemies</option><option value="friend">Relationship with friends</option><option value="gov">Relationship with government/authority</option><option value="par">Relationship with Parents</option><option value="stranger">Relationship with strangers</option></select><br /><b id="scriptureArea"></b></span>';
        document.getElementById('refArea').style.textAlign = 'left';
        document.getElementById('refArea').style.fontSize = '14';
        document.getElementById('refArea').style.textAlign = 'left';
        document.getElementById('refArea').style.color = '#AD6E01';        
        document.getElementById('refArea').style.fontFamily = 'Arial';
        document.getElementById('refArea').style.fontWeight = 'bold';
        document.getElementById('refArea').style.left = '10px';
        document.getElementById('refArea').style.width = '360px';     
        document.getElementById('refArea').style.marginTop = '-15px'; 
}

    
    
var ten = "(Exodus 20:3)  Thou shalt have no other gods before me.<br /><br />(Exodus 20:4)  Thou shalt not make unto thee any graven image, or any likeness of any thing that is in heaven above, or that is in the earth beneath, or that is in the water under the earth:<br /><br />(Exodus 20:7)  Thou shalt not take the name of the LORD thy God in vain; for the LORD will not hold him guiltless that taketh his name in vain.<br /><br />(Exodus 20:8)  Remember the sabbath day, to keep it holy.<br /><br />(Exodus 20:12)  Honor thy father and thy mother: that thy days may be long upon the land which the LORD thy God giveth thee.<br /><br />(Exodus 20:13)  Thou shalt not kill.<br /><br />(Exodus 20:14)  Thou shalt not commit adultery.<br /><br />(Exodus 20:15)  Thou shalt not steal.<br /><br />(Exodus 20:16)  Thou shalt not bear false witness against thy neighbor.<br /><br />(Exodus 20:17)  Thou shalt not covet thy neighbor's house, thou shalt not covet thy neighbor's wife, nor his manservant, nor his maidservant, nor his ox, nor his ass, nor any thing that is thy neighbor's.";
var Jesus = "Mat 22:36-40<br /> (36)  Master, which is the great commandment in the law?<br />(37)  Jesus said unto him, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy mind. <br />(38)  This is the first and great commandment. <br />(39)  And the second is like unto it, Thou shalt love thy neighbor as thyself. <br />(40)  On these two commandments hang all the law and the prophets.";
var boy = "2 Corinthians 6:14  Be ye not unequally yoked together with unbelievers: for what fellowship hath righteousness with unrighteousness? and what communion hath light with darkness?<br /><br /> 1Thessalonians 4:3-7<br />(3)  For this is the will of God, even your sanctification, that ye should abstain from fornication: <br />(4)  That every one of you should know how to possess his vessel in sanctification and honor; <br />(5)  Not in the lust of concupiscence, even as the Gentiles which know not God: <br />(6)  That no man go beyond and defraud his brother in any matter: because that the Lord is the avenger of all such, as we also have forewarned you and testified. <br />(7)  For God hath not called us unto uncleanness, but unto holiness. <br /><br />(1 Corinthians 6:18)  Flee fornication. Every sin that a man doeth is without the body; but he that committeth fornication sinneth against his own body.";
var boss = "Ephesians 6:5-8<br />(5)  Servants, be obedient to them that are your masters according to the flesh, with fear and trembling, in singleness of your heart, as unto Christ; <br /> (6)  Not with eyeservice, as menpleasers; but as the servants of Christ, doing the will of God from the heart; <br />(7)  With good will doing service, as to the Lord, and not to men: <br />(8)  Knowing that whatsoever good thing any man doeth, the same shall he receive of the Lord, whether he be bond or free. <br /><br />(Romans 12:11)  Not slothful in business; fervent in spirit; serving the Lord;";
var elder = "(1Timothy 5:1)  Rebuke not an elder, but entreat him as a father; and the younger men as brethren;<br /><br />(1Timothy 5:2)  The elder women as mothers; the younger as sisters, with all purity.";
var enemy = "Matthew 5:25-26<br />(25)  Agree with thine adversary quickly, while thou art in the way with him; lest at any time the adversary deliver thee to the judge, and the judge deliver thee to the officer, and thou be cast into prison. <br />(26)  Verily I say unto thee, Thou shalt by no means come out thence, till thou hast paid the uttermost farthing. <br /><br />Matthew 5:38-48<br />(38)  Ye have heard that it hath been said, An eye for an eye, and a tooth for a tooth: <br />(39)  But I say unto you, That ye resist not evil: but whosoever shall smite thee on thy right cheek, turn to him the other also. <br />(40)  And if any man will sue thee at the law, and take away thy coat, let him have thy cloak also. <br />(41)  And whosoever shall compel thee to go a mile, go with him twain. <br />(42)  Give to him that asketh thee, and from him that would borrow of thee turn not thou away. <br />(43)  Ye have heard that it hath been said, Thou shalt love thy neighbor, and hate thine enemy. <br />(44)  But I say unto you, Love your enemies, bless them that curse you, do good to them that hate you, and pray for them which despitefully use you, and persecute you; <br />(45)  That ye may be the children of your Father which is in heaven: for he maketh his sun to rise on the evil and on the good, and sendeth rain on the just and on the unjust. <br />(46)  For if ye love them which love you, what reward have ye? do not even the publicans the same? <br />(47)  And if ye salute your brethren only, what do ye more than others? do not even the publicans so? <br />(48)  Be ye therefore perfect, even as your Father which is in heaven is perfect.";
var friend = "Ephesians 4:25-26<br />(25)  Wherefore putting away lying, speak every man truth with his neighbor: for we are members one of another. <br /> (26)  Be ye angry, and sin not: let not the sun go down upon your wrath: <br /><br />Matthew 5:21-24<br />(21)  Ye have heard that it was said by them of old time, Thou shalt not kill; and whosoever shall kill shall be in danger of the judgment: <br /> (22)  But I say unto you, That whosoever is angry with his brother without a cause shall be in danger of the judgment: and whosoever shall say to his brother, Raca, shall be in danger of the council: but whosoever shall say, Thou fool, shall be in danger of hell fire. <br />(23)  Therefore if thou bring thy gift to the altar, and there rememberest that thy brother hath aught against thee; <br />(24)  Leave there thy gift before the altar, and go thy way; first be reconciled to thy brother, and then come and offer thy gift. <br /><br />(Ephesians 4:29)  Let no corrupt communication proceed out of your mouth, but that which is good to the use of edifying, that it may minister grace unto the hearers. <br /><br /> (Ephesians 4:32)  And be ye kind one to another, tenderhearted, forgiving one another, even as God for Christ's sake hath forgiven you. <br /><br />(Ephesians 5:4)  Neither filthiness, nor foolish talking, nor jesting, which are not convenient: but rather giving of thanks.";
var gov = "(Romans 13:1)  Let every soul be subject unto the higher powers. For there is no power but of God: the powers that be are ordained of God.<br /><br />(Titus 3:1)  Put them in mind to be subject to principalities and powers, to obey magistrates, to be ready to every good work,";
var par = "(Exodus 20:12)  Honor thy father and thy mother: that thy days may be long upon the land which the LORD thy God giveth thee. <br /><br />Eph 6:1-3<br />(1)  Children, obey your parents in the Lord: for this is right. <br />(2)  Honor thy father and mother; which is the first commandment with promise; <br />(3)  That it may be well with thee, and thou mayest live long on the earth.";
var stranger = "Luke 6:31 And as ye would that men should do to you, do ye also to them likewise.<br /><br />(Romans 12:18)  If it be possible, as much as lieth in you, live peaceably with all men.<br /><br />Luk 10:29-37<br />(29)  But he, willing to justify himself, said unto Jesus, And who is my neighbor? <br />(30)  And Jesus answering said, A certain man went down from Jerusalem to Jericho, and fell among thieves, which stripped him of his raiment, and wounded him, and departed, leaving him half dead. <br /> (31)  And by chance there came down a certain priest that way: and when he saw him, he passed by on the other side. <br />(32)  And likewise a Levite, when he was at the place, came and looked on him, and passed by on the other side. <br />(33)  But a certain Samaritan, as he journeyed, came where he was: and when he saw him, he had compassion on him, <br />(34)  And went to him, and bound up his wounds, pouring in oil and wine, and set him on his own beast, and brought him to an inn, and took care of him. <br />(35)  And on the morrow when he departed, he took out two pence, and gave them to the host, and said unto him, Take care of him; and whatsoever thou spendest more, when I come again, I will repay thee. <br />(36)  Which now of these three, thinkest thou, was neighbor unto him that fell among the thieves? <br />(37)  And he said, He that showed mercy on him. Then said Jesus unto him, Go, and do thou likewise.";


function ref(value){
        if(value == 'ten'){
               document.getElementById('scriptureArea').innerHTML = ten; 
        }else if(value == 'Jesus'){
               document.getElementById('scriptureArea').innerHTML = Jesus; 
        }else if(value == 'boy'){
               document.getElementById('scriptureArea').innerHTML = boy; 
        }else if(value == 'boss'){
               document.getElementById('scriptureArea').innerHTML = boss; 
        }else if(value == 'elder'){
               document.getElementById('scriptureArea').innerHTML = elder; 
        }else if(value == 'enemy'){
               document.getElementById('scriptureArea').innerHTML = enemy; 
        }else if(value == 'friend'){
               document.getElementById('scriptureArea').innerHTML = friend; 
        }else if(value == 'gov'){
               document.getElementById('scriptureArea').innerHTML = gov; 
        }else if(value == 'par'){
               document.getElementById('scriptureArea').innerHTML = par; 
        }else if(value == 'stranger'){
               document.getElementById('scriptureArea').innerHTML = stranger; 
        }else{
               document.getElementById('scriptureArea').innerHTML = 'Pick a topic from the select box above.'; 
        }

}


        