// JavaScript Document

// Maybe I'll write a function that will check the select boxes, based on a second-delay timer

function revLink(x) {
  if (x == 0) { document.getElementById("goRev").href = "http://jeffludwig.com/"; }
  if (x == 1) { document.getElementById("goRev").href = "http://jeffludwig.com/finalfantasy/"; }
  if (x == 2) { document.getElementById("goRev").href = "http://jeffludwig.com/wizardry8/"; }
  if (x == 3) { document.getElementById("goRev").href = "http://jeffludwig.com/wizardswarriors/"; }
}

function modLink(x) {
  if (x == 0) { document.getElementById("goMod").href = "http://jeffludwig.com/"; }
  if (x == 1) { document.getElementById("goMod").href = "http://jeffludwig.com/finalfantasy/download.php"; }
  if (x == 2) { document.getElementById("goMod").href = "http://jeffludwig.com/wizardry8mod/"; }
  if (x == 3) { document.getElementById("goMod").href = "http://jeffludwig.com/wizardswarriors/download.php"; }
}

function toolLink(x) {
  if (x == 0) { document.getElementById("goTool").href = "http://jeffludwig.com/"; }
  if (x == 1) { document.getElementById("goTool").href = "http://jeffludwig.com/wizardswarriors/editor-basics.php"; }
}


var browser=navigator.appName;
  //var b_version=navigator.appVersion;
  //var version=parseFloat(b_version);
  // alert("Browser name: " + browser + "<br />" + "Browser version: " + version);

if (browser=="Netscape") { t=setTimeout("timedLink()",1000); }

function timedLink()
{
  revLink(document.getElementById("reviewChoose").selectedIndex);
  modLink(document.getElementById("modChoose").selectedIndex);
  toolLink(document.getElementById("toolChoose").selectedIndex);
  t=setTimeout("timedLink()",1000);
}
