// Selectable region

$(document).ready(function(){
	
	// Navigation links
	$('#nav li').hover(function(){
		$(this).addClass('hover');
		$(this).fadeTo(300, 0.6);
	},function(){
		$(this).removeClass('hover');
		$(this).fadeTo('fast', 1.0); // This should set the opacity back to 60% on mouseout
	});
	
	// Forum Box
	$('#forum').wrapInner('<a class="wrap" target="_blank"></a>');
	$('#forum a.wrap').attr('href', $('#forum h2 a').attr('href'));
	
	$('#forum').hover(function(){
		$(this).fadeTo('slow', 0.6);
	},function(){
		$(this).fadeTo('slow', 1.0); // This should set the opacity back to 60% on mouseout
	});
	
	// Subscribe Box
	$('#subscribe').wrapInner('<a class="wrap"></a>');
	$('#subscribe a.wrap').attr('href', $('#subscribe h2 a').attr('href'));
	
	$('#subscribe').hover(function(){
		$(this).fadeTo('slow', 0.6);
	},function(){
		$(this).fadeTo('slow', 1.0); // This should set the opacity back to 60% on mouseout
	});
	
	// iArticle Box
	$('#iArticle').wrapInner('<a class="wrap"></a>');
	$('#iArticle a.wrap').attr('href', $('#subscribe h2 a').attr('href'));
	
	$('#iArticle').hover(function(){
		$(this).fadeTo('slow', 0.6);
	},function(){
		$(this).fadeTo('slow', 1.0); // This should set the opacity back to 60% on mouseout
	});
	
});