$( document ).ready( function() {
	$( 'a[href^=#]' )
		.click( function() {
			var a = this;
			$( 'div:visible' )
				.slideUp( 500, function() {
					$( $( a ).attr( 'href' ) )
						.find( '*' ).show().end()
						.slideDown()
					;
				} )
				.find( '*' ).fadeOut().end()
			;
			$( a ).blur();
		} )
		.hover( function() {
			$( this ).css( 'borderTopWidth', '10px' );
			$( this )
				.stop()
				.animate( { borderTopWidth: '100px' } );
		}, function() {
			$( this )
				.stop()
				.animate( { borderTopWidth: '0' } );
		} )
	;
	var location = document.location.toString();
	if( location.indexOf( '#' ) != -1 )
		$( 'div:not(div' + location.substr( location.indexOf( '#' ) ) + ')' ).hide();
	else
		$( 'div:not(div#intro)' ).hide();
} );

