// Texts for subscribe links
$$('.subscribe-link-mail a').each(function(el){el.update('Email');});
$$('.subscribe-link-rss a').each(function(el){el.update('RSS');});
$$('.subscribe-link-podcast a').each(function(el){el.update('Podcast');});

// Update link on Play link
$A(visual.photos).each(function(p){
  var x=$(p.container).select('.view-play-and-time');
  if(x.length>0) {x[0].setAttribute('href', p.one);}
});

// Update tags
if(visual&&visual.photo&&visual.photo.tags&&visual.photo.tags.length>0) {
  var c = $('sidebar-tags');
  if(c) {
    c.select('.one-tag').each(Element.remove);
    c.select('.headline').each(function(e){e.update('Tagged with...')});
    $A(visual.photo.tags).each(function(t){
      var a = new Element('a', {href:'/tag/'+encodeURIComponent(t)});
      a.update(t);
      a.addClassName('one-tag')
      c.appendChild(a);
    });
  }
}
