/* Controls the functions of the mega menus
 * Author: Ross Little
 */

function addMega() {
	// var relName = $(this).find("a");
        // var rel = $(this).find("a").getAttribute("rel");
	// alert(relName.attr("rel"));
	$(this).find("div").css("padding-bottom", "10px").animate( { height:"152px" }, { queue:false, duration:300 } )
		.css("display", "block");

	// $(this).find("div").css("display", "block");
}

function removeMega() {
        $(this).find("div").css("overflow", "hidden");
	$(this).find("div").animate( { height:"0px" }, { queue:true, duration:300 } ).css("padding-bottom", "0px");
        
}

var megaConfig = {
	interval: 200,
	sensitivity: 4,
	over: addMega,
	timeout: 500,
	out: removeMega
};

