window.onload=function(){
	if($("formContainer")) Element.hide("formContainer");
	Nifty("div#outerContainer","big  bottom");
	Nifty("div#infodiv", "big top");
	Nifty("div#picCommentsContainer", "big tr");
}

function showCommentForm(){
	$("formContainer").style.display="block";
	location="#comment";
}

function hideCommentForm(){
	$("formContainer").style.display="none";
	location="#comment";
}

function hiliteError(OBJ){
	new Effect.Highlight(OBJ, {startcolor:'#eedddd'});
	$(OBJ).value = "Please fill out this field.";
}

function clearf(OBJ){
	if (OBJ.value == "Please fill out this field.") OBJ.value = "";
}

function verify(){
	e = 0;
	if ($("commenter_name").value == "" || $("commenter_name").value == "Please fill out this field."){
		hiliteError("commenter_name");
		e = 1;
	}
	if ($("commenter_comment").value == "" || $("commenter_comment").value == "Please fill out this field."){
		hiliteError("commenter_comment");
		e = 2;
	}
	if (e) return false;
}

a1 = new Image();
a1.src = "images/prev_on.gif";
a2 = new Image();
a2.src = "images/prev_off.gif";
b1 = new Image();
b1.src = "images/next_on.gif";
b2 = new Image();
b2.src = "images/next_off.gif";
c1 = new Image();
c1.src = "images/today_on.gif";
c2 = new Image();
c2.src = "images/today_off.gif";
d1 = new Image();
d1.src = "images/archive_on.gif";
d2 = new Image();
d2.src = "images/archive_off.gif";