$(document).ready(function() {
// This is where the magic happens;
// Created by Ludvik Herrera;
// Isn't JQuery great?;
	// Make sure we slide the first section and switch the class on first element;
	$("#menu .subnav").not(":first").slideUp(1);
	$("#menu li.trigger a:first").toggleClass("dropdown");
	
	// This will make the parent elements toggle their arrows;
	$("#menu li.trigger a").toggle(function(){
		$(this).toggleClass("dropdown"); 
		}, function () {
		$(this).toggleClass("dropdown");
	});
	
	// This collapses the menus;
	$("#menu li.trigger a").click(function(){
		$(this).find("+ ul").slideToggle("slow");
	});
});
