$(document).ready(function(){	
	
$('.signupForm p').formValidate().parent().submit(function(){
		thsForm=$(this).children('p');
		if(thsForm.frmSubmit()){
			postStr="";
			$('.signupForm select, .signupForm input[type="text"]').each(function(){postStr=postStr+$(this).val()+"{spl}";});
			 $.ajax({
			   type: "POST",
			   url: "signup/process.php",
			   data: "func=signmeup&nfo="+postStr,
			   success: function(data){
				 $('.signupForm .returnForm').text(data);
			   }
			 });

		};
		return false;
});

//popup map hide
$('div map area.close').click(function(){
	$(this).parent().parent().fadeOut();
	return false;
});

//navigation

//variables
	
//setup nav
	$('ul#nav li ul').css({
		top: "106px"
	});
	
//events
	$('ul#nav>li>a,ul#nav>li img').mouseover(function(){
		$(this).parent().children('a').stopTime();
		$(this).siblings('ul')
		.animate({
			top: "0px"
		},{queue: false});
	});
	$('ul#nav>li>a,ul#nav>li img').mouseout(function(){
		$(this).parent().children('a').oneTime(500, function(){
			$(this).siblings('ul')
			.animate({
				top: "106px"
			},{queue:false});
		});
	});
	
	$('ul#nav>li ul').mouseover(function(){
		$(this).siblings('a').stopTime();
	});
	
	$('ul#nav>li ul').mouseout(function(){
		$(this).parent().children('a').oneTime(500, function(){
			$(this).siblings('ul')
			.animate({
				top: "106px"
			},{queue:false});
		});
	});
	
});