function checkWidth(){
if (navigator.appName.substr(0,4)=="Micr" && document.body.offsetWidth>=951) document.getElementById('tables').style.width="950px";
}

function smallWin(title,w,h,x,y,ttl)
{
if (!ttl) ttl="nuWin";
aWindow=window.open(title, ttl, "width=" + w + ", height=" + h + ", resizable,scrollbars");
aWindow.moveTo(x,y);
}

function remoteURL(title,w,h,x,y)
{
aWindow=window.open(title,"","width=" + w + ", height=" + h + ", resizable,scrollbars,toolbar");
aWindow.moveTo(x,y);
}

function smallWinOld(title,w,h,x,y,ttl)
{
if (!ttl) ttl="nuWin";
aWindow=window.open(title, ttl, "width=" + w + ", height=" + h + ", resizable=yes, scrollbars=yes");
aWindow.moveTo(x,y);
}

var k=null;
var ttl;
function viewShip(shipName,w,h,x,y,ttl) {
if (!ttl) ttl=shipName;
k=window.open("","","width="+w+",height="+h);
k.document.open();
k.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n');
k.document.write('<html xmlns="http://www.w3.org/1999/xhtml">\n');
k.document.write('<head>\n<title>' + ttl + '</title>\n');
k.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />\n');
k.document.write('<meta http-equiv="Content-Style-Type" content="text/css" />\n');
k.document.write('<meta http-equiv="imagetoolbar" content="no" />\n');
k.document.write('<style type="text/css">\nbody{margin:0; padding:0;}\nimg {position:absolute;}\n.close{bottom:2px; right:2px;}\n</style>\n');
k.document.write('</head>\n<body onblur="self.focus()">\n<div>\n');
k.document.write('<img src="IMAGES/' + shipName + '.JPG" alt="" />\n');
k.document.write('<img class="close" src="../BUTTONS/CLOSE.GIF" alt="" onclick="self.close()" />\n');
k.document.write('</div>\n</body>\n</html>');
k.document.close();
k.moveTo(x,y);
}

IE=document.all? 1:0 
if(!IE) document.captureEvents(Event.KEYPRESS); 
document.onkeypress = testKey; 
function testKey(key) 
{ 
k=IE? event.keyCode:key.which; 
if (k>90) k=k-32;
if (k==46) window.location.href = "#top";
if (k==66) window.location.href = "../BOOKS.HTM";
if (k==69) window.location.href = "../EPHEMERA/INDEX.HTM";
if (k==72) window.location.href = "../HELP.HTM";
if (k==76) window.location.href = "../LEGEND.HTM";
if (k==77) window.location.href = "../MAPS.HTM";
if (k==78) window.location.href = "../NOTES-1.HTM";
if (k==82) window.location.href = "../INDEX.HTM";
if (k==84) window.location.href = "../TABLE-1.HTM";
if (k==88) window.location.href = "../TEXTS/INDEX.HTM";
}

