$(document).ready(function() {

	// Fake last-child selector for IE
	if ($.browser.msie) {
		$('#footer li:last').addClass('last');
	}

	// Remove SEARCH label and set color when user enters input
	$('#navigation p.search input[@type^=text]').click(function(){
		if (this.value=='> SEARCH') {
			this.value='';
			this.style.color='#000';
		}
	});

	// Replace empty input with SEARCH label and grey out
	$('#navigation p.search input[@type^=text]').blur(function(){
		if (this.value=='') {
			this.value='> SEARCH';
			this.style.color='#aaa';
		}
		return false;
	});

	// Fake :before selector for IE
	if ($.browser.msie) {
		$('div#related ul ul li a').before("- ");
	}

/*
	// Intercept external link and open in new window
	$("a[href^=http]").each(function() {
		$(this).click(function(){window.open(this.href);return false;});
	});

	// Intercept PDF link and open in new window
	$("a[href$='pdf']").each(function() {
		$(this).click(function(){window.open(this.href);return false;});
	});
*/

});

