// +----------------------------------------------+ //
// |  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. | //
// +----------------------------------------------+ //
// |     IGTB: Silver Lady Navigation Console     | //
// +----------------------------------------------+ //

IWL='' + window.location;

menu=new Array;
menu[ 0]=new Image; menu[ 0].src="menu/appr0.gif";
menu[ 1]=new Image; menu[ 1].src="menu/appr1.gif";
menu[ 2]=new Image; menu[ 2].src="menu/slvr0.gif";
menu[ 3]=new Image; menu[ 3].src="menu/slvr1.gif";
menu[ 4]=new Image; menu[ 4].src="menu/uzoo0.gif";
menu[ 5]=new Image; menu[ 5].src="menu/uzoo1.gif";
menu[ 6]=new Image; menu[ 6].src="menu/ssji0.gif";
menu[ 7]=new Image; menu[ 7].src="menu/ssji1.gif";
menu[ 8]=new Image; menu[ 8].src="menu/tril0.gif";
menu[ 9]=new Image; menu[ 9].src="menu/tril1.gif";
menu[10]=new Image; menu[10].src="menu/comm0.gif";
menu[11]=new Image; menu[11].src="menu/comm1.gif";
menu[12]=new Image; menu[12].src="menu/sale0.gif";
menu[13]=new Image; menu[13].src="menu/sale1.gif";
menu[14]=new Image; menu[14].src="menu/lsta0.gif";
menu[15]=new Image; menu[15].src="menu/lsta1.gif";
menu[16]=new Image; menu[16].src="menu/mond0.gif";
menu[17]=new Image; menu[17].src="menu/mond1.gif";
menu[18]=new Image; menu[18].src="menu/keep0.gif";
menu[19]=new Image; menu[19].src="menu/keep1.gif";

function getalt(X) {
   switch(X) {
      case 43: return 'Trilogy'; break;
      case 55: return 'Approach'; break;
      case 65: return 'Silver Lady'; break;
      case 72: return 'Love Station'; break;
      case 86: return 'Starship Jingle'; break;
      case 88: return 'Robot Salesman'; break;
      case 90: return 'Keeper Keep Us'; break;
      case 96: return 'Space Commando'; break;
      case 110: return 'Universal Zoo/Why?'; break;
      case 163: return 'A Planet Called Monday'; break;
      default: 
         if (confirm('Error in SilverLady Navigation Mainframe\nPlease inform the Webmaster!'))
            { KongaBuzz('RE: Error in SilverLady Navigation Mainframe'); }
         else
            { alert('We appologize for the inconvenience.'); }
      }
}    

function ismenu(W,X,Z){document.write ('&nbsp;<img class="sel" src="menu/' + Z.substr(0,4) + '0.gif" alt="' + (getalt(W)) + '" onmouseover="src=menu[' + (X + 1) + '].src" onmouseout="src=menu[' + X + '].src" onclick="document.location=\'' + Z + '.html\'" width="' + W + '">&nbsp;')}
function gobutt(Z)    {document.write ('<img class="nav" src="menu/' + X + '.gif" alt="' + Y + '" title="' + Y + '" onclick="document.location=\'' + Z + '.html\'">'); notset=0;}
function goback()     {document.write ('<img class="nav" src="menu/' + X + '.gif" alt="' + Y + '" title="' + Y + '" onclick="history.back();">')}

document.writeln ('<table id="silverlady"><tr><td>')
   X="back"; Y="Previous Page"; notset=1;
   if (IWL.lastIndexOf("approach") > 0) gobutt('igtb')    ;
   if (IWL.lastIndexOf("slvrlady") > 0) gobutt('approach');
   if (IWL.lastIndexOf("uzoowhy")  > 0) gobutt('slvrlady');
   if (IWL.lastIndexOf("ssjingle") > 0) gobutt('uzoowhy') ;
   if (IWL.lastIndexOf("trilogy")  > 0) gobutt('ssjingle');
   if (IWL.lastIndexOf("commando") > 0) gobutt('trilogy') ;
   if (IWL.lastIndexOf("salesman") > 0) gobutt('commando');
   if (IWL.lastIndexOf("lstation") > 0) gobutt('salesman');
   if (IWL.lastIndexOf("monday")   > 0) gobutt('lstation');
   if (IWL.lastIndexOf("keeper")   > 0) gobutt('monday')  ;
   if (IWL.lastIndexOf("coupon")   > 0) gobutt('catalog') ;
   if (IWL.lastIndexOf("ordersnt") > 0) gobutt('coupon')  ;
   if (IWL.lastIndexOf("mailsent") > 0) gobutt('igtbmail');
   if (notset==1) goback();
document.writeln ('</td><td>&nbsp;')
   if (IWL.lastIndexOf("approach") < 1) ismenu( 55, 0,'approach');
   if (IWL.lastIndexOf("slvrlady") < 1) ismenu( 65, 2,'slvrlady');
   if (IWL.lastIndexOf("uzoowhy")  < 1) ismenu(110, 4,'uzoowhy') ;
   if (IWL.lastIndexOf("ssjingle") < 1) ismenu( 86, 6,'ssjingle');
   if (IWL.lastIndexOf("trilogy")  < 1) ismenu( 43, 8,'trilogy') ;
   if (IWL.lastIndexOf("commando") < 1) ismenu( 96,10,'commando');
document.writeln ('&nbsp;<br />&nbsp;');
   if (IWL.lastIndexOf("salesman") < 1) ismenu( 88,12,'salesman');
   if (IWL.lastIndexOf("lstation") < 1) ismenu( 72,14,'lstation');
   if (IWL.lastIndexOf("monday")   < 1) ismenu(163,16,'monday')  ;
   if (IWL.lastIndexOf("keeper")   < 1) ismenu( 90,18,'keeper')  ;
document.writeln ('&nbsp;</td><td>')
   X="next"; Y="Next Page"; notset=1;
   if (IWL.lastIndexOf("notice")   > 0) gobutt('approach');
   if (IWL.lastIndexOf("approach") > 0) gobutt('slvrlady');
   if (IWL.lastIndexOf("slvrlady") > 0) gobutt('uzoowhy') ;
   if (IWL.lastIndexOf("uzoowhy")  > 0) gobutt('ssjingle');
   if (IWL.lastIndexOf("ssjingle") > 0) gobutt('trilogy') ;
   if (IWL.lastIndexOf("trilogy")  > 0) gobutt('commando');
   if (IWL.lastIndexOf("commando") > 0) gobutt('salesman');
   if (IWL.lastIndexOf("salesman") > 0) gobutt('lstation');
   if (IWL.lastIndexOf("lstation") > 0) gobutt('monday')  ;
   if (IWL.lastIndexOf("monday")   > 0) gobutt('keeper')  ;
   if (IWL.lastIndexOf("keeper")   > 0) gobutt('catalog') ;
   if (IWL.lastIndexOf("coupon")   > 0) gobutt('notice')  ;
   if (IWL.lastIndexOf("ordersnt") > 0) gobutt('notice')  ;
   if (IWL.lastIndexOf("igtbbook") > 0) gobutt('igtbgb02');
   if (IWL.lastIndexOf("igtbgb02") > 0) gobutt('igtbgb01');
   if (notset==1) gobutt('igtb');
document.writeln ('</td></tr></table>')

