//	jQuery Compatibility Method
var $j = jQuery.noConflict();





$j("document").ready(function(){





	//	hash to tag based on 'id' attribute (creates scrolling animation)
	
	$j('[href^=#]').click(function (event) {
		if($j(this).attr('href').slice(1))
		{
			$j('html,body').animate({scrollTop: $j('[id=' + this.hash.slice(1) +']').offset().top}, 1000);
		}
	});
	
	
	
	// Open all [rel=external] links in a new smaller window
	
	$j('.lightbox').click(function(event){
		event.preventDefault();
		window.open($j(this).attr('href'), '', 'width=650, height=450, scrollbars=yes, toolbar=no');
	});
	
	
	
	// top search form
	
	if($j('.q input').val() == '')
	{
		$j('.q input').val($j('.q input').attr('title'));
	}
	
	$j('.q input').focus(function(){
		if($j(this).val() == 'Keywords...')
		{
			$j(this).val('');
		}
	});
	
	$j('.q input').blur(function(){
		if($j(this).val() == '')
		{
			$j('.q input').val($j('.q input').attr('title'));
		}
	});





}); // document.ready
