theme=getTheme();

if ( theme == "Earth" ) {
  // Now for the style sheet
  document.write("<link rel=\"stylesheet\" href=\"/css/earth/logo.css\">");
  // Now for the table
  document.write("<div id=\"logo\">");
  document.write("<table class=\"logo_table\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
  document.write("<tr>");
  document.write("<td align=\"center\">");
  if ( navigator.userAgent.indexOf("MSIE 6.0") != -1
       ||
       navigator.userAgent.indexOf("MSIE 5.0") != -1
     ) {
    document.write("<img class=\"link\" src=\"/JS/OS/non_transparent/png/ostromscience_earth.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
  else {
    document.write("<img class=\"link\" src=\"/JS/OS/transparent/png/ostromscience_earth.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
}
else if ( theme == "Mars" ) {
  // Now for the style sheet
  document.write("<link rel=\"stylesheet\" href=\"/css/mars/logo.css\">");
  // Now for the table
  document.write("<div id=\"logo\">");
  document.write("<table class=\"logo_table\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
  document.write("<tr>");
  document.write("<td align=\"center\">");
  if ( navigator.userAgent.indexOf("MSIE 6.0") != -1
       ||
       navigator.userAgent.indexOf("MSIE 5.0") != -1
     ) {
    document.write("<img class=\"link\" src=\"/JS/OS/non_transparent/png/ostromscience_mars.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
  else {
    document.write("<img class=\"link\" src=\"/JS/OS/transparent/png/ostromscience_mars.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
}
else if ( theme == "Mercury" ) {
  // Now for the style sheet
  document.write("<link rel=\"stylesheet\" href=\"/css/mercury/logo.css\">");
  // Now for the table
  document.write("<div id=\"logo\">");
  document.write("<table class=\"logo_table\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
  document.write("<tr>");
  document.write("<td align=\"center\">");
  if ( navigator.userAgent.indexOf("MSIE 6.0") != -1
       ||
       navigator.userAgent.indexOf("MSIE 5.0") != -1
     ) {
    document.write("<img class=\"link\" src=\"/JS/OS/non_transparent/gif/ostromscience_mercury.gif\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
  else {
    document.write("<img class=\"link\" src=\"/JS/OS/transparent/png/ostromscience_mercury.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
}
else if ( theme == "Neptune" ) {
  // Now for the style sheet
  document.write("<link rel=\"stylesheet\" href=\"/css/neptune/logo.css\">");
  // Now for the table
  document.write("<div id=\"logo\">");
  document.write("<table class=\"logo_table\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
  document.write("<tr>");
  document.write("<td align=\"center\">");
  if ( navigator.userAgent.indexOf("MSIE 6.0") != -1
       ||
       navigator.userAgent.indexOf("MSIE 5.0") != -1
     ) {
    document.write("<img class=\"link\" src=\"/JS/OS/non_transparent/gif/ostromscience_neptune.gif\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
  else {
    document.write("<img class=\"link\" src=\"/JS/OS/transparent/png/ostromscience_neptune.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
}
else if ( theme == "Pluto" ) {
  // Now for the style sheet
  document.write("<link rel=\"stylesheet\" href=\"/css/pluto/logo.css\">");
  // Now for the table
  document.write("<div id=\"logo\">");
  document.write("<table class=\"logo_table\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
  document.write("<tr>");
  document.write("<td align=\"center\">");
  if ( navigator.userAgent.indexOf("MSIE 6.0") != -1
       ||
       navigator.userAgent.indexOf("MSIE 5.0") != -1
     ) {
    document.write("<img class=\"link\" src=\"/JS/OS/non_transparent/png/ostromscience_pluto.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
  else {
    document.write("<img class=\"link\" src=\"/JS/OS/transparent/png/ostromscience_pluto.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
}
else { // Venus
  // Now for the style sheet
  document.write("<link rel=\"stylesheet\" href=\"/css/venus/logo.css\">");
  // Now for the table
  document.write("<div id=\"logo\">");
  document.write("<table class=\"logo_table\" align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" >");
  document.write("<tr>");
  document.write("<td align=\"center\">");
  if ( navigator.userAgent.indexOf("MSIE 6.0") != -1
       ||
       navigator.userAgent.indexOf("MSIE 5.0") != -1
     ) {
    document.write("<img class=\"link\" src=\"/JS/OS/non_transparent/png/ostromscience_venus.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
  else {
    document.write("<img class=\"link\" src=\"/JS/OS/transparent/png/ostromscience_earth.png\" border=\"0\" onClick=\"location='/'\" alt=\"OSTROMSCIENCE\">");
  }
}

// Now for the rest of the story
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<div id=\"copyright\">");
document.write("Copyright&nbsp;&copy;&nbsp;1998-2011&nbsp;Eric&nbsp;L.&nbsp;Ostrom&nbsp;(Ostrom&nbsp;Science&nbsp;LLC&nbsp;2005-2011)");
document.write("</div>");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");

