%= div_for link, :class => 'content_size' do %>
<% if link.image %>
<% if link.callback_url %>
<%= link_to image_tag(link.image),"javascript:void(0)" %>
<%= link_to image_tag("btn/btn_play.png", :class => "play_button"),"javascript:void(0)" %>
<%= javascript_tag do %>
$("#link_<%= link.id.to_s %> img").each(function(){
$(this).click(function(){
SocialStream.Linkser.openCallback("link_<%= link.id.to_s %>", "<%= link.callback_url %>", "<%= link.width %>", "<%= link.height %>");
});
});
<% end %>
<% else %>
<%= link_to image_tag(link.image),link.url, :target => "_blank" %>
<% end %>
<% end %>
<% if link.title %>
<%= link.title %>
<% end %>
<%= link_to link.url, link.url, :target => "_blank" %>
<% if link.description %>
<%= auto_link(link.description) %>
<% end %>
<% end %>