var rtsver = "1.0.6"; var mnunum = 0; function DrawMenu() { var oldie = false; mnunum = 0; document.write("
"); document.write("\n"); // old bgcolor was whitesmoke
document.write("home page\n");
document.write(" Programming: Videos: Other: \n");
//DrawFirefox("/opinions.htm","/opinions.htm","/opinions.htm","web browser tips"); // remove link to silly browser opinions page
/*document.write(" | ");
if (navigator.appVersion.indexOf("MSIE") != -1) {
if (parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE") + 5)) < 8) oldie = 1;
}
if (!oldie && (document.location.href == "http://ad510.50webs.com/" || document.location.href == "http://ad510.50webs.com/rts/" || document.location.href == "http://ad510.50webs.com/rts/index.htm" || document.location.href == "http://ad510.50webs.com/shootcity.htm")) {
document.write(" Visit my new website! ");
}
window.onload = load;
}
function DrawMenuRTS() {
DrawMenuItem("index.htm","","Afdarts home"," | ");
//DrawMenuItem("https://downloads.sourceforge.net/downinga-rts/rts" + rtsver + ".exe","","download (v" + rtsver + ")"," | ");
document.write("download (v" + rtsver + ") | ");
DrawMenuItem("http://andrewd.50webs.com/afdartsdevelopment.htm","","development"," | ");
DrawMenuItem("theory.htm","","code theory"," | ");
DrawMenuItem("copymusic.htm","","custom music"," | ");
DrawMenuItem("https://sourceforge.net/projects/downinga-rts","","more from SourceForge","");
}
function DrawMenuItem(urlstr,titlestr,textstr,endstr) {
var regexp = new RegExp(urlstr);
var match = regexp.exec(window.location.href);
var dstr = "";
if (endstr == undefined) {
endstr = ""; } if (titlestr != "") { dstr += " "; } if (match != null) { dstr += ""; } dstr += "" + textstr + ""; if (match != null) { dstr += ""; } mnunum = mnunum + 1; dstr += endstr + "\n"; document.write(dstr); } function ShowMenuTitle(idobj,dispstr) { document.getElementById(idobj).style.display = dispstr; } function ShowTitle(idobj,e,objleft) { var mousex = 0; var mousey = 0; // get mouse pos (thanks to quirksmode.org/js/events_properties.html) if (e.pageX || e.pageY) { mousex = e.pageX; mousey = e.pageY; } else if (e.clientX || e.clientY) { mousex = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; mousey = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } // show title if (objleft != undefined) { mousex = objleft; } document.getElementById(idobj).style.top = (mousey + 30) + "px"; document.getElementById(idobj).style.left = mousex + "px"; document.getElementById(idobj).style.display = "block"; } function DrawEmai1() { document.write("email me"); } function DrawFirefox(bdstr,fxstr,opstr,titlestr) { // 7is7.com/software/firefox/futf_dyn.html has more buttons if (titlestr == undefined) { titlestr = ""; } if (navigator.appName == "Netscape") { // reader doesn't need to get firefox if he/she is already using it DrawMenuItem(fxstr,titlestr,"",""); } else if (navigator.appName == "Opera") { DrawMenuItem(opstr,titlestr,"",""); } else { DrawMenuItem(bdstr,titlestr,"","") } } function detectBrowser(iestr,gdstr) { var dstr = ""; var tm; if (navigator.appName == "Microsoft Internet Explorer") { dstr += " \n";
dstr += " |