<!-- Hide script from old browsers 
//First tell system which function handles a Keypress 
document.onkeydown = keyHit 
// Response to a keypress is usually move to a new page 
// Don't want popups 'cos people block 'em! 
//Identify the scan codes of the keys we want to use ..... 
Key1 = 49 
Key2 = 50 
Key3 = 51 
Key4 = 52 
// The "Key1n" variables pick up the use of the numeric keypad 
// Only works if "numlock" is set 
Key1n = 97 
Key2n = 98 
Key3n = 99 
Key4n = 100 
KeyK = 75  
KeyT = 84 
KeyF = 70 
KeyB = 66 
KeyP = 80
KeyV = 86
//
// Check cookie to choose correct page to show when
// KeyV is hit to turn voicing On/Off
//
sound = document.cookie.split("=")[1]
voice = "./VoiceOn.html"
if (sound == "yes") {voice = "./VoiceOff.html"}
// 
// Sound On/Off Cookie Handling
// 


function flipSound() { 
ss = document.cookie.split("=")[1]
if (ss == "yes") {ss = "no"} else {ss = "yes"}
expireDate = new Date
expireDate.setMonth(expireDate.getMonth()+6)
document.cookie = "value = " + ss + ";Expires=" + expireDate.toGMTString()
return ss
}

// This function is called whenever a key is pressed 
// The first clause of the "if" statement picks up the keypress if we 
// are using Netscape, Firefox or Opera. 
// The "else" clause is for IE 
 
function keyHit(evt) { 
if (evt) { thisKey = evt.which }
 else 
{ thisKey = window.event.keyCode }
 
if (thisKey == Key1 | thisKey == Key1n) {if (Dest1 != null) document.location.href=Dest1 } 
if (thisKey == Key2 | thisKey == Key2n) {if (Dest2 != null) document.location.href=Dest2 } 
if (thisKey == Key3 | thisKey == Key3n) {if (Dest3 != null) document.location.href=Dest3 } 
if (thisKey == Key4 | thisKey == Key4n) {if (Dest4 != null) document.location.href=Dest4 } 
if (thisKey == KeyF ) {history.forward()} 
if (thisKey == KeyB ) {history.back()} 
if (thisKey == KeyV ) {flipSound();window.location = voice } 
if (thisKey == KeyT ) {if (Tellme != null) window.location = Tellme } 
if (thisKey == KeyK ) {window.location = './keystrokes.html'} 
if (thisKey == KeyP ) {window.location = './playerkeys.html'} 
} 
 
// End hiding script -->

