/*
var old_background = '';
var old_img = '';
var old_credit = '';

window.addEvent('domready', function(){
  if ($('exhibition_details')){
    $('exhibition_details').setAttribute('href', '#');
    $('exhibition_details').addEvent('click', function(ev) {
      new Event(ev).stop();
      if (old_background == '') {
        old_background = $('background').getStyle('background-image');
        old_img = $('background').getElement('img').getAttribute('src');
      }
      if (old_credit == '') {
        old_credit = $('photocredit').innerHTML;
      }
      $('photocredit').innerHTML = '';
      $('background').setStyle('background-image', 'none');
      $('background').setOpacity(0);
      $('content') ? $('content').setStyle('display', 'block') : false;
    });
  }

  $$('.csm_background').each(function(el) {
    new Asset.image('/images/exhibitions/'+el.getAttribute('background'));
    el.setAttribute('href', '#');
    el.addEvent('click', function(ev) {
      new Event(ev).stop();
      if (old_background == '') {
        old_background = $('background').getStyle('background-image');
        old_img = $('background').getElement('img').getAttribute('src');
      }
      if (old_credit == '') {
        old_credit = $('photocredit').innerHTML;
      }
      $('background').setOpacity(1);
      $('background').getElement('img').src = '/images/exhibitions/'+this.getAttribute('background');
      $('content') ? $('content').setStyle('display', 'none') : false;
      $('photocredit').innerHTML = this.getAttribute('credit');
    });
  });

  if ($('exhibition_header')){
    $('exhibition_header').setAttribute('href', '#');
    $('exhibition_header').addEvent('click', function(ev) {
      new Event(ev).stop();
      if (old_background != '') {
        $('background').setStyle('background-image', old_background);
        $('background').getElement('img').src = old_img;
      }
      if (old_credit != '') {
        $('photocredit').innerHTML = old_credit;
      }
      $('background').setOpacity(1);
      $('content') ? $('content').setStyle('display', 'none') : false;
    });
  }
});
*/