$(document).ready(function(){
  $('form.sideform input[@type=text],form.sideform input[@type=password]').each(function(){
    var label = $('label', $(this).parent());
    var labelText = label.html();
    label.css('display', 'none');
    
    $(this).val(labelText).addClass('faded').focus(function(){
      
      //console.log(this.id + ' focus');
      if($(this).val() == $('label', $(this).parent()).html())
      {
        //console.log('Value is still the same as it was');
        
        $(this).val('');
      }
      $(this).removeClass('faded');
    }).blur(function(){
      //console.log(this.id + ' blur');
      
      if($(this).val() == '')
      {
        $(this).addClass('faded').val($('label', $(this).parent()).html());
      }
      
    })
    
  });
});