<% unless model.new_record? %> <% javascript "jquery.fancybox-1.3.1.pack.js" %> <% stylesheet "jquery.fancybox-1.3.1.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 %>