function showThing(whatToShow, target){
  var t = "none;";
  if (document.all){
    t = document.all[target];
  }else if (document.getElementById(target)){
    t = document.getElementById(target);
  }
  var wip = "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">";
  wip += "<tr><td width=\"250\"><img name=midImg src=\""+thingList[whatToShow].img+"\" /></td>";
  wip += "<td width=\"200\" valign=\"top\" align=\"left\" style=\"padding:5px;\">";
  if (thingList[whatToShow].url != ""){
    wip += "<div class=\"rightPaneTitle\"><a href='"+thingList[whatToShow].url+"'><b>"+whatToShow+"</b></a></div>";
  }else{
    wip += "<div class=\"rightPaneTitle\"><b>"+whatToShow+"</b></div>";
  }
  wip += "<div class=\"rightPaneText\">"+thingList[whatToShow].text+"</div>";
  wip += "<div class=\"rightPaneImg\">"+buildImg(whatToShow)+"</div></td></tr>";
  wip += "</table>";
  t.innerHTML = wip;
}

function showText(whatToShow, target){
 var t = "none;";
  if (document.all){
    t = document.all[target];
  }else if (document.getElementById(target)){
    t = document.getElementById(target);
  }
  var wip = "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>";
  wip += "<div class=\"rightPaneScreen\">"+thingList[whatToShow].text+"</div>";
  wip += "</td></tr></table>";
  t.innerHTML = wip;
}

function buildImg(whatToShow){
  var stuff = "";
  if (thingList[whatToShow].miniImg){
    var t = thingList[whatToShow].miniImg;
    stuff += "<table cellpadding=0 cellspacing=1 border=0><tr>";
    for (var i=0; i<t.length; i++){
      stuff += "<td><img src=\"i/s/"+t[i]+"_off.jpg\" name=\"s_"+t[i]+"\" onmouseover=over(\""+t[i]+"\") onmouseout=out(\""+t[i]+"\") onmousedown=showImg(\""+t[i]+"\") ></td>";
    }
    stuff += "</tr></table>";
  }
  return stuff;
}

function showImg(tgt){
  if (document.all){
    document.all.midImg.src = "i/"+tgt+".jpg";
  }else{
    document.midImg.src = "i/"+tgt+".jpg";
  }
}

function over(tgt){
  if (document.all){
    document.all["s_"+tgt].src = "i/s/"+tgt+"_on.jpg";
  }else{
    document["s_"+tgt].src = "i/s/"+tgt+"_on.jpg";
  }
}

function out(tgt){
  if (document.all){
    document.all["s_"+tgt].src = "i/s/"+tgt+"_off.jpg";
  }else{
    document["s_"+tgt].src = "i/s/"+tgt+"_off.jpg";
  }
}