$(document).ready(function() {
	
	/* Thank you jQuery Jesus... */
	
	/* Search box rules... */
	
		searchbox = $("#searchBox");
		
		/* Empty the search box if you click it and the default search term is there. */
		searchbox.focus(function() {
			$(this).addClass("focus");
			if(this.value == "Search LansdownesFuture.com") {
				this.value = "";
			}
		});
		
		/* Reset the search box to something useful only if it's empty. */
		searchbox.blur(function() {
			$(this).removeClass("focus");
			if(this.value == "") {
				this.value = "Search LansdownesFuture.com";
			}
		});


	/* External link rules. */
		
		/* Get's all the <a> tags with: rel="external" */
		externals = $("a[@rel='external']");
		
		/* This could have been done with the CSS, but IE fucks it up. */
		// externals.append("&nbsp;<img src=\"/LansdowneFutureSketch/images/popup_icon.png\" alt=\"\">");		
		
		/* Open these links in new windows! This was by request, not what I'd do. */
		externals.click(function() {
			window.open(this.href);
			return false;
		});
		
});