DR = '';
if (document.location.href.match(/\/toepfereimuseum-raeren/)) {
   DR = '/toepfereimuseum-raeren';
}

Shadowbox.init({slideshowDelay: 5, continuous: true});

$(function() {

   var naviElements = $('.main .top .topBar, .main .top .topRight').not('.active');
   naviElements.hover(function() {
      naviElements.css({
         opacity: 0.5
      });
      $(this).css({
         opacity: 1.0
      });
   }, function() {
      naviElements.css({
         opacity: 1.0
      })
   });

   /*
    * alternative shadowbox opener
    */
   $('.open_shadowbox').click(function () {
      $('a[rel*="'+$(this).attr('rel').replace(/^open_sb/, 'shadowbox')+'"]:first').click();
      return false;
   });

});

