// +----------------------------------------------+ //
// |  Copyright©2009, Steven Douglas Huddleston   | //
// |             All Rights Reserved              | //
// | No portion of this code can be copied, used, | //
// | published or reproduced in any way without   | //
// | the expressed written consent of the author. | //
// +----------------------------------------------+ //
// |          Visitor Contribution Imager         | //
// +----------------------------------------------+ //

var idex=parseInt(document.location.search.substr(1));

if (!idex) idex=1;

function shownext() {
   if (idex==11) {idex=3} else {idex++} // RIO
   setimage(idex);
   }
   
function setimage(x) {

   // Robert I. Ortiz
   riotxt='Fellow IGTB fan, Magician, WebMaster, Artist, Dragonrider, and a good friend.<br />';
   riourl='<a href="http://www.cybergenie-pr.com/" target="_blank">';

   // Hide More Button
   if (x < 3) { document.getElementById('bmore').style.display='none'; }

   switch (x) {
      case 1: document.title='The Bakeman Jacket - By Barbara - Circa 1985';
              isrc='vibralrg.jpg';
              iwid='640';
              ihei='480';
              ialt='Photograph of Vibracorp Logo embroidered onto the back of a black jacket.';
              icap='The Bakeman Jacket &mdash; By Barbara &mdash; Circa 1985';
              break;
      case 2: document.title='The Ernst Taris IGTB Compact Disk';
              isrc='etigtblg.jpg';
              iwid='702';
              ihei='716';
              ialt='Photograph of a homemade IGTB Compact Disc featuring IGTB Logo and the O.E.D.';
              icap='The Ernst Taris IGTB Compact Disk';
              break;
      case 3: document.title='The Keeper #2 (Copyright 2001, Robert I. Ortiz)';
              isrc='keep2lrg.jpg';
              iwid='612';
              ihei='640';
              ialt='A translucent male figure with glowing eyes at the top of a stairway suspended in space looking down at the cosmos.';
              icap='The Keeper #2 - ' + riourl + 'Copyright &copy; 2001, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 4: document.title='The Keeper #3 (Copyright 2001, Robert I. Ortiz)';
              isrc='keep3lrg.jpg';
              iwid='800';
              ihei='640';
              ialt='A transparent male silhouette with glowing yellow eyes and outlined in a blue aura holding galaxy globe on an outstretched arm.';
              icap='The Keeper #3 - ' + riourl + 'Copyright &copy; 2001, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 5: document.title='Silver Lady #2 (Copyright 2001, Robert I. Ortiz)';
              isrc='slvr2lrg.jpg';
              iwid='720';
              ihei='540';
              ialt='A liquid metal nude female form posing within an open ship hatchway with planetary landscape in the background.';
              icap='Silver Lady #2 - ' + riourl + 'Copyright &copy; 2001, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 6: document.title='A Planet Called Monday #2 (Copyright 2001, Robert I. Ortiz)';
              isrc='mond2lrg.jpg';
              iwid='800';
              ihei='599';
              ialt='A man with outstretched arms is engulfed in flames upon a torch-platform within a cityscape.';
              icap='A Planet Called Monday #2 - ' + riourl + 'Copyright &copy; 2001, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 7: document.title='Reaching Out #1 (Copyright 2001, Robert I. Ortiz)';
              isrc='reac1lrg.jpg';
              iwid='800';
              ihei='740';
              ialt='A man stands before a large spaceship window gazing out at the stars with yearning eyes; his outstretched hand is touching the hand of his reflection.';
              icap='Reaching Out #1 - ' + riourl + 'Copyright &copy; 2001, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 8: document.title='Why? (Copyright 2002, Robert I. Ortiz)';
              isrc='why01lrg.jpg';
              iwid='800';
              ihei='766';
              ialt='A man with his arms chained by the wrists to a stone upon which he kneels reaches out pleadingly towards a distant star.';
              icap='Why? - ' + riourl + 'Copyright &copy; 2002, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 9: document.title='Heartbreaker (Copyright 2002, Robert I. Ortiz)';
              isrc='heart1lrg.jpg';
              iwid='800';
              ihei='800';
              ialt='Thousands of human forms in golden spacesuits floating among metal debris forming an orbiting ring around a star.';
              icap='Heartbreaker - ' + riourl + 'Copyright &copy; 2002, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 10: document.title='The OED (Copyright 2002, Robert I. Ortiz)';
              isrc='oed1lrg.jpg';
              iwid='960';
              ihei='720';
              ialt='A gigantic cone-shaped space station with a huge crystal sphere harnessed in steel and six spherical satellites floating in darkness.';
              icap='The OED - ' + riourl + 'Copyright &copy; 2002, Robert I. Ortiz</a><br />' + riotxt;
              break;
      case 11: document.title='Space Commando #4 (Copyright 2009, Robert I. Ortiz)';
              isrc='scom4lrg.jpg';
              iwid='800';
              ihei='800';
              ialt='An older Space Commando sitting before his terminal remembers the glory days. Behind him a faded, gun weilding Space Commando in full gear stands ready before the orb of planet Mars.';
              icap='Space Commando #4 - ' + riourl + 'Copyright &copy; 2009, Robert I. Ortiz</a><br />' + riotxt;
              break;
      default: 
      }

   document.getElementById('pict').innerHTML = '<img src="visitors/' + isrc + '" style="width:' + iwid + 'px; height:' + ihei + 'px; border:3px ridge #ff8000;" alt="' + ialt + '" />';
   document.getElementById('capt').innerHTML = icap;
   }
