jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++) {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$.preloadImages(
	"/wp-content/themes/sparkysan/images/menu-home-hover.png", 
	"/wp-content/themes/sparkysan/images/menu-archives-hover.png", 
	"/wp-content/themes/sparkysan/images/menu-gallery-hover.png", 
	"/wp-content/themes/sparkysan/images/menu-about-hover.png", 
	"/wp-content/themes/sparkysan/images/menu-contact-hover.png"
);

$(function() {
	$('.rollover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('rel'));
		$(this).attr('rel', currentImg);
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('rel'));
		$(this).attr('rel', currentImg);
	});
});

$(document).ready(function(){
	$("#s").focus(function(){
		if ($(this).val() == 'search here') { $(this).val(''); }
	});
	
	$("#s").blur(function(){
		if ($(this).val() == '') { $(this).val('search here'); }
	});
});