// This adds 'placeholder' to the items listed in the jQuery .support object. 
var $j = jQuery.noConflict();
// This adds placeholder support to browsers that wouldn't otherwise support it. 
$j(function() {
   if(!$j.support.placeholder) { 
      var active = document.activeElement;
      $j(':text').focus(function () {
         if ($j(this).attr('placeholder') != '' && $j(this).val() == $j(this).attr('placeholder')) {
            $j(this).val('').removeClass('hasPlaceholder');
         }
      }).blur(function () {
         if ($j(this).attr('placeholder') != '' && ($j(this).val() == '' || $j(this).val() == $j(this).attr('placeholder'))) {
            $j(this).val($j(this).attr('placeholder')).addClass('hasPlaceholder');
         }
      });
      $j(':text').blur();
      $j(active).focus();
      $j('form:eq(0)').submit(function () {
         $j(':text.hasPlaceholder').val('');
      });
   }
});

