﻿

/*
Ouverture du LOGIN PANEL
*/

$(document).ready(function(){
    
    
    /*Message Alert BETA*/
    
    /*
    if(!$.cookie('renouveau_betawarning') ){ //vérification du cookie
        var betawarning = $('#betawarning')[0];       
        $.cookie('renouveau_betawarning', 'true', { expires: 7 });
        $.blockUI(betawarning, { width: '400px',margin:'-50px 0 0 -200px' });     
        
        $('#beta_ok').click($.unblockUI);           
    }
    */
    
    
    
    /*Controle du Login Panel*/
    $("a.open_login").toggle(
        function(){             
            $(this).parent().find("div.pane_login_form").animate({ height: 'toggle', opacity: 'show'}, "slow"); 
            $(this).addClass("open_login_selected");
            return false;
          
        }, 
         function(){ 
            $(this).parent().find("div.pane_login_form").animate({ height: 'toggle', opacity: 'hide'}, "slow");        
            $(this).removeClass("open_login_selected");
			return false;
        }               
    );
    
    
    $("input.input_password").keydown(function(e){
        if (e.keyCode == 13) {
           __doPostBack($("a.ctl00_ContentPlaceHolder1_btnLogin").attr("id"),'');
		}
	});	
    
});