function add_blog() {
		
        $("blog_add").slideDown("slow");

}

$(document).ready(function(){

$(".addform").click(function(){
	$.post( "includes/modules/add_email.php",
		   $(this).serialize(),
		   function(data){
			   alert("Currently Under Construction.  Please try again later.");
			   var htmlStr = data;
			   $("div.output").html(htmlStr);
		   }
		);
	$(this).find(':input').each(function() {
		
		//Reset the form
        switch(this.type) {
            case 'password':
            case 'select-multiple':
            case 'text':
            case 'textarea':
                $(this).val('');
                break;
            case 'checkbox':
            case 'radio':
                this.checked = false;
				if($(this).val() === "No"){
					this.checked = true;
				}
        }
		
    });
	return false;	
});


$('#add-blog-button').click(function(){
	$('#add-blog-form').slideDown();
	return false;	

});

$('#close-add-blog-button').click(function(){
	$('#add-blog-form').slideUp();
	document.newseditor.reset();
	return false;
});

$('#blog_pic').change(function(){
});

});
