/* Author: Nico Andrade

*/
jQuery(document).ready(function($) {
	
	//$(".active").parents(".dropdown").addClass("dd_active");
	
	//Menu effect
	$('#header .menu-nav > li:not(.dropdown, .logo) > a:not(.active)')
	.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0px 0)"}, 
				{duration:200})
			})
	.mouseout(function(){
			$(this).stop().animate(
			{backgroundPosition:"(0px -63px)"}, 
			{duration:200})
		
		})
		
		
	//Dropdown Menu effect
	$('#header .menu-nav li.dropdown:not(.dd_active)')
	.mouseover(function(){
			$(this).find("ul").stop().animate(
				{top:"0px"},
				{duration:400})
				
			$(this).find("ul li").stop().animate(
				{opacity: 1},
				{duration:600})
				
			})
	.mouseout(function(){
			$(this).find("ul").stop().animate(
			{top:"-250px"}, 
			{duration:400})
			
			$(this).find("ul li").stop().animate(
			{opacity: 0}, 
			{duration:600})
			
		})
	
	$("#header .menu-nav li ul li a:not(.active)").hover(
	  function () {
	    $(this).addClass("active");
	  }, 
	  function () {
	    $(this).removeClass("active");
	  }
	);

});//document ready
