title: switch not activating function
body: <p>This is supposed to display different things when a different OS is detected, but it shows nothing. I know the function works, because if I call the function without a switch it shows. Also, the sublime text links were just a test. Here is my code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
              function Mac(){
                  document.write("&lt;a href=\"http:\/\/www.sublimetext.com\/\"&gt;Sublime Text&lt;\/a&gt;");
                  document.write("This is the Mac instructions";)
              }
          &lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              function Windows(){
                  document.write("&lt;a href=\"http:\/\/www.sublimetext.com\/\"&gt;Sublime Text&lt;\/a&gt;");
                  document.write("This is the Windows instructions";)
              }
          &lt;/script&gt;
      &lt;/div&gt;
      &lt;div class="text-center"&gt;
          &lt;h1&gt;Lesson 1: Prerequisites&lt;/h1&gt;
              &lt;script&gt;
                  switch(OSName) {
                      case "Mac":
                          Mac()
                          break;
                      default:
                          Windows()
                  }
              &lt;/script&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>And I am getting OSName from above:</p>
  
  <pre><code>            &lt;script&gt;
              var OSName="Unknown OS";
              if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
              if (navigator.appVersion.indexOf("Mac")!=-1) OSName="Mac";
              if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
              if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
              &lt;/script&gt;
  </code></pre>
  
  <p>And I know that works because I can display it with:</p>
  
  <pre><code>document.write('Your operating system has been determined as '+OSName +'.');
  </code></pre>