Mission.extend ( {

	end : function ( ) {
		doAction( '9f27a6' );
		if ( !Portal.hintsUsed() ) {
			doAction( '77db47' );
		}
	}

} );

window.showStatusUpdate = function ( status ) {
	var box = $('<div/>')
		.append ($('<div class="hud-box"/>')
			.append ( $('<div class="hud-box-wrapper"/>')
				.append ( $('<div class="hud-box-inner"/>')
					.append ( $('<div class="hud-box-content"/>')
						.append ( $('<span/>' )
							.text ( status )
							.css ( {
								display : "block",
								padding : 10,
								textAlign : "center",
								fontWeight : "bold",
								fontSize : "14pt"
							} )
						)
					)
				)
			)
		)
		.css ( {
			width : 300,
			padding : "15px 0",
			position : "absolute",
			top : 0,
			left : 75
		} )
		.appendTo ( "#portal_top" );
	box.css ( "top", -box.outerHeight() );
	box.animate ( { top : 0 }, {
		duration : 500,
		complete : function ( ) {
			setTimeout ( function ( ) {
				box.animate ( { top : -box.outerHeight() }, {
					duration : 500,
					complete : function ( ) {
						box.remove();
					}
				} )
			}, 2000 );
		}
	} );
}

