function changeFooter() {
	setInterval(function() {
		if ($(".footercontent").attr("id") == "one") {
			$(".footercontent").fadeOut(2000, function() {
				$(".footercontent").css("background", "url(images/footer2.jpg) no-repeat");
				$(".footercontent").attr("id", "two");
			});
			$(".footercontent").fadeIn(2000);
		} else {
			$(".footercontent").fadeOut(2000, function() {
				$(".footercontent").css("background", "url(images/footer1.jpg) no-repeat");
				$(".footercontent").attr("id", "one");
			});
			$(".footercontent").fadeIn(2000);
		}
	}, 8000);
}

function toggleOther() {
	if ($("#request option:selected").val() == "Other") {
		$("#otherdiv").fadeIn('slow');
	} else {
		$("#otherdiv").hide();
	}
}

$(window).ready(function() {
	setTimeout(function() {
		$(".footercontent").fadeOut(2000, function() {
			$(".footercontent").css("background", "url(images/footer2.jpg) no-repeat");
			$(".footercontent").attr("id", "two");
		});
		$(".footercontent").fadeIn(2000);
		changeFooter();
	}, 3000);
	
	$("#request").bind("change", function() { toggleOther(); });
	
	toggleOther();
	
	$("#newsletter-sidebar").mouseover(function() { $("#newsletter-sidebar").animate({ left: '0px'}, 100); });
	$("#newsletter-sidebar").mouseout(function() { $("#newsletter-sidebar").animate({ left: '-5px'}, 100); });
});
