motion_lock = false;
count = 0;

function lock_motion() {
	motion_lock = true;
}
function release_motion() {
	setTimeout(function() {motion_lock = false;}, 300);

}
jQuery(document).ready( function() {
	
	jQuery('#primary a').text('');
/*		$('.view-class-list .class_wrapper').bind('mouseenter', function() {
//			if (!motion_lock) {
				var to_slide_down = $(this);
				lock_motion();
				$('.description').each(function() {
					if ($(this).html() != to_slide_down.children('.description').html()) {
						$(this).slideUp("normal",release_motion());
						$(this).siblings('.name').children('.ellipsis').css('display','block');
					}
				});
				to_slide_down.children('.description').each(function() {
					$(this).slideDown("normal",release_motion());
					$(this).siblings('.name').children('.ellipsis').css('display','none');
			  });
//			}
		});
		$('.view-class-list .class_wrapper').bind('mouseleave', function() {
			if (!motion_lock) {
				lock_motion();
				$(this).children('.description').each(function() {
						$(this).slideUp("normal",release_motion());			
						$(this).siblings('.name').children('.ellipsis').css('display','block');
						
				});
			}
		});
*/
	
	jQuery('.views-exposed-form input').click(function() {
		this.form.submit();
	})
})

