﻿jQuery(function ($) {

    $('.passwordText').show();
    $('.password').hide();

    $('.passwordText').focus(function () {
        $('.passwordText').hide();
        $('.password').show();
        $('.password').focus();
    });

    var toggle = function (selector, text) {
        $(selector).val(text);
        $(selector)
      .bind('focus', function () { if ($(this).val() == text && enteredText == '') { $(this).val(''); } })
      .bind('blur', function () { if ($(this).val() == '') { $(this).val(text); } });
    };
    if (enteredText != '') { loginText = enteredText; }
    toggle('.login', loginText);
    toggle('.passwordText', passwordText);
});


