$(function(){
	$("#livefeed li:last").css("border","0px");
	$("#claimonline_second").hide();
	$("#claim_submit").val("").live("click",function(){
		var error = 0;
		$("#claimonline_second .text").each(function(){
			var thisObj = $(this);
			if (thisObj.val()=="") {
				error = Math.ceil(error+1);
				thisObj.addClass("required");
			} else {
				thisObj.removeClass("required");
			}
		});
		if (error>0) {
			setTimeout(function(){
				$(".required").removeClass("required");
			},5000);
			return false;
		} else {
			return true;
		}
	});
	$("#start_your_claim").live("click",function(){
		$("#claimonline_first").hide();
		$("#claimonline_second").fadeIn();
	});
	$("#feature img:gt(0)").hide();
	setInterval(function(){$("#feature img:first").fadeOut(3000).next("img").fadeIn(3000).end().appendTo("#feature");},7000);
});
