$(function(){
	$("#login_password").hide();
	$("#label_mot_passe_rapide").show();
    $("#login_courriel").val("Courriel");

    $("#mots_cles_rapide").focus(function(){
    	if ($(this).val() == 'Mots-clés') {
    		$(this).val("");
    	}
    });

    $("#mots_cles_rapide").blur(function(){
    	if ($(this).val() == "") {
    		$(this).val('Mots-clés');
    	}
    });

    $("#login_courriel").focus(function(){
    	if ($(this).val() == 'Courriel') {
    		$(this).val("");
    	}
    });

    $("#login_courriel").blur(function(){
    	if ($(this).val() == '') {
    		$(this).val("Courriel");
    	}
    });

    $("#infolettre_courriel").focus(function(){
    	if ($(this).val() == 'Votre courriel') {
    		$(this).val("");
    	}
    });

    $("#infolettre_courriel").blur(function(){
    	if ($(this).val() == '') {
    		$(this).val("Votre courriel");
    	}
    });

    $("#comment_login_courriel").focus(function(){
    	if ($(this).val() == 'Courriel') {
    		$(this).val("");
    	}
    });

    $("#comment_login_courriel").blur(function(){
    	if ($(this).val() == "") {
    		$(this).val('Courriel');
    	}
    });

    $("#label_mot_passe_rapide").focus(function(){
    	$("#label_mot_passe_rapide").hide();
    	$("#login_password").show();
    	$("#login_password").focus();
    });

    $("#login_password").blur(function(){
    	if ($(this).val() == "") {
    		$("#login_password").hide();
    		$("#label_mot_passe_rapide").show();
    	}
    });
    
    
    $("#entete .connexion input.bouton").hide();
	$("#entete .connexion a.bouton").css("display","inline-block");
	
	$("#entete .connexion a.bouton").click(function(){
		$(this).parent().submit();
	});
});