$(document).ready(function() {
	// Add JS class to body
	$('body').removeClass("nojs").addClass('js');
	
	// Hide all but first news links
	$('#news a:not(:first)').hide();
	
	// $('.link-box a').each(function() {
	// 	var hide = $(this).find('.fade-in');
	// 	$(this).hover(function() {
	// 		hide.stop(true,true).animate({
	// 			opacity: 1,
	// 		},500)
	// 	},
	// 	function() {
	// 		hide.stop(true,true).animate({
	// 			opacity: 0,
	// 		},500)
	// 	});
	// });
		
	// Form Labels
	$('#newsletter input[title]').each(function() {
		if($(this).val() === '') {
			$(this).val($(this).attr('title'));	
		}
		
		$(this).focus(function() {
			if($(this).val() == $(this).attr('title')) {
				$(this).val('').addClass('focused');	
			}
		});
		$(this).blur(function() {
			if($(this).val() === '') {
				$(this).val($(this).attr('title'));
				$(this).removeClass('focused');	
			}
		});
	});
});
