/* BEGIN TODAYS AUTHORS */

function getauthors(req) {
	$(document).ready(function() {
	
	$("#todays-authors > h2").append(' <img style="position: relative; top: 2px;" src="/wp-content/plugins/todays-authors/loading.gif" alt="Loading..." />');

	
	$("#todaysauthorcontainer").hide('slow', function () {
			$("#todaysauthorcontainer").empty();
			$("#todaysauthorcontainer").load("/wp-content/plugins/todays-authors/todays-authors.php", {yesterday: req}, function(){
			
				$("#todaysauthorcontainer").show('slow');
				
				if (req == 1) {
					$("#todays-authors > h2").html('Yesterday\'s Authors'); 
				} else {
					$("#todays-authors > h2").html('Today\'s Authors'); 
				}
				
	
			});
		});
		
	});
}

/* END TODAYS AUTHORS */




$(document).ready(function(){




/* COMMENT FORM */

$("#commentform").hide("fast");
var commentControl = $("#respond").text();
$("#respond").html('<span><a href="javascript:void(0)">' + commentControl + ' &raquo;</a></span>');
$("#respond > span").hover(function () {
	$("#respond").text(commentControl);
	$("#commentform").show("slow");
}, function () {
	/* nothing to unhover */
});




/* SEARCH BOX */

/* First customization */

$("#s").addClass("normal");
$("#s").attr("value", function(searchVal) {
	if (searchVal == '' || searchVal == 'undefined') { this.value = 'SEARCH'; }
});


/* On hover */

$("#s").hover( function () {
	$(this).addClass("hover");
	$(this).removeClass("normal");
}, function () {
	$(this).addClass("normal");
	$(this).removeClass("hover");
});


/* On focus */

$("#s").focus(function () {
	if (this.value == 'SEARCH') { this.value = ''; }
});
$("#s").blur(function () {
	if (this.value == '') { this.value = 'SEARCH'; }
});




});
