      // Get the HTTP Object
      function getHTTPObject(){
      if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
      else if (window.XMLHttpRequest) return new XMLHttpRequest();
      else {
      alert("Your browser does not support AJAX.");
      return null;
      }
      }
       
      // Change the value of the outputText field
      function setLangOutput(){
      if(httpObject.readyState == 4){
      document.getElementById('lang-top').innerHTML = httpObject.responseText;
      } else {
      document.getElementById('lang-top').innerHTML = httpObject.readyState;
      }
       
      }
       
      // Implement business logic
      function showLangTop(){
        httpObject = getHTTPObject();
        if (httpObject != null) {
          httpObject.open("GET", "php/languages-top.php?status=1", true);
          httpObject.send(null);
          httpObject.onreadystatechange = setLangOutput;
        }
      }
       
      // Implement business logic
      function hideLangTop(){
        httpObject = getHTTPObject();
        if (httpObject != null) {
          httpObject.open("GET", "php/languages-top.php?status=0", true);
          httpObject.send(null);
          httpObject.onreadystatechange = setLangOutput;
        }
      }
       
      var httpObject = null;


