jQuery(document).ready(function($){

	$('#slider').nivoSlider({
		effect:'fade',
			animSpeed:500, // Slide transition speed
			pauseTime:5000, // How long each slide will show
			directionNav:0, // Next & Prev navigation
			directionNavHide:0, // Only show on hover
			controlNav:0, // 1,2,3... navigation
                        captionOpacity: 1,
        directionNav:true, // Next & Prev navigation
        directionNavHide:true // Only show on hover
	});



$("#Navigation>.menu>ul>li").hover(
  function()
  {
    var That = $(this);
    $(That).css('zIndex', 9000).addClass('IsHovered').children(":nth-child(2)").slideDown(400); 
  }
  ,
  function()
  {
    var That = $(this);
    if($(this).children(":nth-child(2)").length )
    {
      $(That).children(":nth-child(2)").stop(1,1).slideUp(100,function()
      {
          $(That).removeClass('IsHovered');
      });
    }
    else
    {
       $(That).removeClass('IsHovered');
    }
  }
);
});

