// init cycle plugin
$(document).ready(function() {

    $('.animab_image_containter').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        speed:500,
        timeout:15000,
        after: function(){

            $('.animab_quote_background').slideUp('slow',function(){
                /*$(".animab_quote_line1").css('display','inherit');*/
                $(".animab_quote_line1").css('display','block');
                
                $(".animab_quote_line1").css('left','-400px');
                setTimeout(function(){
                    $(".animab_quote_line1").animate({"left": "30px"},'slow');
                },4000);
            });

            
        },
        before: function(){

            $(".animab_quote_line1").css('display','none');
            $(".animab_quote_line1").animate({"left": "-400px"},'slow','',function(){
                setTimeout(function(){
                    $('.animab_quote_background').slideDown('slow');
                    $.ajax({
                        type: "GET",
                        url: './includes/load_quote.php',
                        data: '',
                        cache: false,
                        success: function($msg){
                            $("#animab_quote_holder").html($msg);
                        }

                    });
                },3000);

            });
            

            
        }
        
    });
});
