$(document).ready(function() {
    $('#header-widget-area2').cycle({
		fx: 'fade'
	});
	
	$('.members').click(function() {
		if(!$("body").hasClass("logged-in")){
			$('#text-6 .wp-user-form').slideDown();
			return false;
		}
	});
	
	/*
	$('.wp-user-form').submit(function(){
		
		var formID = '#' + $(this).parent('.myloginForm').attr('id') + " "; 
		
		var email = $(formID +'#user_login').val();
		var atIndex = email.indexOf('@');
		var dotIndex = email.lastIndexOf(".");
		
		if ( email == '' || atIndex == -1 || dotIndex < atIndex)
		{
			//$('.wp-user-form .username').find('.login_error')
			$(formID + '.login_error_text').text('Please try again.');
			return false;
		}
		else {
			$(formID + '.login_error_text').text('');
		}
	});
	*/
	$('.client-logo-wrapper').hover(function (){
		
		$(this).children('.client-logo-big').show();
	
	}, function() {
	
		
		$(this).children('.client-logo-big').hide();
		
	}
	);
	
	$('.client-logo-big').hover(function (){
	
		$(this).show();
	
	}, function() {
	
		$(this).hide();
		
	}
	);
	
	
	
});
