 $(document).ready(function(){ 
 
 	if($('.bildwechselbox').length) {
		$.getScript('grafiken_ziviplus/jquery.cycle.min.js', function() { 
			$('.bildwechselbox').cycle({ 
				fx: 'fade',
				random: 1,
				speed: 1500, 
				timeout: 6000 
			});
		});
	};
 
 	$('.videobox .boxcontent').hide()
	$('.videobox .boxcontent:first').show().find('h2 a.toggle').addClass('auf');

	$('.videobox h2').append('<a class="toggle" title="öffnen/schließen" href="#"></a>');
		$('a.toggle').click(function() { 
			$(this).toggleClass('auf').parent().next().slideToggle(500);
			return false;
		});
	$('.videobox h2:first').find('a.toggle').addClass('auf');
		
 	// MooTools Gallerie
	if($('#mtgal').length) { 
		var myGallery = new gallery(Moo.$('mtgal'), {
			timed: true,
			showCarousel: false,
			showArrows: true,
			rande: true, 
			textShowCarousel: 'Weitere Inhalte',
			delay: 9000,
			embedLinks: false,
			fadeDuration: 800
		});
	};
 
/* 	$('body').ready(function() { 
		$('body#eins_2 #container').append('<div class="platsch"><a class="schliessen" title="Dieses Fenster schließen" href="#">schließen</a><p><strong>Zivildienst im PARIT&Auml;TISCHEN<br />engagiert – innovativ – nachhaltig<br /><br />TAGUNG:</strong><br />27. April 2009 in der Zivildienstschule Kiel. <br /><br /><strong>Ergebnisse in Wort und Bild</strong><br /><a title="mehr Informationen" href="http://www.zivildienst-plus.org/de/id410.htm">(mehr Informationen)</a></p></div>');
		$('.platsch a.schliessen').click(function() { 
			$('.platsch').remove();
		});
		document.onkeyup = function(e){ 
		  if (e == null) { keycode = event.keyCode; } 
		  else { keycode = e.which; }
		  if(keycode == 27){ $('.platsch').remove(); }
		};
	}); */
});