/**
 * links mit CSS-Klasse ".lightbox" oeffnen link in lightbox
 * @package         typo3-ext-js
 * @version         0.0.3
 */





jQuery.noConflict();

jQuery(document).ready(function($) {
  
  //prueft, ob das HTML-Dokument in einer lightbox ist, wenn ja wird die body id=no_lightbox in body id=lightbox umgeschrieben
  if (top !== self) {
    $('body').attr('id', 'lightbox');
    $('#nav_wrapper').css('display','none');
    $('#header').css('display','none');
    
    // dem uebergeordnetem HTML Dokument die Klasse no print geben
    $('body', top.document).addClass('no_print');
    
    // in der lightbox dem Footer den Print Button hinzufuegen
    
    
  }
  if (top !== self) {
     $('body').removeClass('no_print');
  }
  
  
   
   /* activate lightbox for book detail pages */
   $('.linkBuch a').each( function () {    
     $(this).addClass('lightbox');   
   });
   
  

   /* activate lightbox for a-tags with class lightbox */
   $(".lightbox").fancybox({
      'width'           : '90%',
      'height'          : '95%',
      'autoScale'       : false,
      'transitionIn'    : 'none',
      'transitionOut'   : 'none',
      'type'            : 'iframe',
	    'titleShow'		: false

   });

});

