$(document).ready(function() {

/*--------------------------------------------------
  @Dropdown Menu
---------------------------------------------------*/

	// Variante Horizontal
	$('.dropdown').hover(function() {
		$(this).addClass('ddhover');
			$('ul', this).slideDown('slow');
		}, function() {
			$(this).removeClass('ddhover');
			$('ul', this).stop(true, true).slideUp('slow');
	});



	// Variante Vertikal
/*	$('.dropdown').hover(function() {
		$(this).addClass('ddhover');
			$('ul', this).slideDown(1000);
		}, function() {
			$(this).removeClass('ddhover');
			$('ul', this).stop(true, true).slideUp(1000);
	});
*/

/*--------------------------------------------------
  @Flyout Menu
  for normal textlists
--------------------------------------------------*/	
	$('.flyout').hover(function() {
		if( $(this).hasClass('ddhover') != true ) {
			$('.flyout ul').stop(true, true).fadeOut(250);
		//Remove Classes on previous hover
			$('.flyout').removeClass('ddhover');
		//Add Classes on new hover
			$(this).addClass('ddhover');
			$('ul', this).stop(true, true).slideDown('slow');
		}
	});

/* 
	// NO ANIMATION VARIANTE
	$('.flyout_gal').hover(function() {
	
	$('ul.activegal').removeClass('activegal').fadeOut('fast').stop(true, true);
		
		//.flyout_gal gets.ddhover
		$(this).addClass('ddhover');

		$('ul', this).slideDown('slow').stop(false, true).addClass('activegal');
	}, function() { 
		$(this).removeClass('ddhover');
	});
*/

/*--------------------------------------------------
  @Flyout Menu
  for gallery
--------------------------------------------------*/
	$('.flyout_gal').hover(function() {
		if ( $(this).hasClass('ddhover') != true ) {
			$('.gal').fadeOut(250);
			//Remove Classes on previous hover
			$('.flyout_gal').removeClass('ddhover');
			//Add Classes on new hover
			$(this).addClass('ddhover');
			$('ul', this).stop(true, true).slideDown('slow');
		}
	});

});
