$(document).ready(function(){
	
	$('#rotator-1').cycle({
	fx: 'fade',
	timeout: 4000
	});
	
	$('#rotator-2').cycle({
	fx: 'fade',
	timeout: 6000
	});
	
	$('#rotator-3').cycle({
	fx: 'fade',
	timeout: 5000
	});
	
	
	$(".nav-item").hover(function(){	
	//$(this).css('display','none');	
	$(this).stop().animate({ opacity: .6 }, "fast") ;	
	},function(){	$(this).animate({ opacity: 1 }, "fast") 	
	});

	
});


function checkform(form){

	// check name
	if (form.name.value == '') {
	alert( 'Please enter your Name.' );
	form.name.focus();
	return false ;
	}
	 
	// check email
	if (form.email.value == '') {
	alert( 'Please enter your Email.' );
	form.email.focus();
	return false ;
	}
	 
	
	// check email field
	if (form.email.value == '') {
	alert( 'Please enter your email.' );
	form.email.focus();
	return false ;
	}
	
	// check for valid email
	var apos=form.email.value.indexOf('@');
	var dotpos=form.email.value.lastIndexOf('.');
	
	if (apos<1||dotpos-apos<2){
	alert('Not A Valid Email Address!');
	return false;
	}
		
	// ** END **
	return true ;

}