/* allgemeine Funktionen */

jQuery(document).ready(function(){
  
  /* Zoom-Funktion */
  var options = {
	  zoomWidth: 270,
	  zoomHeight: 270,
    xOffset: 14,
    yOffset: 0,
    title: false,
  };
  
  /* Ausklappen News, etc. */
	$(".accordion").accordion({
		autoHeight: false,
		navigation: true
	});
	
	/* Tabs */
	$(function() {
		$(".tabs").tabs();
	});
	
	/* Drucken */
  $(".print_button").click(function(){
    $("#s"+this.id+" .hiddenPrint").show();
    $("#s"+this.id).printArea({
    mode:"popup",
    popHt: 600,
    popWd: 800,
    popClose: false,
    });
    $("#s"+this.id+" .hiddenPrint").hide();
  });
  
  /* Galerie */
  $("a.thickbox").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'padding'         : 1,
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Bild ' +  (currentIndex + 1) + ' von ' + currentArray.length + ' ' + title + '</span>';
		}
	});
	



});
