$(document).ready(function() {
/*	$('ul#parent_nav li.page_item ul.children').hide();   //Hides subnav initially
	$('ul#parent_nav li.page_item ul.children li:last-child').addClass('last-child');

    //When mouse rolls over
    $('ul#parent_nav li').hover(function(e){
        $(this).children('ul.children').hoverFlow(e.type, {'height':'show'}, 600); //mouseover
		} , function(e) {
		$(this).children('ul.children').hoverFlow(e.type, {'height':'hide'}, 600); //mouseout
		});
    });
*/


// hide sub menus
$('.ul#parent_nav li.page_item ul.children').hide();

// toggle sub menus on hover
$('ul#parent_nav > 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' 
    });
  });


/* ################### Form Styles ################ */


/* WORKING - Sort of  */
/*
		//Following events are applied to the subnav itself (moving subnav up and down)
		
		$(this).find("ul.children").stop().slideDown('fast').show(); //Drop down the subnav on click
		});
		
		$('ul#parent_nav li.page_item').mouseout(function() { 
		$(this).find("ul.children").stop().slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});	
*/			


/* Not working, but use for reference */
/*
	$('ul#parent_nav li').mouseover(function(){
			//Following event is applied to the subnav itself (making height of subnav 60px)
		   $('ul#parent_nav li#nav-expertise ul').stop().slideDown(600);
		});

	    $('ul#parent_nav li').mouseout(function(){ //When mouse out ...
	   		$('ul#parent_nav li ul').stop().slideToggle(600);
		});
        //menu item background color animation
		$('ul#parent_nav li ul > li').hover(function() {
              $(this).stop().animate({ backgroundColor: "#ffffff"}, 600);},
           function() {
              $(this).stop().animate({ backgroundColor: "#333333" }, 600);
        });	
*/	


});	 // End Document Ready
