$(document).ready(function(){
            $("div.container").corner("bottom round 14px");
  			$("div.menu").corner("top round 14px");
			$("ul.topnav li a").hover(function() { //When trigger is clicked...
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('100').show(); //Drop down the subnav on click
		$(this).parent().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"
	}); 		
		$("ul.topnav li").corner("top round 5px");
	$("div.container a").hover(function() {
	/*	$(this).glow('#460078', 200, 50);*/
	});
$("#askval").submit(function(){
var str = $(this).serialize();
   $.ajax({
   type: "POST",
   url: "inc/emailer/contact.php",
   data: str,
   success: function(msg){
$("#note").ajaxComplete(function(event, request, settings){
if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
$("#fields").hide();
}
else
{
result = msg;
}
$(this).html(result);
});
}
 });
return false;
});
});