// JavaScript Document
/* <![CDATA[ */
		$(document).ready(function() {
			/* horizontal menu */
			
			// hide sub menus
			$('.test1 .horizontal_menu ul').hide();
			
			// toggle sub menus on hover
			$('.test1 .horizontal_menu > li')
				.hover(function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'height': 'show',
						'marginTop': 'show',
						'marginBottom': 'show',
						'paddingTop': 'show',
						'paddingBottom': 'show' 
					});
				}, function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'height': 'hide',
						'marginTop': 'hide',
						'marginBottom': 'hide',
						'paddingTop': 'hide',
						'paddingBottom': 'hide' 
					});
				});
			
			
			/* vertical menu */
			
			// hide sub menus
			$('.test2 .vertical_menu ul').hide();
			
			// toggle sub menus on hover
			$('.test2 .vertical_menu > li')
				.hover(function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'opacity': 'show'
					});
				}, function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'opacity': 'hide'
					});
				});
			
			
			var duration = 9000;
			
			/* horizontal menu without hoverFlow */
			
			// hide sub menus
			$('.test3 .without_hoverflow ul').hide();
			
			// toggle sub menus on hover
			$('.test3 .without_hoverflow > li')
				.hover(function(e) {
					$(this).children('ul:hidden').slideDown(duration);
				}, function(e) {
					$(this).children('ul:visible').slideUp(duration);
				});
			
			/* horizontal menu with hoverFlow */
			
			// hide sub menus
			$('.test3 .with_hoverflow ul').hide();
			
			// toggle sub menus on hover
			$('.test3 .with_hoverflow > li')
				.hover(function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'height': 'show',
						'marginTop': 'show',
						'marginBottom': 'show',
						'paddingTop': 'show',
						'paddingBottom': 'show' 
					}, duration);
				}, function(e) {
					$(this).children('ul').hoverFlow(e.type, {
						'height': 'hide',
						'marginTop': 'hide',
						'marginBottom': 'hide',
						'paddingTop': 'hide',
						'paddingBottom': 'hide' 
					}, duration);
				});
		});
	/* ]]> */
