/*Javascripts written by Frank V Bonura. Please do not remove this authorship tag and ask
permission first before using these scripts. Thank you in advance for your cooperation.*/

var n3=(screen.width*.5)-203;
document.write('<style>div.Nav3{margin:10px auto 10px ' + n3 + 'px;}</style>');
if (navigator.appName == 'Microsoft Internet Explorer')
  {
    document.write("<style>#Crumbs li {background-image:none;padding:0;} #Crumbs li:before{content:\'>> \';}</style>");
  }
  else
    {
    document.write("");
    } 

function PageSetup(tier,mode)
  {
    var t="";
    for (i = 0; i <= (tier-1); i++) {var t=t + "../";};
    switch(mode)
      {
        case 0:
	  document.write('<div style=\'float:right;clear:right;max-width:49%;width:11em;background:#FFF;border:2px solid darkblue;border-radius:.75em;padding:.25em;\'>');
          Search(tier);
	  document.write('<div style=\'margin:.25em 0;\'>');
          Bible(tier);
	  document.write('</div>');
          Facebook(tier);
	  document.write('</div>');
          break
        case 1:
	  document.write('<div class=\'Page\'>');
	  document.write(' <ul class=\'Bottom\'>');
	  document.write('  <li><a href=\'' + t + 'Index.html\'>Home</a></li>');
	  document.write('  <li><a href=\'' + t + 'Main/Galleries.html\'>Galleries</a></li>');
	  document.write('  <li><a href=\'' + t + 'Main/Research.html\'>Research</a></li>');
	  document.write('  <li><a href=\'' + t + 'Main/About_Us.html\'>About&nbsp;Us</a></li>');
	  document.write('  <li><a href=\'' + t + 'Main/About_Us.html#E-mail\'>Contact&nbsp;Us</a></li>');
	  document.write('  <li><a href=\'' + t + 'Main/Updates.html\'>News Errata&nbsp;&amp;&nbsp;Updates</a></li>');
	  document.write('  <li><a href=\'' + t + 'Main/Terms.html\'>Terms of Use</a></li>');
	  document.write(' </ul>');
	  document.write('</div>');
          Bible(tier);
          break
        case 2:
          /* Blank bottom on home page */
          break
        default:
          Bible(tier);
      }
    var a=document.getElementById("Menu").innerHTML
    var b='<input style=\'margin:.25em .25em 0 .25em;\' type=\'button\' onclick=\'MaxMenu()\' value=\'+\' />';
    var c='<input style=\'margin:.25em .5em .25em 0;\' type=\'button\' onclick=\'MinMenu()\' value=\'&minus;\' />';
    var d='<a style=\'display:block;margin:.5em;\' href=\'http://www.facebook.com/pages/STAR-WARS-Deckplans-Aliance/168372163249889\' title=\'Visit us on Facebook\'><img style=\'height:2em;\' src=\'' + t + 'Graphics/facebook.png\' /></a>';
    document.getElementById("Menu").innerHTML=b + c + a + d;
  }

function MaxMenu() {document.getElementById("Menu").style.height="auto";document.getElementById("Menu").style.width="auto";}
function MinMenu() {document.getElementById("Menu").style.height="1.9em";document.getElementById("Menu").style.width="8.5em";}

function Header(tier)
  {
    var t="";
    for (i = 0; i <= (tier-1); i++) {var t=t + "../";};
/*    Crumbs(t); */
  }

function Footer(tier,mode)
  {
    var t="";
    for (i = 0; i <= (tier-1); i++) {var t=t + "../";};
    switch(mode)
      {
        case 0:
          document.write('');
          break
        case 1:
          Stripes(tier,'');
          break
        case 2:
          document.write('<div style=\'text-align:center;\' class=\'Article\'><strong>Hover mouse over image for descriptions. Click for additional information.</strong></div>');
          break
        case 3:
          Stripes(tier,'This area is still under construction. Some pop up labels have not been installed yet.');
          document.write('<div class=\'Article\'><strong>Hover mouse over image for descriptions. Click for additional information.</strong></div>');
          break
        case 4:
          Stripes(tier,'This area is being overhauled. This image will be replaced.');
          document.write('<div class=\'Article\'><strong>Hover mouse over image for descriptions. Click for additional information.</strong></div>');
          break
        default:
          document.write('Error - mode type not known.');
    }

  }


function Scripture(tier,a,verse)
  {
    var t="";
    for (i = 0; i <= (tier-1); i++) {var t=t + "../";};
    if (a=='') {var a = 'Please add a Bible verse.';}
    if (verse=='') {var verse = 'Please add a Bible verse.';}
    document.write('<div class=\'Scripture\'><strong>&ldquo;</strong> '+ a +' <strong>&rdquo;</strong> <div style=\'text-align:right;font:xx-small sans-serif;\'>&mdash;&nbsp;'+ verse +'</div></div>');
  }

function Search(tier)
  {
      document.write('<div id="Search">');
      document.write('<form method=\'get\' name=\'searchform\' action=\'http://www.google.com/search\' target=\'_blank\'>')
      document.write('<strong>Search&#58;&nbsp;</strong>')
      document.write('<input type=\'hidden\' name=\'sitesearch\' value=\'Deckplans.00sf.com\' />')
      document.write('<input alt=\'search\' type=\'text\' name=\'as_q\' size=\'9\' />&nbsp;<input style=\';width:1.8em;border-radius:5px;border-color:#BBB;background:#BBB;\' type=\'submit\' value=\'&raquo;\' />')
      document.write('</form>')
      document.write('</div>')
  }

function Facebook(tier)
  {
    var t="";
    for (i = 0; i <= (tier-1); i++) {var t=t + "../";};
    document.write('<a style=\'display:table;margin:0 auto;font-size:x-small;\' href=\'http://www.facebook.com/pages/STAR-WARS-Deckplans-Aliance/168372163249889\' title=\'Visit us on Facebook\'><img style=\'height:2.5em;vertical-align:middle;margin-right:.5em;\' src=\'' + t + 'Graphics/facebook.png\' /> <strong>Visit us on Facebook</strong></a>')
  }

function Crumbs(t) {var cs1=document.getElementById('Crumbs').innerHTML;document.write("<div style=\'position:relative;top:-.5em;margin:.5em 0;\'>" + cs1 + "</div>");}


function Stripes(tier,a)
  {
    var t="";
    for (i = 0; i <= (tier-1); i++) {var t=t + "../";};
    if (a=='') {var a = '<strong>This Area is Under Construction.</strong>';}
    document.write('<div style=\'margin:.5em auto;width:16em;text-align:center;\' class=\'Alert\'>' + a + '</div>');
  }

function Bible(tier)
  {
    var a=Math.floor((Math.random()*35)+1);
    switch(a)
      {
        case 1:
          Scripture(tier,'In the beginning God created the heavens and the earth.','Genesis 1:1 NIV');
          break
        case 2:
          Scripture(tier,'For the wages of sin is death, but the gift of God is eternal life in Christ Jesus our Lord.','Romans 6:23 NIV');
          break
        case 3:
          Scripture(tier,'Jesus answered, \'I am the way and the truth and the life. No one comes to the Father except through me.\'','John 14:6 NIV');
          break
        case 4:
          Scripture(tier,'For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.','John 3:16 NIV');
          break
        case 5:
          Scripture(tier,'In the lips of him that hath understanding wisdom is found: but a rod is for the back of him that is void of understanding.','Proverbs 10:13 KJV');
          break
        case 6:
          Scripture(tier,'He that is void of wisdom despiseth his neighbour: but a man of understanding holdeth his peace.','Proverbs 11:12 KJV');
          break
        case 7:
          Scripture(tier,'He that tilleth his land shall be satisfied with bread: but he that followeth vain persons is void of understanding.','Proverbs 12:11 KJV');
          break
        case 8:
          Scripture(tier,'nor thieves nor the greedy nor drunkards nor slanderers nor swindlers will inherit the kingdom of God.','1 Corinthians 6:10 NIV');
          break
        case 9:
          Scripture(tier,'God made two great lights—the greater light to govern the day and the lesser light to govern the night. He also made the stars.','Genesis 1:16 NIV');
          break
        case 10:
          Scripture(tier,'I will make your descendants as numerous as the stars in the sky and will give them all these lands, and through your offspring all nations on earth will be blessed,','Genesis 26:4 NIV');
          break
        case 11:
          Scripture(tier,'Do not get drunk on wine, which leads to debauchery. Instead, be filled with the Spirit.','Ephesians 5:18 NIV');
          break
        case 12:
          Scripture(tier,'\'I see him, but not now; I behold him, but not near. A star will come out of Jacob; a scepter will rise out of Israel. He will crush the foreheads of Moab, the skulls of all the sons of Sheth.','Numbers 24:17 NIV');
          break
        case 13:
          Scripture(tier,'and asked, \'Where is the one who has been born king of the Jews? We saw his star in the east and have come to worship him\'.','Matthew 2:2 NIV');
          break
        case 14:
          Scripture(tier,'He determines the number of the stars and calls them each by name.','Psalm 147:4 NIV');
          break
        case 15:
          Scripture(tier,'This was the appearance and structure of the wheels: They sparkled like chrysolite, and all four looked alike. Each appeared to be made like a wheel intersecting a wheel.','Ezekiel 1:16 NIV');
          break
        case 16:
          Scripture(tier,'He determines the number of the stars and calls them each by name.','Psalm 147:4 NIV');
          break
        case 17:
          Scripture(tier,'Saul then said to his attendants, \'Find me a woman who is a medium, so I may go and inquire of her.\' \'There is one in Endor,\' they said.','1 Samuel 28:7 NIV');
          break
        case 18:
          Scripture(tier,'So shall my word be that goeth forth out of my mouth: it shall not return unto me void, but it shall accomplish that which I please, and it shall prosper in the thing whereto I sent it.','Isaiah 55:11 KJV');
          break
        case 19:
          Scripture(tier,'I am not ashamed of the gospel, because it is the power of God for the salvation of everyone who believes: first for the Jew, then for the Gentile.','Romans 1:16 NIV');
          break
        case 20:
          Scripture(tier,'But I, when I am lifted up from the earth, will draw all men to myself.\'','John 12:32 NIV');
          break
        case 21:
          Scripture(tier,'All Scripture is God-breathed and is useful for teaching, rebuking, correcting and training in righteousness,','2 Timothy 3:16 NIV');
          break
        case 22:
          Scripture(tier,'Consequently, faith comes from hearing the message, and the message is heard through the word of Christ.','Romans 10:17 NIV');
          break
        case 23:
          Scripture(tier,'For the word of God is living and active. Sharper than any double-edged sword, it penetrates even to dividing soul and spirit, joints and marrow; it judges the thoughts and attitudes of the heart.','Hebrews 4:12 NIV');
          break
        case 24:
          Scripture(tier,'They replied, \'Believe in the Lord Jesus, and you will be saved — you and your household.\'','Acts 16:31 NIV');
          break
        case 25:
          Scripture(tier,'That if you confess with your mouth, \'Jesus is Lord,\' and believe in your heart that God raised him from the dead, you will be saved.','Romans 10:9 NIV');
          break
        case 26:
          Scripture(tier,'for, \'Everyone who calls on the name of the Lord will be saved.\'','Romans 10:13 NIV');
          break
        case 26:
          Scripture(tier,'for, \'For it is by grace you have been saved, through faith — and this not from yourselves, it is the gift of God — not by works, so that no one can boast.','Ephesians 2:8-9 NIV');
          break
        case 29:
          Scripture(tier,'In their fright the women bowed down with their faces to the ground, but the men said to them, \'Why do you look for the living among the dead? He is not here; he has risen! Remember how he told you, while he was still with you in Galilee:','Luke 24:5-6 NIV');
          break
        case 30:
          Scripture(tier,'Blessed are you when men hate you, when they exclude you and insult you and reject your name as evil, because of the Son of Man. Rejoice in that day and leap for joy, because great is your reward in heaven. For that is how their fathers treated the prophets.','Luke 6:22-23 NIV');
          break
        case 31:
          Scripture(tier,'Submit to God and be at peace with him; in this way prosperity will come to you.','JOB 22:21 NIV');
          break
        case 32:
          Scripture(tier,'Jesus answered them, "It is not the healthy who need a doctor, but the sick. I have not come to call the righteous, but sinners to repentance".','Luke 5:31-32 NIV');
          break
        case 33:
          Scripture(tier,'He who steals must steal no longer; but rather he must labor, performing with his own hands what is good, so that he will have something to share with one who has need.','Ephesians 4:28 NASB');
          break
        default:
          Scripture(tier,'For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.','John 3:16 NIV');
      }
  }
