$(function() { 
 
    // if the function argument is given to overlay, 
    // it is assumed to be the onBeforeLoad event listener 
    $("a[rel]").overlay({ 
    
        expose: { color: '#333', loadSpeed: 200, opacity: 0.9 },
  
        onBeforeLoad: function() { 
 
            // grab wrapper element inside content 
            var wrap = this.getContent().find(".contentWrap"); 
 
            // load the page specified in the trigger 
            wrap.load(this.getTrigger().attr("href")); 
        } 
 
    }); 
    
});

$(function() {

	$("div.login_form").hide(); 
	
	$("h2").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	$("h2").click(function () {
      $(this).next(".login_form").slideToggle("slow");
    });

});

