$(document).ready(function(){
// Drop Down Menu
	$("#topNav, #leftNav")
		.superfish({
			animation : { opacity:"show"}
	});
    $("div#topLogo").pngFix();		

	$('a.external').click(function(){
	window.open(this.href);
	return false;
    });
	

	//open a new window with class "_blank"
	jQuery(function(){
		jQuery("a[href$='.pdf'], ._blank").click(function(){
			var newwindow = window.open(this.href, '_blank');
			newwindow.focus();
			return false;
		});
	});
	// Read More links (uses animatedcollapse.js)
	animatedcollapse.addDiv('more', 'fade=1,hide=1,speed=400')
	animatedcollapse.addDiv('site-map', 'fade=1,hide=1,speed=400')
	animatedcollapse.init()
	
	// clear input on focus
jQuery('.searchClear').focus(function()
{
if(jQuery(this).val()==$(this).attr('title'))
{
clearMePrevious = $(this).val();
jQuery(this).val('');
}
});
// if field is empty afterward, add text again
jQuery('.searchClear').blur(function()
{
if(jQuery(this).val()=='')
{
jQuery(this).val(clearMePrevious);
}
});

});
