
// hotke-06.js  -  4'01-13-11  -  1356

// hotke-05.js  -  2'06-15-10  -  1922
// hotke-04.js  -  3'03-10-10  -  1407
// hotke-02.js  -  5'03-05-10  -  1854
// This is the HOT KEys.JavaScript file.
// It sets up the 14 HotKeys

// It has not been used as a stand-alone script since 11-21-04.
// On 11-25-04, it was incorporated into the 5-script file
//   named STDFT.JS -- which was used for the Museum website.

// But now, I am parsing it out of STDFT.JS, and making it a
//   stand-alone script again -- as I have need of it for the
//   rosas-place.com website.

// I will probably put the call for it in the <head> of every 
//   ??ilt.htm file -- and in the INDEX.HTM file.

// The -02 version of this file (hotke.js) is simply the exact
//   extraction from the stdft-16.js (5'09-11-09) file.  It will
//   not be used as is -- as it will need to be modified to work
//   properly in the ilovethis.org website.

//////////////////////////////////////////////////////////////////////

var mykey;

if (window.Event){document.captureEvents(Event.KEYDOWN);}

document.onkeydown = myKeyDown;

function myKeyDown(e){if (window.Event){mykey = e.which;}
		      else{mykey = event.keyCode}
  mykey = String.fromCharCode(mykey);
  
  if ((mykey == "I") || (mykey == "i") || (mykey == "X") || (mykey == "x"))
				       {document.location.href = "07ilt.htm";}
  if ((mykey == "O") || (mykey == "o")){document.location.href = "index.htm";}
  if ((mykey == "K") || (mykey == "k")){document.location.href = "17ilt.htm#hotke";}
//if ((mykey == "K") || (mykey == "k")){window.location.reload(true);}

  if ((mykey == "L") || (mykey == "l")){document.location.href = "#top";}
  if ((mykey == "M") || (mykey == "m")){document.location.href = "#bottom";}
  if ((mykey == "B") || (mykey == "b")){history.go(-1);}
  if ((mykey == "J") || (mykey == "j")){history.go(+1);}
  
  if ((mykey == "N") || (mykey == "n"))
    { var NPM = top.NPMURL;
      if (NPM == "01") {top.location.href = "index.htm#top";}
    else
      {top.location.href = NPM + "ilt.htm#top";}
    }

  if ((mykey == "C") || (mykey == "c") || (mykey == "Q") || (mykey == "q"))
    { var LOM = top.LOMURL;
      if (LOM == "  ") {top.location.href = "index.htm#top";}
    else
      { (top.contents)  
	    ?  top.location.href = LOM + "ilt.htm#contents"             
	    :  top.location.href = LOM + "ilt.htm#top"
	    ;
      }
    }

  if ((mykey == "G") || (mykey == "g"))                       
    {goog=window.open("33ilt.htm","_blank",
      "width=800,height=440,menubar,toolbar,location,status,scrollbars,resizable");
    }
}

/*
+Shortcut C  -  Goes to if CONTENTS Table, else TOP
+Shortcut Q  -  Goes to if CONTENTS Table, else TOP
+Shortcut F2 -  Goes to if CONTENTS Table, else TOP
+Shortcut G  -  Goes to Google - in a new window
+Shortcut I  -  Goes to Site INDEX
+Shortcut X  -  Goes to Site INDEX
+Shortcut F9 -  Goes to Site INDEX
+Shortcut O  -  Goes to HOME Page
+Shortcut K  -  Goes to HOT KEYS Table
+Shortcut L  -  Goes to TOP of page               (=Home key)
+Shortcut M  -  Goes to BOTTOM of page             (=End key)
+Shortcut B  -  Goes BACK       (=Backspace key =Back button)
+Shortcut J  -  Goes FORWARD                (=Forward button)
+Shortcut N  -  Goes to Next page

Letters allowed and used     (12):  BCGIJKLMNOQX
Letters allowed but not used ( 0):  
Letters NOT allowed          (14):  ADEFHPRSTUVWYZ

F-keys allowed and used through the letter they generate (2):
  F2 = Q
  F9 = X
The other 10 F-keys are not allowed for hotkeys
  
*/

