$(document).ready(function( ) {
	/*
		Breite der Untermenüs anpassen
	*/
	$("#PageNavigation li").each(function( obj ) {
		var width = $(this).width();
		var subMenu = $(this).children(".SubMenu");
		
		if ( subMenu ) {
			if ( $(subMenu).width() < width ) {
				$(subMenu).css("width", width);
			}
		}
	});
	
	/*
		Navigation animieren
	*/
	$("#PageNavigation li").hover(function( event ) {
		$(this).children(".SubMenu").stop(true, true).fadeIn(150);
	}, function( event ) {
		$(this).stop(true);
		$(this).children(".SubMenu").stop(true, true).fadeOut(150);
	});
	
	/*
		Kontaktinformationen einblenden
	*/
	window.setTimeout(function( ) {
		/*$('#ContactInformations').fadeIn(3000);*/
		$('#ContactInformations').slideDown(3000);
	}, 1000);
	
	/*
		Info-Texte animieren (Slideshow)
	*/
	/*$('#InfoSlideshowContent').cycle({
		fx:     'scrollRight', 
	    speed:  'fast', 
	    timeout: 0,
	    next:   '#NextPage', 
	    prev:   '#PrevPage' 
	});*/
});
