/* 
  @project myliveshopping
  @name jquery.cs.mls.js
  @created 2008-11-07
  @author  Lukasz Tyrala <l.tyrala[at]gmail.com>
  @description  jQuery powered JavaScript for page effects
*/


$(document).ready(function(){

// INPUTS HOVERING

  $("form fieldset input.input").focus(function() {
      var org_value = $(this).val();          // Get a start value.
      var foc_value = ''                      // Focused value (empty).
      
      var title = $(this).attr("title");      // Get a title attribute...
      
      if (title == org_value)                 // ... and if no user input...
      {
        $(this).val(foc_value);               // ... set the focused value.
      }
      
      $(this).blur(function() {
        if ($(this).val() == '')              // If no input from user...
        {
          $(this).val(org_value);             // ... set the start value.
        }
      }); // /.blur

  }); // /INPUTS HOVERING

}); // /document.ready

