$(document).ready(function(){
	
	$("#validation").hide();
	
	$("ol.commentlist li:nth-child(4n+1)").addClass("comment-a");
	$("ol.commentlist li:nth-child(4n+2)").addClass("comment-b");
	$("ol.commentlist li:nth-child(4n+3)").addClass("comment-c");
	$("ol.commentlist li:nth-child(4n+4)").addClass("comment-d");												   

	$("#polls-2-ans .Buttons").click(function(){
			$(this).hide();								  
			$("div.wp-polls-ans").addClass("results");
	 });
	
	//Custom Validation
	$("input#submit").click(function(){

		name = $("input#author").val();
		email = $("input#email").val();
		comment = $("textarea#comment").val();
		msg = "Error - Please fill in all the required fields"
		$("#validation").html('');

		if ( name == "" || email == "" || comment == "") {
			$("#validation").show().append("<p class='error'>" + msg + "</p>");
			return false;	
		} else {
			return true;
		}

	});
	
	//Remove .val of vote button
	$("input.Buttons").val('');

});
