	var  effectCNX = null;
    var  effectPWD = null;
    /*window.addEvent('domready', function() { 
  //time to implement fancy show / hide 
  Element.implement({ 
    //implement show 
    fancyShow: function() { 
      this.fade('in'); 
    }, 
    //implement hide 
    fancyHide: function() { 
      this.fade('out'); 
    } 
  }); 

});*/
    function afficher_bloc_identification(){
    //var myHTMLRequest = new Request.HTML().get();
	    var ovID = $('overlay_identification_global');
	    if(!ovID || ovID == null){
		var ovIDElt =new Element('div', {id: 'overlay_identification_global'});
		    ovIDElt.inject($(document.body));
	    }
	    
	    var aj = "";
	    //alerte(etape_courante);
        /*if(etape_courante.length==2 && (etape_courante.charAt(0)=='5') || (etape_courante.charAt(0) == 5))
            aj = '.';*/
	    //alert( $('overlay_identification_global').innerHTML);
	    var url_i = prefixe_lien_true;
        if( (prefixe_lien_true).substring(prefixe_lien_true.length-1) != '/' )  url_i = url_i + '/';
         url_i = url_i + 'identification/overlay_identification.asp';
        var size_box = 930;
        if(etape_courante!='40'){
            url_i +='?mode=2';
            size_box = 634;
        }
            var req = new Request.HTML({url: url_i,contentType:'text/xhtml',
		            onSuccess: function(html) {
			            $('overlay_identification_global').set('text', '');
				    //alert('SUCCESS : ' + $('overlay_identification_global').innerHTML);
                       //$('overlay_identification').set('html',html);
                       $('overlay_identification_global').adopt(html);
				    //alert('SUCCESS 2: ' + $('overlay_identification_global').innerHTML);
                        load_bloc_identification();
                     
		            },
                  onFailure: function() {
			            $('overlay_identification_global').set('text', 'Impossible de réaliser la demande.');
		            }
	            });
            req.send();
            
           
                
            //init_identification();
            //$('overlay_identification').load('./identification/overlay_identification.asp');
           SqueezeBox.open($('overlay_identification_global'), {
				    handler: 'adopt',
				    size: {x: size_box, y: 360}
			});
			
			$('overlay_identification_global').setStyle("display","block");
			
    }
    
    function load_bloc_identification(){
        var aj = "";
	    //alerte(etape_courante);
        /*if(etape_courante.length==2 && (etape_courante.charAt(0)=='5') || (etape_courante.charAt(0) == 5))
            aj = '.';*/
	    
	        var url_i = prefixe_lien_true;
        if( (prefixe_lien_true).substring(prefixe_lien_true.length-1) != '/' )  url_i = url_i + '/';
         url_i = url_i + 'identification/identification.asp';
	    
         
        var req = new Request.HTML({url:url_i,contentType:'text/xhtml',
		            onSuccess: function(html) {
			            $('column_identification').set('text', '');
                       //$('overlay_identification').set('html',html);
                       $('column_identification').adopt(html);
				      init_identification();
		            },
                  onFailure: function() {
			            $('column_identification').set('text', 'Impossible de réaliser la demande.');
		            }
	            });
            req.send();
    }
    
    function init_identification(){
		//alert('init_identification');
		/*if($('identification_btnOK')){
			$('identification_btnOK').addEvent('click',function(){
			ask_identifier();
			});
		}*/
        
        if($('frm_cnx')){
            $('frm_cnx').addEvent('submit', function(e) {
                e.stop();
                ask_identifier();
            });
        }
        
        /*if($('identification_btnOKPWD')){
            $('identification_btnOKPWD').addEvent('click',function(){
			ask_mot_de_passe_oublie();
			});
        }*/
        if($('frm_pwd')){
            $('frm_pwd').addEvent('submit', function(e) {
                //Prevents the default submit event from loading a new page.
                e.stop();
                ask_mot_de_passe_oublie();
            });
        }
         
			if($('identification_btnInscription'))
				$('identification_btnInscription').addEvent('click',function(){
					if(etape_courante=='40'){
					ask_inscrire();
					}
					else{
						window.location.href='./inscription.asp';
					}
                    
				});
				
			if($('identification_btnFree'))
				$('identification_btnFree').addEvent('click',function(){
					if($('chkInscription')){
						$('chkInscription').checked = false;
                        ne_plus_sinscrire();
                        }
					
					fermer_identification();
				});
                
        if($('bloc_mini_cnx')){
            effectCNX = new Fx.Reveal($('bloc_mini_cnx'));//new Fx.Slide('bloc_mini_cnx');
        }
        
        if($('bloc_mini_pwd')){
            effectPWD = new Fx.Reveal($('bloc_mini_pwd'));//myVerticalSlide2= new Fx.Slide('bloc_mini_pwd');
        }
            
        if($('lien_mdpOublie')){
            $('lien_mdpOublie').addEvent('click',function(e){
                e.stop();
                effectCNX.toggle();
                effectPWD.toggle();
			    /*myVerticalSlide1.slideOut().chain(function(){
                myVerticalSlide2.slideIn();
                });*//*.chain(function(){
                    $('bloc_mini_pwd').setStyle('display','block');
                })*/
                
                
			});
        }
        
        if($('lien_retIdent')){
            $('lien_retIdent').addEvent('click',function(e){
                e.stop();
                
                effectPWD.toggle();
               effectCNX.toggle();
                /*myVerticalSlide2.slideOut().chain(function(){myVerticalSlide1.slideIn();});*/
                /*.chain(function(){
                 $('bloc_mini_cnx').setStyle('display','block');
                
                })*/
			});
        }
        
		 if($('lnk_renvoi_activation')){
			$('lnk_renvoi_activation').addEvent('click',function(e){
				e.stop();
				var log = $('column_identification').addClass('ajax-loading').setStyle("visibility","hidden");
			    $('frm_renvoi_activation').set('send', {evalScripts: true,onComplete: function(response) { 
				log.removeClass('ajax-loading').setStyle("visibility","visible");
				log.empty();
				log.set('html', response);
				init_identification();
			    }});
			    //Send the form.
			    $('frm_renvoi_activation').send();
			});
		 }
	}
				
	function ask_identifier(){
		/*var myHTMLRequest = new Request.HTML({url:'./identification/identification.asp',onSuccess:function(responseTree, responseElements, responseHTML, responseJavaScript){ 
			
		}}).post($('frm_cnx'));*/
		
		/*$('frm_cnx').addEvent('submit', function(e) {
            //Prevents the default submit event from loading a new page.
            e.stop();*/
            //Empty the log and show the spinning indicator.
            var log = $('column_identification').addClass('ajax-loading').setStyle("visibility","hidden");
            //Set the options of the form's Request handler. 
            //("this" refers to the $('myForm') element).
            $('frm_cnx').set('send', {evalScripts: true,onComplete: function(response) { 
                log.removeClass('ajax-loading').setStyle("visibility","visible");
                log.empty();
                log.set('html', response);
                init_identification();
            }});
            //Send the form.
            $('frm_cnx').send();
        /*});*/
	}
	
	function mot_de_passe_oublie(){
		fermer_identification();
		ouvrir_mot_de_passe_oublie();
		
	}
	
	function ouvrir_mot_de_passe_oublie(){
		SqueezeBox.open($('overlay_motDePasseOublie'), {
				    handler: 'adopt',
				    size: {x: 310, y: 320}
			});
	}
	
	function ask_mot_de_passe_oublie(){
        /*$('frm_pwd').addEvent('submit', function(e) {
            //Prevents the default submit event from loading a new page.
            e.stop();*/
            //Empty the log and show the spinning indicator.
            var log = $('column_identification').addClass('ajax-loading').setStyle("visibility","hidden");
            //Set the options of the form's Request handler. 
            //("this" refers to the $('myForm') element).
            $('frm_pwd').set('send', {onComplete: function(response) { 
                log.removeClass('ajax-loading').setStyle("visibility","visible");
                log.empty();
                log.set('html', response);
                init_identification();
            }});
            //Send the form.
            $('frm_pwd').send();
        /*});*/
	}
	
	function ask_inscrire(){
		
		
		fermer_identification();
		var blocInscrEffect = new Fx.Slide('frm_subscribe');
		//blocInscrEffect.slideOut();
        if($('frm_subscribe')){
			$('frm_subscribe').setStyle("display","block");
		    blocInscrEffect.slideIn();
			$('chkInscription').checked = true;
		    $('pseudo').disabled = "";
		    $('motpasse').disabled="";
		    $('motpasse_confirm').disabled="";
		    $('frm_subscribe').tween('background-color','#4DB101','#ffffff');
        }
	}
    
    function ne_plus_sinscrire(){
        $('pseudo').disabled = "disabled";
        $('motpasse').disabled="disabled";
        $('motpasse_confirm').disabled="disabled";
        var blocInscrEffect = new Fx.Slide('frm_subscribe');
        blocInscrEffect.slideOut();
    }
    
    
	
	function fermer_identification(){
		SqueezeBox.close($('overlay_identification_global'));
	}