/*
  @project  2page
  @name jquery.page-stuff.js
  @created  2008-12-17, 12:13:03
  @author lukasz.tyrala
  @description  jQuery powered code for 2page
*/

$(document).ready(function(){

  // INPUTS HOVERING
  // Makes inputs blank when input gets focus.

  $("form input.tgg").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

  $('.about').before('<span class="about-before"></span>');
  $('.about').after('<span class="about-after"></span>');

}); // /document.ready
