$(document).ready(function(){

	
		
		
	$("div.callout").hover(
		function () {
			
			$(this).find("div.callout_hover").fadeIn('medium');
		}, 
		function () {
			$(this).find("div.callout_hover").fadeOut('medium');
		}
	);

	
	$(function() {
        $('.callout').hover(function(){
               $(this).addClass('over');
        }, function() {
               $(this).removeClass('over');
        });
	});


	$("a#loginbtn").click(function() {
		$("div#blackbox").fadeIn('fast').addClass("boxactive");
		
		$("div#loginlightbox").fadeIn('medium');
		return false
	});
	
	$("a.close_btn").click(function() {
		$("div#blackbox").fadeOut('fast').removeClass("boxactive");
		$("div#loginlightbox").fadeOut('medium');
		return false
	});
	
	$("a#ca_tab").click(function() {
		$("a#club_tab").removeClass("active_tab");
		$(this).addClass("active_tab");
		$("#club_form").hide();
		$("#ca_form").show();
		return false
	});
	
	$("a#club_tab").click(function() {
		$("a#ca_tab").removeClass("active_tab");
		$(this).addClass("active_tab");
		$("#ca_form").hide();
		$("#club_form").show();
		return false
	});
	
	
	
	
	
	$('div#login').click(function(e){
		/*** stops clicks inside the login box from being picked up by the next function ***/
		e.stopPropagation();
	});
     
	$(document).bind("click", function() { 
		$("div#login").fadeOut('medium');
	});

	

	
	$('.2columns').columnize({width: 350});
	
	
	
});



