/*
 * jQuery Think Web Form Plugin
 * http://www.thinkweb.co.nz/jquery/form/
 * Copyright (c) 2010 Think Web Ltd
 * Version: 1.0 (06/05/2010)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.3 or later
 */
;(function($) {

var ver = '1.0';

$.fn.twform = function() {

  //first, add "required" asterisks to the required fields
  $('.tw-form').children('div.required').children('label').append(' <span class="req">*</span>');

  //add focus and blur events to each form row
  $('.tw-form').find(':input').focus(function() {
    $(this).parent('.input').addClass('focused');
  }).blur(function() {
    $(this).parent('.input').removeClass('focused');
  });

};

})(jQuery);

