$(document).ready(function() {
   
$('.date_picker').datepicker({dateFormat: 'yy-mm-dd'});
$('.submit input').button();
   
   
   /**********************************************************
   **    attach a hover event to the parent of the          **
   **    .drop_down div and show the menu on rollover       **
   **********************************************************/
      $('.drop_down').each(function() {
         $(this).parent().eq(0).hoverIntent({
            timeout: 100,
            over: function () {
               var current = $('.drop_down:eq(0)', this);
               current.slideDown(100);
            },
            out: function () {
               var current = $('.drop_down:eq(0)', this);
               current.fadeOut(200);
            }
         });
      });
      
      
   /****************************************************************
   **    attach a hover event to the parent of the .flyout div    **
   **    and show the menu on rollover                            **
   ****************************************************************/
      $('.flyout').each(function() {
         $(this).parent().eq(0).hoverIntent({
            timeout: 100,
            over: function() {
               var current = $('.flyout:eq(0)', this);
               //current.fadeIn(200);
               current.slideDown(100);
            },
            out: function() {
               var current = $('.flyout:eq(0)', this);
               //current.hide('slide', 300);
               current.fadeOut(100);
               
            }
         })
      });
   
   
   
});
