$().ready( function() {

	webmail();

});

function webmail(){
	$('input[name=username]').focus(function() {
		if( 'usuário' == $(this).val() ) $(this).val('');
		if( 'user' == $(this).val() ) $(this).val('');
		if( 'usuario' == $(this).val() ) $(this).val('');
	});
	$('input[name=username]').blur(function () {
        if( '' == $(this).val() && 'pt' == tGet['language'] ) $(this).val('usuário');
		if( '' == $(this).val() && 'en' == tGet['language'] ) $(this).val('user');
		if( '' == $(this).val() && 'es' == tGet['language'] ) $(this).val('usuario');
    });
	
	$('input[name=password]').focus(function() {
		if( 'senha' == $(this).val() ) {
			$(this).parent().prepend('<input class="pass" id="senha" name="password" type="password" value="" />');
			$(this).remove();
			$('input[name=password][type=password]').focus();
		}
	});
	$('input[name=password]').blur(function () {
         if( '' == $(this).val() ) $(this).val('senha');
    });
}
