<% unless model.new_record? %> <% javascript "jquery.fancybox-1.3.2.pack.js" %> <% stylesheet "fancybox/jquery.fancybox-1.3.2.css" %>
<%= t('manage.pictures') %>
<%= content_tag(:div, :id=>"swf_collection_#{model.id}", :class=>"galery") do %> <%= render :partial=>"/manage/assets/picture", :collection => model.pictures %> <% end %>
<%= content_tag(:span, nil, :id=>"swf_button_#{model.id}", :class=>"white-but") %> <%= content_tag(:div, nil, :id=>"swf_container_#{model.id}") %>
<%= render :partial=>"/manage/assets/swfscript", :locals=>{:model=>model, :klass=>model.pictures.name } %> <% end %>