// JavaScript Document
$(document).ready( function() {
	$('.toggle_container').hide();
	$('.trigger').click( function() {
		if ( $(this).hasClass('trigger_active') ) {
			$(this).next('.toggle_container').slideToggle('slow');
			$(this).removeClass('trigger_active');
		} else {
			$('.trigger_active').next('.toggle_container').slideToggle('slow');
			$('.trigger_active').removeClass('trigger_active');
			$(this).next('.toggle_container').slideToggle('slow');
			$(this).addClass('trigger_active');
		};
	return false;
	});
	
	// initialize tooltip ffc programm
	$(".modules_ffc_programm_list .filmtitel").tooltip({
	
	   position: 'bottom',
	   
		 // tweak the position
	   offset: [0, -350],
	
	   // use the "slide" effect
	   effect: 'slide'
	
	// add dynamic plugin with optional configuration for bottom edge
	}).dynamic({ bottom: { direction: 'down', bounce: true } });
	
	// initialize tooltip ffc rahmenprogramm
	$(".modules_ffc_rahmenprogramm_list .titel").tooltip({
	
	   position: 'bottom',
	   
		 // tweak the position
	   offset: [0,-350],
	
	   // use the "slide" effect
	   effect: 'slide'
	
	// add dynamic plugin with optional configuration for bottom edge
	}).dynamic({ bottom: { direction: 'down', bounce: true } });
	
	// initialize tooltip ffc programm
	$(".modules_ftp_galerie .galimg").tooltip({
	
	   position: 'bottom center',
	   
		 // tweak the position
	   offset: [30, 0],
	
	   // use the "slide" effect
	   effect: 'slide'
	
	// add dynamic plugin with optional configuration for bottom edge
	}).dynamic({ bottom: { direction: 'down', bounce: true } });
	
	// initialize tooltip ffc programm
	$(".artikel_tmpl_11 .jqt_tt_partner").tooltip({
	
	   position: 'bottom center',
	   
		 // tweak the position
	   offset: [30, 0],
	
	   // use the "slide" effect
	   effect: 'slide'
	
	// add dynamic plugin with optional configuration for bottom edge
	}).dynamic({ bottom: { direction: 'down', bounce: true } });
	
	$("img[rel]").overlay({
		top: 'center',
		mask: {
			color: "#000",
			loadSpeed: 200,
			opacity: 0.7
		},
		closeOnClick: false
	});
	
});



