$(
	function() {
		$(".mantown img, .col_right .head img, .col_right .thumb img, #nav_hman img").hover(
		function() {
			this.src = this.src.replace("-off","-over");
			},
		function() {
			this.src = this.src.replace("-over", "-off");
			}
		);
		$(".col_left .block").hover(
			function () {
				$(this).stop().animate({width: "400px", margin: "0px"}, 500, "swing");
				$(".thumb img", this).stop().animate({width: "180px"}, 500, "swing");
				$(".blurb", this).stop().animate({marginLeft: "78px", font: "1em"}, 500, "swing").animate({marginLeft: "68px",marginRight: "10px", font: "1em"}, 300, "swing");
				$(".blurb h1", this).css({color: "#ffffff"});
				$(".blurb p", this).css({color: "#ffffff"});
				},
			function() {
				$(this).stop().animate({width: "390px", margin: "5px"}, 250);
				$(".thumb img", this).stop().animate({width: "112px"}, 500);
				$(".blurb", this).stop().animate({marginLeft: "0px", marginRight: "0px", font: ".9em"}, 1000, "swing");
				$(".blurb h1", this).css({color: "#f3f3f3"});
				$(".blurb p", this).css({color: "#cccccc"});
				}
			);
		}
);

function submitForm() {
	document.form_madlib.submit();
	}
function submitCaptionForm() {
	if (document.cform.fname.value=="") {
		alert("Fill in your name. Let us get to know you. Make yourself comfortable. Have a cold beverage. But first, Fill in your name.");
		document.cform.fname.focus();
		}
	else if (document.cform.femail.value=="") {
		alert("Give us your email address. We promise we won't use it for anything except to contact you personally and tell you if you won. For real.");
		document.cform.femail.focus();
		}
	else if (document.cform.ftown.value=="") {
		alert("Tell us where you're from. Fill something out for your hometown. If you're a nomad, just write 'The Earth' or 'My Yurt'.");
		document.cform.ftown.focus();
		}
	else if (document.cform.fcaption.value=="") {
		alert("Please provide a caption for submission. If you are a nihilist and are trying to submit a blank caption, we don't truck with that. Take your voodoo-like belief system elsewhere.");
		document.cform.fcaption.focus();
		}
	else if (document.cform.fcaptcha.value=="") {
		alert("Please copy the letters from the image in the form into the field below them so we know you aren't a robot. Or at least we'll know you aren't a stupid robot. If you are a robot, please don't do anything like Blade Runner. We're afraid of that movie. Awesome soundtrack, though.");
		document.cform.fcaptcha.focus();
		}	
	else {
		document.cform.submit();
		}
	}
function SubmitContactForm() {
	if (document.fform.fname.value=="") {
		alert("Tell us your name so we know who to send LB after if you make us angry.");
		document.fform.fname.focus();
		return false;
		}
	else if (document.fform.femail.value=="") {
		alert("Please provide an email address so we can respond if we feel like it. We won't tell anyone else. Promise.");
		document.fform.femail.focus();	
		return false;
		}
	else {
		document.fform.submit();
		}
	}