
// home page slider settings
$(document).ready(function(){	
	
	$("#slider").easySlider({
		prevId: 		'previous',
		prevText: 		'previous',
		nextId: 		'next',
		nextText: 		'next',
		speed: 		1500,
		pause:		8000,
		auto: true,
		continuous: true 
	});
	
	if($("#slider"))
	{
		$(document).keydown(function(event){
			if(event.keyCode == 37) $("#previous a").click();
			if(event.keyCode == 39) $("#next a").click();
		});
	}
	
	// announcements icon hover
	$("a.icon").hover(
		function(){ $(this).css({opacity: .6}); },
		function(){ $(this).css({opacity: 1}); }
	);
	
});
