	$(document).ready(function() { 
		$('#navigation ul li').hover(function() {
			$(this).find('a').stop(true).animate({opacity:'0.5'},300);
			$(this).stop(true).animate({ backgroundColor: '#ffffff' }, 300);
		}, function() {
			$(this).find('a').stop(true).animate({opacity:'1'},300);
			$(this).stop(true).animate({ backgroundColor: '#f8f8f8' }, 300);
		});	
		
		$('#subnav ul li').hover(function() {
			$(this).find('a').stop(true).animate({opacity:'0.5'},300);
			$(this).stop(true).animate({ backgroundColor: '#ffffff' }, 300);
		}, function() {
			$(this).find('a').stop(true).animate({opacity:'1'},300);
			$(this).stop(true).animate({ backgroundColor: '#f8f8f8' }, 300);
		});			

		$('.talk-member').hover(function() {
			$(this).children('div.talk-member-info').fadeIn("fast");
		}, function() {
			$(this).children('div.talk-member-info').fadeOut("slow");
		});			

		$("#jobfilters input").click(function() {
			$("#jobfilters").submit();
		});
		
		$("#directoryfilters input").click(function() {
			$("#directoryfilters").submit();
		});		
				
		$('.image-wrap').cycle({ 
			prev: '.image-controls-beta .prev',
			next: '.image-controls-beta .next',
			timeout: 0,
			before: onBefore
		});		
		 
		function onBefore() { 
			$('#image-controls-alpha span').html(this.alt); 
		}; 	

		$('a[rel="external"]').click(function(){
		  this.target = "_blank";
		});		
		
	});  

	Cufon.replace('#navigation ul li,#subnav ul li, h2', {
		hover: true,
		hoverables: { a: true }
	});		
	