jQuery(document).ready(function(){

    jQuery('#checklist li').prepend('<span></span>');
    var j = 0;
    var delay = 1000; //millisecond delay between cycles
    function cycleThru(){
        var jmax = jQuery("#checklist li").length - 1;
        jQuery("#checklist li:eq(" + j + ") span").animate({
            "width": "16px"
        }, delay, function(){
            if (j == jmax) {
                jQuery("#checklist span").width('0px');
                j = 0;
            }
            else {
                j++;
            }
            cycleThru();
        });
    }
    cycleThru();
    
    jQuery('.gallery-item img').css('opacity', 0.6).hover(function(){
        jQuery(this).fadeTo('slow', 1);
    }, function(){
        jQuery(this).fadeTo('slow', 0.6);
    });
});
