
  /* Modified by Alex Spooner, 2009-05-26 02:44:38 EST */
  
  // clientLogos
  function changeClientLogo()
  {
    $("#clientlogos").fadeOut("slow", function(){
      var stamp = new Date();
      $("#clientlogos").load("/includes/clients.php?stamp=" + stamp.getTime(),function(){
        $("#clientlogos").fadeIn("slow");
        setTimeout("changeClientLogo()",5000);
      });
    });
  }

  // POST JSON
  $.postJSON = function(url, data, callback) { $.post(url, data, callback, "json"); };
  
  $(document).ready(function(){

    // FANCYBOX
    $("a.fancybox").fancybox({
      'overlayShow'     : false,
      'zoomSpeedIn'     : 600,
      'zoomSpeedOut'    : 500,
      'easingIn'        : 'easeOutBack',
      'easingOut'       : 'easeInBack'
    }); 

    // LHF
    $("#LHF input")
    .focus(function(){    
      var v = $(this).val();      
      var t = $(this).attr("title");      
      if (v==t) $(this).val("");
    })
    .blur(function(){    
      var v = $(this).val();      
      var t = $(this).attr("title");      
      if (v=="") $(this).val(t);
    });
    
    changeClientLogo(); 

  });
