
var localFocusOfPage;
var NavPDAUp = true;
var textImgArray = new Array();

   textImgArray['ArtMuseum'] =  ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Gain insight into Heavenly Father\'s will for His children through the examination of beautiful works of art'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'<font color="ff0000">Currently Vacant! </font>Galleries Include: &nbsp;&nbsp;Roles of the Christ &nbsp;&nbsp;-&nbsp;&nbsp; Perfecting the Saints &nbsp;&nbsp;-&nbsp;&nbsp; Righteous Patriarchs';

   textImgArray['Coliseum'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Participate in \'The Games\', where the winners receive Eternal Life and the losers receive Eternal Death'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'<font color="ff0000">Currently Vacant! </font>Games Include: &nbsp;&nbsp;The Pursuit of Eternal Life &nbsp;&nbsp;-&nbsp;&nbsp; Putting on the Full Armor of God';

   textImgArray['Counselors'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Let the Greatest Counselor diagnose your Spiritual pain and prescribe treatment through His Inspired Word'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'<font color="ff0000">Currently Vacant! </font>Prescriptions Include: &nbsp;&nbsp;Conquering Unworthiness &nbsp;&nbsp;-&nbsp;&nbsp; Obtaining Forgiveness';

   textImgArray['HallOfMirrors'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Make direct comparisions of various LDS doctrines with the Holy Bible'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'<font color="ff0000">Currently Vacant! </font>Illusions Include: &nbsp;&nbsp;Saved By Works &nbsp;&nbsp;-&nbsp;&nbsp; As Man Once Was ... &nbsp;&nbsp;-&nbsp;&nbsp; Do Not Test the Prophets';

   textImgArray['FamilyHist'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Apply to your life lessons from the lives of God\'s Greatest Eternal Family by studying their own journals'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Journals Include: &nbsp;&nbsp;The Pariarch Abraham &nbsp;&nbsp;-&nbsp;&nbsp; The Apostle Peter &nbsp;&nbsp;-&nbsp;&nbsp; The Prophet Moses';

   textImgArray['GemShop'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Examine in detail Inspired Words more precious than Gold, Silver or the rarest Gems'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Gems Include: &nbsp;&nbsp;Matthew 5:48 &nbsp;&nbsp;-&nbsp;&nbsp; Romans 6:23 &nbsp;&nbsp;-&nbsp;&nbsp; Ephesians 2:20 &nbsp;&nbsp;-&nbsp;&nbsp; Isaiah 53:5';

   textImgArray['Library'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Learn how to use powerful tools and methods to study Heavenly Father\'s Inspired Word more effectively'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'<font color="ff0000">Currently Vacant! </font>Resources Include: &nbsp;&nbsp;Dictionary of Biblical Terms &nbsp;&nbsp;-&nbsp;&nbsp; A Collection of Bible Stories';

   textImgArray['PostOffice'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Read responses to frequent assertions & questions (FAQs).&nbsp;&nbsp;&nbsp;  Contact the developers of The City of Zion.'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Included:&nbsp; "Have you prayed about the Book of Mormon?" &nbsp;- &nbsp;"Why do Evangelicals say LDS aren\'t Christian?"';

   textImgArray['Temple'] =  ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Research Temple related doctrine and practices by surveying the Old and New Testaments'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Surveys Cover: &nbsp;&nbsp;The Old Testament Temple &nbsp;&nbsp;-&nbsp;&nbsp; The New Testament Temples &nbsp;&nbsp;-&nbsp;&nbsp; The Tearing of the Veil';

   textImgArray['TourAgency'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Travel throughout Heavenly Father\'s Holy Word by taking journeys focused on exciting biblical topics'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'<font color="ff0000">Currently Vacant! </font>Journeys Include: In Search of Forgiveness - Christ\'s Footsteps: Discerning Truth';

   textImgArray['VisitorCtr'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Find your way by using The City of Zion Map. &nbsp;&nbsp;Search for articles. &nbsp;&nbsp;Learn about who built the City and why.'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Facilities Include: &nbsp;&nbsp;An Annotated City Map &nbsp;&nbsp;-&nbsp;&nbsp; An Introduction to the NavPDA &nbsp;&nbsp;-&nbsp;&nbsp; City Directory';

   textImgArray['ZionGate'] = ''
         +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Get a glimpse of The City of Zion through the front gate. &nbsp;&nbsp;Pass through and be Welcomed!'
         +'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '
         +'Features Include: &nbsp;&nbsp;Welcoming Messages &nbsp;&nbsp;-&nbsp;&nbsp; Entrance to the City &nbsp;&nbsp;-&nbsp;&nbsp; Date of the last Update';


var NavPDA_HTML = '<div align="center">'
                + '  <center>'
                + '  <table class="NavPDA" border="0" cellpadding="0" cellspacing="0" width= "900" height= "160">'
                + '    <tr>'
                + '      <td rowspan="4" width="180" height="160">'
                + '        <div align="center">'
                + '          <table class="NavPDAScreen" border="0" cellpadding="0" cellspacing="0" width="180" height="160">'
                + '            <tr>'
                + '              <td width="32" height="160" rowspan="3"></td>'
                + '              <td width="141" height="26"></td>'
                + '              <td width="7" height="160" rowspan="3"></td>'
                + '            </tr>'
                + '            <tr>'
                + '              <td class="NavPDAScrBgnd" width="141" height="106">'
                + '                <img id="NavPDAScreen" border="0" src="../../../images/counselorsscr.gif" width="141" height="106"></td>'
                + '            </tr>'
                + '            <tr>'
                + '              <td width="141" height="28"></td>'
                + '            </tr>'
                + '          </table>'
                + '        </div>'
                + '      </td>'
                + '      <td colspan="5" width="580" height="44" align="center">'
                + '        <img id="NavPDATitle" border="0" src="../../../images/counselorstitle.gif" width="400" height="44"></td>'
                + '      <td width="116" height="44">&nbsp;</td>'
                + '      <td width="24" rowspan="4" height="160">&nbsp;</td>'
                + '    </tr>'
                + '    <tr>'
                + '      <td id="ZionGate" class="NavButtonLink"  width="116" height="30" align="center">'
                + '        <a href="' + linkArray['ZionGate'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'ZionGate\')"'
                + '         onMouseOut= "changeNavFocus(false,\'ZionGate\')">'
                + '         &nbsp;&nbsp;&nbsp;&nbsp; Zion Gate &nbsp;&nbsp;</a>'
                + '      </td>'
                + '      <td id="VisitorCtr" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['VisitorCtr'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'VisitorCtr\')" '
                + '         onMouseOut= "changeNavFocus(false,\'VisitorCtr\')">'
                + '         &nbsp;&nbsp;Visitor Center</a>'
                + '      </td>'
                + '      <td id="Temple" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['Temple'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'Temple\')" '
                + '         onMouseOut= "changeNavFocus(false,\'Temple\')">'
                + '         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Temple &nbsp;&nbsp;&nbsp;&nbsp;</a>'
                + '      </td>'
                + '<!--      <td id="TourAgency" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['TourAgency'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'TourAgency\')" '
                + '         onMouseOut= "changeNavFocus(false,\'TourAgency\')">'
                + '         &nbsp;&nbsp;Tour Agency</a>'
                + '      </td>'
                + '--><td width="116" height="30"></td>'
                + '<!--     <td id="ArtMuseum" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['ArtMuseum'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'ArtMuseum\')" '
                + '         onMouseOut= "changeNavFocus(false,\'ArtMuseum\')">'
                + '         &nbsp;&nbsp;Art Museum</a>'
                + '      </td>'
                + '--><td width="116" height="30"></td>'
                + '<!--      <td id="Library" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['Library'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'Library\')" '
                + '         onMouseOut= "changeNavFocus(false,\'Library\')">'
                + '         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Library &nbsp;&nbsp;&nbsp;&nbsp;</a>'
                + '      </td>'
                + '--><td width="116" height="30"></td>'
                + '    </tr>'
                + '    <tr>'
                + '      <td id="PostOffice" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['PostOffice'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'PostOffice\')" '
                + '         onMouseOut= "changeNavFocus(false,\'PostOffice\')">'
                + '         &nbsp;&nbsp;Post Office</a>'
                + '      </td>'
                + '      <td id="FamilyHist" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['FamilyHist'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'FamilyHist\')" '
                + '         onMouseOut= "changeNavFocus(false,\'FamilyHist\')">'
                + '         &nbsp;&nbsp;FamilyHistCtr</a>'
                + '      </td>'
                + '      <td id="GemShop" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['GemShop'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'GemShop\')" '
                + '         onMouseOut= "changeNavFocus(false,\'GemShop\')">'
                + '         &nbsp;&nbsp;&nbsp;&nbsp; Gem Shop &nbsp;&nbsp;</a>'
                + '      </td>'
                + '<!--      <td id="HallOfMirrors" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['HallOfMirrors'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'HallOfMirrors\')" '
                + '         onMouseOut= "changeNavFocus(false,\'HallOfMirrors\')">'
                + '         &nbsp;&nbsp;HallOfMirrors</a>'
                + '      </td>'
                + '--><td width="116" height="30"></td>'
                + '<!--      <td id="Counselors" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['Counselors'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'Counselors\')" '
                + '         onMouseOut= "changeNavFocus(false,\'Counselors\')">'
                + '         &nbsp;&nbsp;Counselor\'s</a>'
                + '      </td>'
                + '--><td width="116" height="30"></td>'
                + '<!--      <td id="Coliseum" class="NavButtonLink" width="116" height="30" align="center">'
                + '        <a href="' + linkArray['Coliseum'] + '" '
                + '         onMouseOver="changeNavFocus(true,\'Coliseum\')" '
                + '         onMouseOut= "changeNavFocus(false,\'Coliseum\')">'
                + '         &nbsp;&nbsp;&nbsp;&nbsp; Coliseum &nbsp;&nbsp;</a>'
                + '      </td>'
                + '--><td width="116" height="30"></td>'
                + '    </tr>'
                + '    <tr>'
                + '      <td class="NavPDADisplay" colspan="6" width="696" height="56" valign="top" align="center">'
                + '        <div align="center">'
                + '          <table border="0" cellpadding="2" cellspacing="0" width="696" height="56">'
                + '            <tr>'
                + '              <td valign="top" align="left">'
                + '                <p id="NavPDAText" class="NavPDAText">&nbsp;Initial'
                + '                Screen, Quests, and Digs of the Old and New Testaments<br>'
                + '                Temple Tour&nbsp; -&nbsp; Quest for Forgiveness&nbsp; -&nbsp;'
                + '                Christ\'s Pattern of Determining Truth</p></td>'
                + '            </tr>'
                + '          </table>'
                + '        </div>'
                + '      </td>'
                + '    </tr>'
                + '  </table>'
                + '  </center>'
                + '</div>';




function initializeLocalFocus() {


   document.getElementById('NavPDAContainer').innerHTML= NavPDA_HTML;
   titleImgArray['Local'] = titleImgArray[localFocusOfPage];
   screenImgArray['Local'] = screenImgArray[localFocusOfPage];
   textImgArray['Local'] = textImgArray[localFocusOfPage];
   document.getElementById(localFocusOfPage).style.backgroundImage = imageGreenOn;
   document.getElementById('NavPDAScreen').src = screenImgArray[localFocusOfPage];
   document.getElementById('NavPDATitle').src = titleImgArray[localFocusOfPage];
   document.getElementById('NavPDAText').innerHTML= textImgArray[localFocusOfPage];

   // Now Preload screens for the NavPDA
   var preloadNavPDAScrArray = new Array();
   
   preloadNavPDAScrArray['Button'] = new Image (116,30);
   preloadNavPDAScrArray['ArtMuseum'] = new Image(141,106);
   preloadNavPDAScrArray['Coliseum'] = new Image(141,106);
   preloadNavPDAScrArray['Counselors'] = new Image(141,106);
   preloadNavPDAScrArray['HallOfMirrors'] = new Image(141,106);
   preloadNavPDAScrArray['FamilyHist'] = new Image(141,106);
   preloadNavPDAScrArray['GemShop'] = new Image(141,106);
   preloadNavPDAScrArray['Library'] = new Image(141,106);
   preloadNavPDAScrArray['PostOffice'] = new Image(141,106);
   preloadNavPDAScrArray['Temple'] = new Image(141,106);
   preloadNavPDAScrArray['TourAgency'] = new Image(141,106);
   preloadNavPDAScrArray['VisitorCtr'] = new Image(141,106);
   preloadNavPDAScrArray['ZionGate'] = new Image(141,106);
   
   preloadNavPDAScrArray['Button'].src = locationYellowOn;
   preloadNavPDAScrArray['ArtMuseum'].src = screenImgArray['ArtMuseum'];
   preloadNavPDAScrArray['Coliseum'].src = screenImgArray['Coliseum'];
   preloadNavPDAScrArray['Counselors'].src = screenImgArray['Counselors'];
   preloadNavPDAScrArray['HallOfMirrors'].src = screenImgArray['HallOfMirrors'];
   preloadNavPDAScrArray['FamilyHist'].src = screenImgArray['FamilyHist'];
   preloadNavPDAScrArray['GemShop'].src = screenImgArray['GemShop'];
   preloadNavPDAScrArray['Library'].src = screenImgArray['Library'];
   preloadNavPDAScrArray['PostOffice'].src = screenImgArray['PostOffice'];
   preloadNavPDAScrArray['Temple'].src = screenImgArray['Temple'];
   preloadNavPDAScrArray['TourAgency'].src = screenImgArray['TourAgency'];
   preloadNavPDAScrArray['VisitorCtr'].src = screenImgArray['VisitorCtr'];
   preloadNavPDAScrArray['ZionGate'].src = screenImgArray['ZionGate'];
}


function changeNavFocus(focusOn, landmark) {

   if (landmark != localFocusOfPage) {
      if (focusOn) {
         document.getElementById(landmark).style.backgroundImage = imageYellowOn;
         document.getElementById('NavPDAScreen').src = screenImgArray[landmark];
         document.getElementById('NavPDATitle').src = titleImgArray[landmark];
         document.getElementById('NavPDAText').innerHTML = textImgArray[landmark];
      }else{
         document.getElementById(landmark).style.backgroundImage = imageYellowOff;
         document.getElementById('NavPDAScreen').src = screenImgArray[localFocusOfPage];
         document.getElementById('NavPDATitle').src = titleImgArray[localFocusOfPage];
         document.getElementById('NavPDAText').innerHTML = textImgArray[localFocusOfPage];
      }
   }
   // Do nothing if this is the local landmark
}
  
function switchNavPDA() {

   if (NavPDAUp) { //then hide the NavPDA
      document.getElementById('NavPDAContainer').innerHTML= "";
      document.getElementById('NavPDASwitchText').innerHTML="&nbsp;&nbsp;Show NavPDA";
      NavPDAUp=false;
   }else{ // show the NavPDA
      initializeLocalFocus();
      document.getElementById('NavPDASwitchText').innerHTML="&nbsp;&nbsp;Hide NavPDA";
      NavPDAUp=true;
   } //endif
}
        