$(document).ready(function() {
	$("#commentForm").validate();

	var agentur = $("#agentur");
	
    var inital = agentur.is(":checked");
	var topics = $("#agentur_topics")[inital ? "removeClass" : "addClass"]("gray");
	var topicInputs = topics.find("input").attr("disabled", !inital);
	
    agentur.click(function() {
		topics[this.checked ? "removeClass" : "addClass"]("gray");
		topicInputs.attr("disabled", !this.checked);
	});   
});

$(document).ready(function() {
	$("#commentForm").validate();

 var neuesunternehmen = $("#neuesunternehmen");
	
    var inital = neuesunternehmen.is(":checked");
	var topics = $("#neuesunternehmenbox")[inital ? "removeClass" : "addClass"]("verstecken");
	var topicInputs = topics.find("input").attr("disabled", !inital);
	
    neuesunternehmen.click(function() {
		topics[this.checked ? "removeClass" : "addClass"]("verstecken");
		topicInputs.attr("disabled", !this.checked);
	});
});


$(document).ready(function() {
	$("#commentForm").validate();
   	
	$("#textzeile2").fadeOut("slow");
	$("#textzeile3").fadeOut("slow");
	$("#textzeile4").fadeOut("slow");
	$("#textzeile5").fadeOut("slow");
	$("#textzeile6").fadeOut("slow");
	$("#textzeile7").fadeOut("slow");
	$("#textzeile8").fadeOut("slow");
	$("#textzeile9").fadeOut("slow");
	$("#textzeile10").fadeOut("slow");
	$("#textzeile11").fadeOut("slow");
	$("#textzeile12").fadeOut("slow");
	
	$("#bildnummer2").fadeOut("slow");
	$("#bildnummer3").fadeOut("slow");
	$("#bildnummer4").fadeOut("slow");
});	

$("#zeile1").click(function() {
		$("#textzeile2").fadeIn("slow");
});

$("#zeile2").click(function() {
		$("#textzeile3").fadeIn("slow");
});

$("#zeile3").click(function() {
		$("#textzeile4").fadeIn("slow");
});

$("#zeile4").click(function() {
		$("#textzeile5").fadeIn("slow");
});

$("#zeile5").click(function() {
		$("#textzeile6").fadeIn("slow");
});

$("#zeile6").click(function() {
		$("#textzeile7").fadeIn("slow");
});

$("#zeile7").click(function() {
		$("#textzeile8").fadeIn("slow");
});


$("#zeile8").click(function() {
		$("#textzeile9").fadeIn("slow");
});


$("#zeile9").click(function() {
		$("#textzeile10").fadeIn("slow");
});


$("#zeile10").click(function() {
		$("#textzeile11").fadeIn("slow");
});


$("#zeile11").click(function() {
		$("#textzeile12").fadeIn("slow");
});

$("#bild1").click(function() {
		$("#bildnummer2").fadeIn("slow");
});

$("#bild2").click(function() {
		$("#bildnummer3").fadeIn("slow");
});

$("#bild3").click(function() {
		$("#bildnummer4").fadeIn("slow");
});
