//---------------------Header Itmes------------------------------------------------------

var headerImage="images/GIBCtitle.jpg";
var emailAddress="pastorvanhoose@comcast.net";

//----------------------Menu Items-------------------------------------------------------

var totalMenu=7;
var menuTarget=new Array();
var menuName=new Array();

menuTarget[0]="index.html"
menuName[0]="Home";

menuTarget[1]="pastor.html";
menuName[1]="Our Pastor";

menuTarget[2]="servicetimes.html"
menuName[2]="Ministries";

menuTarget[3]="events.html"
menuName[3]="Upcoming Events";

menuTarget[4]="statementfaith.html";
menuName[4]="Statement of Faith";

menuTarget[5]="directions.html";
menuName[5]="Information";

menuTarget[6]="whatsnew.html";
menuName[6]="Past Events";




//----------------------Links on the Left-----------------------------------------------

var totalLinks=3;
var linkTarget= new Array();
var linkName= new Array();

linkTarget[0]="http://www.wayoflife.org/wayoflife/howtobesaved.html";
linkName[0]="How to be saved:.";

linkTarget[1]="http://www.oldchristianradio.com/";
linkName[1]="Good Online Music:.";

linkTarget[2]="http://www.onlinebible.org/";
linkName[2]="Free Bible Study Software:.";


//----------------------------Verses----------------------------------------------------------------

var totalVerses=30;
var verse = new Array();

verse[0]="Proverbs 17:28  Even a fool, when he holdeth his peace, is counted wise: and he that shutteth his lips is esteemed a man of understanding."
verse[1]="Psalm 118:8  It is better to trust in the LORD than to put confidence in man."
verse[2]="Ecclesiastes 10:20  Curse not the king, no not in thy thought; and curse not the rich in thy bedchamber: for a bird of the air shall carry the voice, and that which hath wings shall tell the matter."
verse[3]="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."
verse[4]="Romans 6:23  For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord."
verse[5]="Psalm 37:4  Delight thyself also in the LORD; and he shall give thee the desires of thine heart."
verse[6]="Isaiah 40:31  But they that wait upon the LORD shall renew their strength; they shall mount up with wings as eagles; they shall run, and not be weary; and they shall walk, and not faint."
verse[7]="Proverbs 29:11  A fool uttereth all his mind: but a wise man keepeth it in till afterwards."
verse[8]="James 3:8  But the tongue can no man tame; it is an unruly evil, full of deadly poison."
verse[9]="1John 5:13  These things have I written unto you that believe on the name of the Son of God; that ye may know that ye have eternal life, and that ye may believe on the name of the Son of God."
verse[10]="Ephesians 4:32  And be ye kind one to another, tenderhearted, forgiving one another, even as God for Christ’s sake hath forgiven you."
verse[11]="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."
verse[12]="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?"
verse[13]="2Corinthians 9:7  Every man according as he purposeth in his heart, so let him give; not grudgingly, or of necessity: for God loveth a cheerful giver."
verse[14]="1Corinthians 1:21  For after that in the wisdom of God the world by wisdom knew not God, it pleased God by the foolishness of preaching to save them that believe."
verse[15]="Romans 10:9  That if thou shalt confess with thy mouth the Lord Jesus, and shalt believe in thine heart that God hath raised him from the dead, thou shalt be saved."
verse[16]="Acts 16:31  And they said, Believe on the Lord Jesus Christ, and thou shalt be saved, and thy house."
verse[17]="1Corinthians 13:13  And now abideth faith, hope, charity, these three; but the greatest of these is charity."
verse[18]="1John 2:15  Love not the world, neither the things that are in the world. If any man love the world, the love of the Father is not in him."
verse[19]="James 3:6  And the tongue is a fire, a world of iniquity: so is the tongue among our members, that it defileth the whole body, and setteth on fire the course of nature; and it is set on fire of hell."
verse[20]="Luke 6:26  Woe unto you, when all men shall speak well of you! for so did their fathers to the false prophets."
verse[21]="Joshua 1:9  Have not I commanded thee? Be strong and of a good courage; be not afraid, neither be thou dismayed: for the LORD thy God is with thee whithersoever thou goest."
verse[22]="1John 4:7  Beloved, let us love one another: for love is of God; and every one that loveth is born of God, and knoweth God."
verse[23]="1John 4:18  There is no fear in love; but perfect love casteth out fear: because fear hath torment. He that feareth is not made perfect in love."
verse[24]="Matthew 25:13  Watch therefore, for ye know neither the day nor the hour wherein the Son of man cometh."
verse[25]="Ephesians 6:4  And, ye fathers, provoke not your children to wrath: but bring them up in the nurture and admonition of the Lord."
verse[26]="Proverbs 31:30  Favour is deceitful, and beauty is vain: but a woman that feareth the LORD, she shall be praised."
verse[27]="Proverbs 18:24  A man that hath friends must shew himself friendly: and there is a friend that sticketh closer than a brother."
verse[28]="Proverbs 19:23  The fear of the LORD tendeth to life: and he that hath it shall abide satisfied; he shall not be visited with evil."
verse[29]="Proverbs 10:1  The proverbs of Solomon. A wise son maketh a glad father: but a foolish son is the heaviness of his mother."
verse[30]="Ecclesiastes 12:13  Let us hear the conclusion of the whole matter: Fear God, and keep his commandments: for this is the whole duty of man."

//------------------------------------------------------------------------------------------
//-------Contents below does not require editing--------------------------------------------
//------------------------------------------------------------------------------------------
function writeHeader(){
var leftheaderHtml="911 Durham Road<br>Penndel, PA 19047<br>(215) 757-5294";
var rightheaderHtml="<img src=\""+headerImage+"\">";
document.getElementById("leftHeader").innerHTML=leftheaderHtml;
document.getElementById("rightHeader").innerHTML=rightheaderHtml;

}
function writeMenu(){


var mcount=0;
var menuHtml=".";
 while (mcount < totalMenu){

     menuHtml+=": <a href='"+menuTarget[mcount]+"'>"+menuName[mcount]+"</a> :"; 

      mcount++;
  }

menuHtml+=": <a href=\"mailto:"+emailAddress+"\">Contact Us</a> :";
menuHtml+="."
document.getElementById("topMenu").innerHTML=menuHtml;

}

function topleftPanel(){
var leftHtml="<img name=\"display\" border=\"0\" src=\"images/display.gif\" style=\"z-index: 1 float: left; position: absolute\" onMouseout=\"displayNone()\">"; 
    leftHtml+="<img name=\"rotating\" border=\"1\" src=\"images/display.gif\" width=\"150\" height=\"100\" onMouseover=\"displayPic()\" >"; 
   
 
document.getElementById("leftTopPanel").innerHTML=leftHtml;
rotatePics();

}
function rotatePics(){ 

var currPic=Math.floor(Math.random()*totalPics)

  document.rotating.src = picDirectory + picName[currPic]; 

setTimeout("rotatePics();",3000); 

} 
function displayPic(){
document.display.src=document.rotating.src;
}
function displayNone(){
document.display.src="images/display.gif";
}

function displayLinks(){
var lcount=0;
var bottomleftHtml="<br><br><b><u>Further Links:.</u></b><br><br>";
 while (lcount < totalLinks){

     bottomleftHtml+="<a href='"+linkTarget[lcount]+"' target=\"_blank\">"+linkName[lcount]+"</a><br>"; 

      lcount++;
  }

document.getElementById("leftBottomPanel").innerHTML=bottomleftHtml;
}
function displayVerse(){
var currVerse=Math.floor(Math.random()*totalVerses);
var verseHtml="KJV: "+verse[currVerse];
document.getElementById("verses").innerHTML=verseHtml;
}

writeMenu();
writeHeader();
topleftPanel();
displayLinks();
displayVerse();