// JavaScript Document

jQuery(document).ready(function() {
	//simple slider for application form						
	$("#applyForm").hide();							
	$("div#applyOnline h3").click(function() {
	if ($(this).attr("class") == "clicked")
	{
		$("#applyForm").slideUp(900);
		$(this).removeClass("clicked");
	} else {
		$("#applyForm").slideDown(900);
		$(this).addClass("clicked");
	}
	});
	
	//main menu

	$("ul.subnav").parent().hover(function() {
		$(this).find("ul.subnav").slideDown('slow').show();
		$(this).hover(function() {
		}, function(){
			$(this).parent().find("ul.subnav").slideUp(100); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});

	
								
});


 






