jQuery(window).load(function() {
	// Navigation Hover
	$('#nav li:not(.active)').hover(function() {
		$(this).parents('li').addClass('active');
	}, function() {
		$(this).parents('li').removeClass('active');
	});
	
	// Checkbox/Radio styles
	$('input[type="checkbox"], input[type="radio"]').addClass("radio-check");
	
	// Form focus
	$('form input, form textarea').focus(function() {
		$(this).addClass('selected');
	});
	$('form input, form textarea').blur(function() {
		$(this).removeClass('selected');
	});
	
	// Calendar month links hover
	$('#event-calendar .calendar-head a.last').hover(
		function() {
			$(this).addClass("last-hover");
		},
		function() {
			$(this).removeClass("last-hover");
		}
	);
	$('#event-calendar .calendar-head a.next').hover(
		function() {
			$(this).addClass("next-hover");
		},
		function() {
			$(this).removeClass("next-hover");
		}
	);
	
	// Forum sticky styles
	$('.forum .sticky:last').addClass("last-sticky");
	
	// Home page upcoming events
	$('#upcoming_events li.event').click(function(){
  		window.location = $(this).find(".event_details a").attr("href");
	});
	
	$('#upcoming_events li.event').hover(function(){
		$(this).addClass('active');
	}, function() {
		$(this).removeClass('active');
	});
});
