$(document).ready(function() {


$("comment-form h3").addClass("hideul");
$("comment-form").find("fieldset").hide().end();
$("comment-form").find("h3").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
   }
});

	
$(".tags h2").addClass("hideul").css("cursor", "pointer");
$(".tags").find("ul").hide().end();
$(".tags").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
   }
});

$(".vflinks h2").addClass("hideul");
$(".vflinks").find("div").hide().end();
$(".vflinks").find("h2").click(function() {
	var answer = $(this).next();
   if (answer.is(":visible")) {
   	answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
   } else {
      answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
   }
});

$(".vselected h2").addClass("hideul");
$(".vselected").find("ul").hide().end();
$(".vselected").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
	   answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});

$(".vsyndicate h2").addClass("hideul");
$(".vsyndicate").find("ul").hide().end();
$(".vsyndicate").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});


$(".doTwit h2").addClass("hideul");
$(".doTwit").find("ul").hide().end();
$(".doTwit").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});


$("#visites h2").addClass("hideul");
$("#visites").find("p").hide().end();
$("#visites").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});

$(".lastposts h2").addClass("hideul");
$(".lastposts").find("ul").hide().end();
$(".lastposts").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});

$(".text h2").addClass("hideul").css("cursor", "pointer");
$(".text").find("ul").hide().end();
$(".text").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});

$(".categories h2").addClass("hideul").css("cursor", "pointer");
$(".categories").find("ul").hide().end();
$(".categories").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});

$(".lastimages h2").addClass("hideul");
$(".lastimages").find("div").hide().end();
$(".lastimages").find("h2").click(function() {
	var answer = $(this).next();
	if (answer.is(":visible")) {
		answer.slideUp("fast");
		$(this).removeClass("showul");
		$(this).addClass("hideul");
	} else {
		answer.slideDown("slow");
		$(this).removeClass("hideul");
		$(this).addClass("showul");
	}
});


});
