var agt=navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
this.nav4 = (this.nav && (this.major == 4));
this.nav5 = (this.nav && (this.major == 5));
this.nav4up = this.nav && (this.major >= 5);
this.ie = (agt.indexOf("msie") != -1);
this.ie4 = (this.ie && (this.major == 4));
this.ie5 = (this.ie && (this.major == 5));
this.ie5up = this.ie && (this.major >= 5);
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
//indexOf( int ch, int fromIndex );
//alert(substring('abcdef', 2, 3));
//alert('User Agent: ' + ua + ' pos of MSIE in ua string: ' + msie + ' pos of decimal after MSIE: ' + ua.indexOf(".",msie));
//alert(substring(msie+5, ua.indexOf( ".", msie)));
//alert(parseInt (ua.substring(msie+5, ua.indexOf( ".", msie))));
var fileID = null;
var df$ = null;
var rogersOpen = false;
var referer = "./";
var winstat = false;
var str = null;
baseURL=new Array (
"./",
"http://margush.com/philip/",
"http://margush.com/philip/",
"http://margush.com/philip/",
"http://meltingpot.fortunecity.com/headfort/79/",
"http://callisto.guestworld.tripod.lycos.com/wgb/wgbsign.dbm?owner=",
"http://callisto.guestworld.tripod.lycos.com/wgb/wgbview.dbm?owner=",
"http://www.cs.uakron.edu/~margush/personal/",
"http://www.geocities.com/pmargush/",
"http://margush.com/philip/",
"http://margush.com/philip/",
"http://phil_18951.tripod.com/",
"http://www.lehigh.edu/~emm2/"
);
FN=new Array (
"indexMA3.htm#WWWHO",
"statrd00 ",
"steinbg1 ",
"fourthst ",
"moving ",
"altoona ",
"510fift0 ",
"llyswen0 ",
"debauch ",
"indexMA3.htm#WWWHO"
);
function DispErr(msg,url,linnbr){
winOpen('errMsg= '+msg+'\n
URL= '+url+'\n
linNbr= '+linnbr+'\n
history.length= '+history.length+'\n
parent.length= '+parent.length+'\n
Desc= '+df$+'\n
pathName= '+location.pathname+'\n
name= '+ location.hash+'\n
host= '+ location.host+'\n
port= '+ location.port+'\n
href= '+ location.href)
return true
}
window.onerror=DispErr;
function addName(pathIdx,fileName) {
var ext=".htm#DOCTOP";
re=/ /gi;
return baseURL[pathIdx].concat(fileName.replace(re, ext));
}
var drawKnob = null;
function rogers(pathIdx,fileName,name,inWidth,inHeight,mode) {
if ((fileName == "nil ") || (fileName == "nil")){return;}
//mode: 0=minimal, 1=w/scrollbars, 2=w/all
var aw=790;
var ah=552;
var vLoc=0;
var hLoc=0;
var width=inWidth;
var height=inHeight;
str="resizable,"
if (window.screen) {
aw = screen.availWidth - 10;
ah = screen.availHeight - 20;
//alert("w"+aw+" "+inWidth+" h"+ah+" "+inHeight+"mode: "+mode);
if ((inWidth > aw) || (inHeight > ah) || (mode > 0)) {
str +="scrollbars,";
if (mode == 2) {
str +="toolbar,location,status,menubar,";
ah -= 140; }
else {
ah -= 10;}}}
//if ((inWidth > aw) || (inWidth < -1)) {alert("w"+aw); width=aw;}
if ((inWidth > aw) || (inWidth < 1)) {width=aw;}
//if ((inHeight > ah) || (inHeight < 1)) {alert("h"+ah); height=ah;}
if ((inHeight > ah) || (inHeight < 1)) {height=ah;}
vLoc = (ah - height) / 2;
hLoc = (aw - width) / 2;
str += "left="+hLoc+",screenX="+hLoc+",top="+vLoc+",screenY="+vLoc;
str += ",width="+width+",innerWidth="+width+",height="+height+",innerHeight="+height;
drawKnob=window.open(addName(pathIdx,fileName), name, str);
drawKnob.focus();
}
function getScpt(Stype, fileID) {
var getScptStr='';
if (Stype == 1) {
getScptStr='';
}
else {
getScptStr='';
};
return getScptStr;
}
function navOver(iNom,dir,over) {
if (!document.images) {return};
whichIm = document.images[iNom];
if (over) { whichIm.src = "image/b_" + dir + "_over.gif" }
else { whichIm.src = "image/b_" + dir + ".gif" }
}
function navPress(iNom,dir,press) {
whichIm = document.images[iNom];
if (press) { whichIm.src = "image/b_" + dir + "_down.gif" }
else { whichIm.src = "image/b_" + dir + ".gif" }
}
function fetchURL(pathIdx, fileIdx) {
window.location.href=addName(pathIdx,FN[fileIdx]);
}
function getURL(pathIdx, fileName) {
if (pathIdx==-1){pathIdx=0};
if(parent.frames.length!=0) {
window.top.location.href=addName(pathIdx,fileName);
}
else {
window.top.location.href=addName(pathIdx,fileName);
}
}
function doURL(pathIdx, fileName) {
if (pathIdx==-1){pathIdx=0};
rogers(pathIdx,fileName,'doURL',-1,-1,2);
}
function winOpen(msg) {
msgWin=window.open("","winOpen","top=20,left=200,width=400,height=200,status=no,toolbar=no,menubar=no",'_top');
msgWin.document.open()
msgWin.document.write("