/*
	Javascript by Joshua Gatcke
*/

	$(document).ready(function(){
	
		// main menu
		$('#mainnav>li').not('.current').hover(function(){
			$('#mainnav>li.current').attr('class','hover-current');
			$(this).find('ul:first').stop(true,true).attr('class','hover').fadeIn('fast');
		},
		function(){
			$('#mainnav>li.hover-current').attr('class','current');
			$(this).find('ul:first').stop(true,true).attr('class','').fadeOut('fast');
		});
		
		// subnav menu
		$('#mainnav li ul>li').hover(function(){
			$(this).find('ul:first').stop(true,true).attr('class','hover').fadeIn('fast');
		},
		function(){
			$(this).find('ul:first').stop(true,true).attr('class','').fadeOut('fast');
		});
		
			
		// financial-aid page links - Open in new window
		$('.financial-aid a,.placement a').click(function(){
			$(this).attr('target','_blank');
		});
		
		
	});