$(document).ready(function(){

	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$("h3.trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle("fast");
		return false; //Prevent the browser jump to the link anchor
	});


	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
	$("h3.trigger2").click(function(){
		$(this).toggleClass("active").next().slideToggle("fast");
		return false; //Prevent the browser jump to the link anchor
	});

	jQuery('ul.sf-menu').superfish();

$('#main-col a[href^="http://"]').attr("target", "_blank");
$('#main-col a[href^="https://"]').attr("target", "_blank");
$('footer a[href^="http://"]').attr("target", "_blank");
$('footer a[href^="https://"]').attr("target", "_blank");
$('.sponsors a[href^="http://"]').attr("target", "_blank");
$('.sponsors a[href^="https://"]').attr("target", "_blank");

});

// Ad-gallery

$(function() {
    var galleries = $('.ad-gallery').adGallery();
});
