// JavaScript Document

$(document).ready(function() {

	// MEGA MENU 
  	
    function addMega(){
		//$("a", this).css("backgroundPosition", "0 -150px");
		//$("a", this).stop().animate({backgroundPosition:"(0 0)"}, {duration:500});
		$(".mega-menu", this).delay(150).slideDown("slow");
		$("ul.mega-section-services", this).delay(1200).slideDown("slow");
		$("ul.mega-section-services li", this).delay(1300).fadeIn("slow")
		//$(this).addClass("hovering");
        }
    function removeMega(){
		//$("a", this).css("backgroundPosition", "0 0");
		//$("a", this).stop().animate({backgroundPosition:"(0 -150px)"}, {duration:300});
		$(".mega-menu", this).slideUp("fast");
		$("ul.mega-section-services", this).slideUp("fast");
		$("ul.mega-section-services li", this).fadeOut("fast")
		//$(this).removeClass("hovering");
        }
    var megaConfig = {
         interval: 50,
         sensitivity: 4,
         over: addMega,
         timeout: 400,
         out: removeMega
    };
    $("#navigation li.non-active").hoverIntent(megaConfig)
	
})


