$(function(){														// opens  a.blank in new window
    $('a.blank').click(function(){
        window.open(this.href);
        return false;
    });
});

$(function(){	
	$('a.close').click(function(event){
		event.preventDefault();
		$("#bubbles li").removeClass("active-small active-big");	// clear any bubble's active state
		$(".overlay").hide();										// hide any overlays
	});
});

$(function(){	
		$('a.more').click(function(event){
		event.preventDefault();

		$("#bubbles li").removeClass("active-small active-big"); 	// clear any bubble's active state
		$(".overlay").hide(); 										// hide any overlays
 		$(this).parents("li").children(".overlay").show();			// show correct overlay

			if ($(this).parents("li").hasClass("small")) {			// turn on the bubble's active state
					$(this).parents("li").addClass("active-small");
			} else {
					$(this).parents("li").addClass("active-big");
			}

	});
});
