 function menuOptionChoosen(menuChoice)
  {
   createTopic(menuChoice);
   parent.actie_frame.document.clear();
   parent.actie_frame.document.close();
   switch(menuChoice)
    {
     case "home":      
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/red.html";
     break
     case "arcade":
       parent.sub_topic_nav_menu_frame.document.location.href="../../topics/arcade/nav_balk.html";
       parent.actie_frame.document.location.href="../../topics/arcade/arcade.html";      
     break
     case "atari 2600":
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/brown.html";
     break
     case "cocktails":
      parent.sub_topic_nav_menu_frame.document.location.href="../../topics/cocktails/nav_balk.html";
      parent.actie_frame.document.location.href="../../topics/cocktails/cocktails.html";
     break
     case "history":
      parent.sub_topic_nav_menu_frame.document.location.href="../../topics/future/nav_balk.html";
      parent.actie_frame.document.location.href="../../topics/future/future.html";
     break
     case "kiting":
      parent.sub_topic_nav_menu_frame.document.location.href="../../topics/kiting/nav_balk.html";
      parent.actie_frame.document.location.href="../../topics/kiting/kiting.html";
     break
     case "links":
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/blue.html";
     break
     case "linux":
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/magneta.html";
     break
     case "misc":
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/orange.html";
     break
     case "sokkerwei":
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/gray.html";
     break
     case "tools":
      parent.sub_topic_nav_menu_frame.document.location.href="../../frames/menu/black.html";
      parent.actie_frame.document.location.href="../../topics/purple.html";
     break
     default: { alert("helaas pindakaas"); } break
    } 
  }



  function createTopic(topicToBeCreated)
   {

   parent.topic_display.document.clear();

    parent.topic_display.document.write('<html><head></head><body bgcolor="black"><center>');
    parent.topic_display.document.write('<table border="1" width="100%" height="100%" cellspacing="0" cellpadding="0">');
    parent.topic_display.document.write('<tr><td width="*"></td><td width="31"></td><td width="*"></td></tr><tr><td width="*"></td><td width="31" rowspan="0" colspan="0" bgcolor="white"><center>');
    for (teller=0;teller<topicToBeCreated.length;teller++)
     {
      karakter=topicToBeCreated.charAt(teller);
      if (karakter==" ")
       karakter="space";
      parent.topic_display.document.write('<img src="../../pics/letters/'+karakter+'.gif" alt="a"><br>');
     }
   parent.topic_display.document.write('</center></td><td width="*"></td></tr><tr><td width="*"></td><td width="31"></td><td width="*"></td></tr>');
   parent.topic_display.document.write('</table></center></body></html>');
   parent.topic_display.document.close();
  }

//----------------------------------------------------------//
  function getCookie(NameOfCookie)
     {
      if (document.cookie.length > 0)
       {              
        begin = document.cookie.indexOf(NameOfCookie+"=");       
        if (begin != -1)
         {           
          begin += NameOfCookie.length+1;       
          end = document.cookie.indexOf(";", begin);
          if (end == -1) end = document.cookie.length;
           return unescape(document.cookie.substring(begin, end));
         } 
       }
      return null;
     }

   function setCookie(NameOfCookie, value, expiredays)
    {
     var ExpireDate = new Date ();
     ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
     document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
    }

   function delCookie (NameOfCookie)
    {
     if (getCookie(NameOfCookie))
      {
       document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
      }
    }



   

