    var quotd_delay = 10000;
    var quotd_start_frame = 0;


    function quotd_init() {

        var lis = $('quote-slide-show').getElementsByTagName('li');

        for( i=0; i < lis.length; i++){
            if(i!=0){
                lis[i].style.display = 'none';
            }
        }
        end_frame = lis.length -1;

        if(lis.length > 1){
            quotd_start_slideshow(quotd_start_frame, end_frame, quotd_delay, lis);
        }

    }



    function quotd_start_slideshow(quotd_start_frame, end_frame, quotd_delay, lis) {
        setTimeout(quotd_fadeInOut(quotd_start_frame,quotd_start_frame,end_frame, quotd_delay, lis), quotd_delay);
    }


    function quotd_fadeInOut(frame, quotd_start_frame, end_frame, quotd_delay, lis) {
        return (function() {
            lis = $('quote-slide-show').getElementsByTagName('li');
            Effect.Fade(lis[frame]);
            if (frame == end_frame) { frame = quotd_start_frame; } else { frame++; }
            lisAppear = lis[frame];
            setTimeout("Effect.Appear(lisAppear);", 0);
            setTimeout(quotd_fadeInOut(frame, quotd_start_frame, end_frame, quotd_delay), quotd_delay + 1850);
        })

    }


    Event.observe(window, 'load', quotd_init, false);