
	$(function() {
	
		
		
		// Options for SuperBGImage
		$.fn.superbgimage.options = {
			randomtransition: 0, // 0-none, 1-use random transition (0-7)
			transition: 0,
			transitionout: 0, // 0-no transition for previous image, 1-transition for previous image
			slideshow: 0, // 0-none, 1-autostart slideshow
			slide_interval: 50000, // interval for the slideshow
			randomimage: 0, // 0-none, 1-random image
			speed: 2000, // animation speed / war 'slow'
			preload: 0,
			onShow: superbgimage_show
		};
		
		// initialize SuperBGImage
		$('#bgSlideshow').superbgimage().hide();
		
		function superbgimage_show(img)
		{
			$.fn.superbgimage.options = {
				transition: 1,
				onShow: null
			};
		};
		

		$('#headerSlideshow').cycle({
			speed:3000,  // speed of the transition (any valid fx speed value) 
			timeout:15000,  // milliseconds between slide transitions (0 to disable auto advance)		
		});
		
		// MENU
		
			// blendet das Work-Menu ein und aus
			$(".programmHeader").click(function(){
						
				if ($(this).next().css('display') == 'block') {
					$(this).find('.programmTeaserText').css('background-image', 'url(elemente/icon_info.png)');
				}
				else {
					$(this).find('.programmTeaserText').css('background-image', 'url(elemente/icon_kreuz.png)');
				}
				
				$(this).next().slideToggle('slow');
			});
			
			$(".artistHeader").click(function(){
			
				if ($(this).next().css('display') == 'block') {
					$(this).css('background-image', 'url(elemente/icon_info.png)');
				}
				else {
					$(this).css('background-image', 'url(elemente/icon_kreuz.png)');
				}
									
				$(this).next().slideToggle('slow');
			});
			
			// GALERIE
		
			// Use this example, or...
			$('#galerieThumbs a').lightBox(); // Select all links in object with gallery ID
			
			$('#galerieThumbs a').lightBox({
				txtImage: 'Bild',
				txtOf: 'von'
			});
			
			// SITZPLAN
		
			// Use this example, or...
			$('#sitzplanThumb a').lightBox(); // Select all links in object with gallery ID
			
			$('#sitzplanThumb a').lightBox({
				txtImage: 'Bild',
				txtOf: 'von'
			});

	});
	
	
	$('a').click(function() {
  		this.blur();
	});
	
	
