$(document).ready(function(){	
	$("#imgDestaque").easySlider({
		auto: true, 
		continuous: true
	});
});

$(document).ready(function() {  
    // cache references to the input elements into variables  
    var passwordField = $('input[name=pass]');  
    var emailField = $('input[name=mem]');  
    // get the default value for the email address field  
    var emailFieldDefault = emailField.val();  
    // add a password placeholder field to the html  
    passwordField.after('<input id="passwordPlaceholder" name="passwordPlaceholder" type="text" value="Senha" autocomplete="off" />');  
    var passwordPlaceholder = $('#passwordPlaceholder');  
   // show the placeholder with the prompt text and hide the actual password field  
    passwordPlaceholder.show();  
    passwordField.hide();  
    // when focus is placed on the placeholder hide the placeholder and show the actual password field  
    passwordPlaceholder.focus(function() {  
        passwordPlaceholder.hide();  
        passwordField.show();  
        passwordField.focus();  
    });  
    // and vice versa: hide the actual password field if no password has yet been entered  
    passwordField.blur(function() {  
        if(passwordField.val() == '') {  
            passwordPlaceholder.show();  
            passwordField.hide();  
        }  
    });  
    // when focus goes to and moves away from the email field, reset it to blank or restore the default depending if a value is entered  
    emailField.focus(function() {  
        if(emailField.val() == emailFieldDefault) {  
            emailField.val('');  
        }  
    });  
    emailField.blur(function() {  
        if(emailField.val() == '') {  
            emailField.val(emailFieldDefault);  
        }  
    });  
});


function Identifica(frm){
	   
	//var str = frm.usuario.value;
	if ((frm.usuario.value == '') || (frm.usuario.value == 'Usuário')){   
		alert('Usuário em branco.\n\nPor favor preencha corretamente.');
		frm.usuario.focus();
		return false;   
	}	
	//var str2 = frm.password.value;
	if (frm.password.value == '') {	
		alert("Senha em branco.\n\nPor favor preencha corretamente.");
		frm.passwordPlaceholder.focus();
		return false;	
	}
	if(frm.password.value == 'Senha'){
		alert("Senha em branco.\n\nPor favor preencha corretamente.");
		frm.passwordPlaceholder.focus();
		return false;
	}
	return true;
}

