   window.jquery_gallery_list_init = function(category,list){
        var $list =jQuery(list);
        $list.empty();
        if(category.photos.length==0) return;
        var div = jQuery("<div/>").addClass("jquery-gallery-list-protoflow");
        jQuery.each(category.photos,function(){            
            jQuery('<a/>')
            .attr({"href":this["href"],"title":this["title"]})
            .append(jQuery("<img/>")
                .attr({"src":this["thumb"],"alt":this["title"]}))            
            .appendTo(div);
            
        });
        $list.append(div);
        
       cf = new ProtoFlow(div.get(0), {
					captions: true, 
					//useReflection: true,
					autoplay:true,
					enableOnClickScroll: true
					
				});
        if(window.jquery_gallery_view_init){
            jQuery("div.jquery-gallery-viewer").each(function(){
                window.jquery_gallery_view_init(list,this);
            });
        }

   };
   
   jQuery(function(){
    prettyPrint();
   });
