
$(document).ready(function(){
	$(".grey-out").focus(function() {
		$(this).removeClass("grey-out");
		if(this.value == 'search site') {
			this.value = '';
		}
	});
	$(".grey-out").blur(function() {
		if(this.value == 'search site' || this.value=='') {
			$(this).addClass("grey-out");
			this.value = 'search site';
		} else {
			$(this).removeClass("grey-out");
		}
	});
	$(".grey-out").blur();
});

(function($) {
  var imgCache = [];
  $.preloadImages = function() {
    var totArgs = arguments.length;
    for (var i = totArgs; i--;) {
      var img = document.createElement('img');
      img.src = arguments[i];
      imgCache.push(img);
    }
  }
})(jQuery);

// preload navigation images
jQuery.preloadImages(	"/images/nav-item-1-hover.png",
						"/images/nav-item-2-hover.png",
						"/images/nav-item-3-hover.png",
						"/images/nav-item-4-hover.png",
						"/images/nav-item-5-hover.png",
						"/images/nav-item-6-hover.png");
