(function($){
   
   
   window.jquery_gallery_list_init = function(category,list){
        
        var $list =$(list);
        $list.empty();
        var ul = $("<ul/>").addClass("jquery-gallery-list-normal");
        $.each(category.photos,function(){
            $('<li>').append(
            $('<a/>')
            .attr({"href":this["href"],"title":this["title"]})
            .append($("<img/>")
                .attr("src",this["thumb"])))            
            .appendTo(ul);
            
        });
        if(category.photos.length==0) return ;
        $list.append(ul)
             .addClass("jMyCarousel")
             .jMyCarousel({
		        visible: 4,
		        auto : false, 
		        vertical : true,
		        speed : 500
		 });
        if(window.jquery_gallery_view_init){
            $("div.jquery-gallery-viewer").each(function(){
                window.jquery_gallery_view_init(list,this);
            });
        }

   };
   $(function(){  
    

   });
})(jQuery);

