// JavaScript Document
$(document).ready(function(){
  /* $("input#showabout").change(function () {
    $(this).hide();
    if (this.checked == true) {
      $.post("/disp/shared/ajaxprofile.php", { a: "um"},
        function(data){
          alert("Data Loaded: " + data);
      });

    }
    else $(this).fadeOut();
  }); */

  $("#swap_reg").click(function () {
    $("#register").hide();
    $("#login").fadeIn(1000);
    return false;
  });
  $("#swap_log").click(function () {
    $("#register").hide();
    $("#login").fadeIn(1000);
    return false;
  });
  $("#custom_field").hide();


  //menu top higlight
  /*var links=$("#nav ul li a");
  $("#nav ul li a").bind("click", function(e)
  {
    $("#nav ul li a").removeClass("this");
  });
  */

});

function custom_detect(that) {
  if (that.options[that.selectedIndex].value == "custom") $("#custom_field").show(); else $("#custom_field").hide();
}

function dropdown_link(that) {
  if (that.options[that.selectedIndex].value != "selected") location.href = that.options[that.selectedIndex].value;
}
