$(document).ready(function(){
    $("#nav li").hover(
        function(){ $("ul", this).fadeIn("slow"); }, 
        function() { } 
    );
    if (document.all) {
        $("#nav li").hoverClass ("sfHover");
    }
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};

function change_page_language(to) {
  $.get('typea_ajax.asp',{action: 'change_page_language', 'to': to}, function(data) {
    $('#debug').html('halo ' + data);
  });
  window.location.reload();

  return false;
}

/* old without using jquery in index.asp
      sfHover = function() {
        var sfEls = document.getElementById("nav").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
          sfEls[i].onmouseover = function() {
            this.className += " sfhover";
          }
          sfEls[i].onmouseout = function() {
            this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
          }
        }
      }

      if (window.attachEvent) window.attachEvent("onload", sfHover);
*/