$(document).ready(function(){
	
	$(".toggle_container").show();
	$(".toggle_container1").hide();
	$(".toggle_container2").hide();
	$(".toggle_container3").hide();
	$("h2.trigger").click(function(){
		$(this).toggleClass("active").next().slideToggle("slow");
	$(".toggle_container").hide();
	$(".toggle_container1").hide();
	$(".toggle_container2").hide();
	$(".toggle_container3").hide();
	});

});


function popitup(url){
	newwindow=window.open(url,'community','height=450,width=900');
	if (window.focus){
		newwindow.focus()
	}
	return false;
}

function repositionPopup() {
	var content = document.getElementById("wp-email-popup");
	var newWidth = content.offsetWidth + 65;
	var newHeight = content.offsetHeight + 150;
	if (/Firefox/.test(navigator.userAgent)) // Firefox doesn't hide location & status bars
		newHeight += 50;
		window.resizeTo(newWidth, newHeight);
		window.moveTo((screen.width-newWidth) / 2, (screen.height-newHeight) / 2);
}

