/*** Slidey Menu Horizontal ***/ 

/*** Add to html file
 <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/SlideyMenu/SlideyHorizontal.css" type="text/css" media="screen" />
  <script type='text/javascript' src='<?php bloginfo('template_directory'); ?>/SlideyMenu/SlideyHorizontal.js'></script>

 <ul id="slideNav">
  <?php wp_list_pages('title_li=&depth=2&sort_column=post_date&exclude='); ?>
  <?php wp_list_categories('title_li=&depth=2&sort_column=post_date&exclude='); ?>
 </ul> 
 ***/

jQuery(document).ready(function() {

  // find all LIs with second level ULs and give them a void attribute
  /*jQuery("slideNav li a").attr('title', '');*/
  /*jQuery("li.page_item").find("ul").parent().children("a").css('cursor', 'default');*/

    
  jQuery("li.page_item").find("ul").parent().hover(
    function() {
        if (jQuery(this).children("ul").is(':hidden'))
        {
          jQuery(this).children("ul").fadeIn(200);
        }
      },
      function() {
          jQuery(this).children("ul").fadeOut(200);
      }
    );
    
    jQuery("li.cat-item").find("ul").parent().hover(
    function() {
        if (jQuery(this).children("ul").is(':hidden'))
        {
          jQuery(this).children("ul").fadeIn(200);
        }
      },
      function() {
          jQuery(this).children("ul").fadeOut(200);
      }
    );

  

  
});

