/* -------------------------------------------------------------------

	Boondoggle - <css creator>
	<client>
	
	This JavaScript file collects all general functions used
	throughout the site, as well as some smaller specific
	functions.

------------------------------------------------------------------- */



// when the document is ready to be traversed and manipulated...
$(document).ready(function(){
	
	// LINK HANDLER
	// when you click on a link with class externalLink
	$("a.externalLink").click(function(){
		// open a new window with the link's location
		window.open($(this).attr("href"));
		// and do nothing after (to prevent the link from actually firing)
		return false;
	});
	
	// sessions
	$(".moreInfoBox").hide();
	$(".session:not(:last-child)").append("<p class='moreInfo clearfix'><span class='imgReplaced'>Meer info</span></p>");
	$(".moreInfo span").click(function(){
		$(this).parent().prev(".moreInfoBox").slideToggle("slow", function(){
			$(this).next(".moreInfo").toggleClass("lessInfo");
		});
	});
	
});
