$(document).ready(function() {
	/* Expand & Contract side menus */
	
	$(".sideTop .sideMenuHeader a").click(function() {
		$(this).toggleClass("topActive");
		$(this).toggleClass("topInactive");
		$(this).parent().parent().children(".sideMenuContent").toggle("fast");
		return false;
	});
	
	$(".sideMid .sideMenuHeader a").click(function() {
		$(this).toggleClass("midActive");
		$(this).toggleClass("midInactive");
		$(this).parent().parent().children(".sideMenuContent").toggle("fast");
		return false;
	});
	
	$(".sideBottom .sideMenuHeader a").click(function() {
		$(this).toggleClass("bottomActive");
		$(this).toggleClass("bottomInactive");
		$(this).parent().parent().toggleClass("sideBottomActive");
		$(this).parent().parent().children(".sideMenuContent").toggle("fast");
		return false;
	});
	
	
	$("a#commentPreview").click(function() {
		/*$.ajax({
			type: "POST",
			url: "blog/template/dsp_commentPreview.cfm",
			data: "Ajax=true&blog_ID=" + $("input#blog_ID").attr('value')
				+ "&member_ID=" + $("input#member_ID").attr('value')
				+ "&post_category_ID=" + $("input#post_category_ID").attr('value')
				+ "&title=" + $("input#title").attr('value')
				+ "&link=" + $("input#link").attr('value')
				+ "&post_body=" + $("#fldPost_body").html(),
			success: function(txt) {
				$("#commentContent").html(txt);
			}
		});*/
		$("#commentForm").submit();
		return false;
			
		 });
	
	$("a.helpLink").click(function() {
		$(this).parent().parent().children(".helpText").toggle("slow");
		return false;
								   });
								   
	
	
});