$( document ).ready(function() {


	var Timer1;
	var Timer2;
    var Timer4;
    
    //
    Timer0 = setInterval(function(){ fade1() }, 200);
	Timer1 = setInterval(function(){ fade_() }, 400);
    //
    function fade_ () 
    {
        $( "#content" ).fadeTo( "slow", 1 );
        clearInterval(Timer1);
    }

	function fade1 () 
    {
        $({blurRadius: 0}).animate({blurRadius: 5}, {
            duration: 600,
            easing: 'linear', // "swing"
            //
            step: function() {
                $('#bg').css({
                    "-webkit-filter": "blur("+this.blurRadius+"px)",
                    "filter": "blur("+this.blurRadius+"px)"
                });
            }
        });
        clearInterval(Timer0);
	}

	function fade2 () 
	{
		$( "#bottom_panel" ).fadeTo( "slow", 1 );
        $( "#bottom_panel_2" ).fadeTo( "slow", 1 );
		clearInterval(Timer2);
	}

	function fade3 () 
	{
		$( "#hello_logo" ).fadeTo( "slow", 1 );
		clearInterval(Timer3);
	}

    function fade4 () 
    {
        $( "#welcom" ).fadeTo( "slow", 1 );
        clearInterval(Timer4);
    }

    $('#fst-config-msg-form').submit(function () {
        $( "#fst_db_msg_step" ).fadeOut( 300, function(){ $( "#fst_db_conf_step" ).fadeIn( 300 ); } );
        return false;
    });

	$('#fst-config-db-form').submit(function () {
        $.post('hello/db_check',$('#fst-config-db-form').serialize(),function(data)
            {
                if(data=="true")
                {
                    $( "#fst_db_conf_step" ).fadeOut( 300, function(){ $( "#fst_pass_msg_step" ).fadeIn( 300 ); } );
                }
                else $( "#fst_db_config_error" ).slideDown();
            });
        //
        return false;
    });

    $('#nxt_to_glob').click(function () {
        $( "#fst_pass_msg_step" ).fadeOut( 300, function(){ $( "#fst_glob_conf_step" ).fadeIn( 300 ); } );
        //
        return false;
    });

    $('#fst-glob-db-form').submit(function () {
        $.post('hello/set_glob',$('#fst-glob-db-form').serialize(),function(data)
            {
                if(data=="true")
                {
                    document.getElementById('dev_nom').innerHTML=document.getElementById('dev_name').value;

                    $( "#fst_glob_conf_step" ).fadeOut( 300, function(){ $( "#fst_sec_conf_step" ).fadeIn( 300 ); } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });

    $('#fst-sec-db-form').submit(function () {
        $.post('hello/set_secur',$('#fst-sec-db-form').serialize(),function(data)
            {
                if(data=="true")
                {
                    $( "#fst_sec_conf_step" ).fadeOut( 300, function(){ $( "#fst_pnl_conf_step" ).fadeIn( 300 ); } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });

    $('#fst-pnl-db-form').submit(function () {
        $.post('hello/set_panel',$('#fst-pnl-db-form').serialize(),function(data)
            {
                if(data=="true")
                {
                    if(document.getElementById('pnl_route').value!="")
                       document.getElementById('fst_panel').href=document.getElementById('pnl_route').value;
                    else  document.getElementById('fst_panel').href="fiesta";
                    //
                    $( "#fst_config_icon" ).fadeOut( 300);
                    $( "#fst_pnl_conf_step" ).fadeOut( 300, function(){ 
                        Timer3 = setInterval(function(){ fade3() }, 200);
                        Timer4 = setInterval(function(){ fade4() }, 400);
                        Timer2 = setInterval(function(){ fade2() }, 800);
                     } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });





    

    $('#form_1').submit(function () {
        $.post('hello/1',$('#form_1').serialize(),function(data)
            {
                if(data=="ok")
                {
                	document.getElementById('dev_nom').innerHTML=document.getElementById('dev_name').value;

                	$( "#etap_1" ).fadeOut( 300, function(){ $( "#etap_2" ).fadeIn( 300 ); } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });

    $('#form_2').submit(function () {
        $.post('hello/2',$('#form_2').serialize(),function(data)
            {
                if(data=="ok")
                {
                	$( "#etap_2" ).fadeOut( 300, function(){ $( "#etap_3" ).fadeIn( 300 ); } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });

    $('#form_3').submit(function () {
        $.post('hello/3',$('#form_3').serialize(),function(data)
            {
                if(data=="ok")
                {
                	$( "#etap_3" ).fadeOut( 300, function(){ $( "#etap_4" ).fadeIn( 300 ); } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });

    $('#form_4').submit(function () {
        $.post('hello/4',$('#form_4').serialize(),function(data)
            {
                if(data=="ok")
                {
                	if(document.getElementById('pnl_route').value!="")
                	   document.getElementById('fst_panel').href=document.getElementById('pnl_route').value;
                    	else  document.getElementById('fst_panel').href="fiesta";
                	$( "#config_logo" ).fadeOut( 300);
                	$( "#etap_4" ).fadeOut( 300, function(){ 
                		Timer3 = setInterval(function(){ fade3() }, 200);
						Timer4 = setInterval(function(){ fade4() }, 400);
						Timer2 = setInterval(function(){ fade2() }, 800);
                	 } );
                }
                else alert('Un erreur est survenue');
            });
        //
        return false;
    });
});

@@ -3904,2154 +3904,8 @@
 %7D);%0A
-%0A%0A%0A%0A%0A    %0A%0A    $('#form_1').submit(function () %7B%0A        $.post('hello/1',$('#form_1').serialize(),function(data)%0A            %7B%0A                if(data==%22ok%22)%0A                %7B%0A                %09document.getElementById('dev_nom').innerHTML=document.getElementById('dev_name').value;%0A%0A                %09$( %22#etap_1%22 ).fadeOut( 300, function()%7B $( %22#etap_2%22 ).fadeIn( 300 ); %7D );%0A                %7D%0A                else alert('Un erreur est survenue');%0A            %7D);%0A        //%0A        return false;%0A    %7D);%0A%0A    $('#form_2').submit(function () %7B%0A        $.post('hello/2',$('#form_2').serialize(),function(data)%0A            %7B%0A                if(data==%22ok%22)%0A                %7B%0A                %09$( %22#etap_2%22 ).fadeOut( 300, function()%7B $( %22#etap_3%22 ).fadeIn( 300 ); %7D );%0A                %7D%0A                else alert('Un erreur est survenue');%0A            %7D);%0A        //%0A        return false;%0A    %7D);%0A%0A    $('#form_3').submit(function () %7B%0A        $.post('hello/3',$('#form_3').serialize(),function(data)%0A            %7B%0A                if(data==%22ok%22)%0A                %7B%0A                %09$( %22#etap_3%22 ).fadeOut( 300, function()%7B $( %22#etap_4%22 ).fadeIn( 300 ); %7D );%0A                %7D%0A                else alert('Un erreur est survenue');%0A            %7D);%0A        //%0A        return false;%0A    %7D);%0A%0A    $('#form_4').submit(function () %7B%0A        $.post('hello/4',$('#form_4').serialize(),function(data)%0A            %7B%0A                if(data==%22ok%22)%0A                %7B%0A                %09if(document.getElementById('pnl_route').value!=%22%22)%0A                %09   document.getElementById('fst_panel').href=document.getElementById('pnl_route').value;%0A                    %09else  document.getElementById('fst_panel').href=%22fiesta%22;%0A                %09$( %22#config_logo%22 ).fadeOut( 300);%0A                %09$( %22#etap_4%22 ).fadeOut( 300, function()%7B %0A                %09%09Timer3 = setInterval(function()%7B fade3() %7D, 200);%0A%09%09%09%09%09%09Timer4 = setInterval(function()%7B fade4() %7D, 400);%0A%09%09%09%09%09%09Timer2 = setInterval(function()%7B fade2() %7D, 800);%0A                %09 %7D );%0A                %7D%0A                else alert('Un erreur est survenue');%0A            %7D);%0A        //%0A        return false;%0A    %7D);%0A
 %7D);%0A

remove unnecessary events