Mission.tasks(0).extend ( {

	setup : function ( cb ) {
		Portal.loadPage ( this, 'start/', null, function ( ) {
			cb();
		} );
	},
	start : function ( cb ) {
		setStoppableTimeout ( this, function ( ) {
			loadConversation ( '/scripts/tmi/conversations/intro.js', function ( s ) {
				if ( s ) {
					var ringing = new SoundStage.Sound( '/audio/ringtone.mp3', { repeat : true, noSubtitles : true, autoPlay : true } );
					var timeout = setTimeout( function () {
						ringing.stop();
						$( '#hud-incoming-call' ).remove();
						Mission.fail( 'You should have answered the phone' );
					}, 30000 );
					$( '#portal_top' ).append( '<div class="hud-box" id="hud-incoming-call"><div class="hud-box-wrapper"><div class="hud-box-inner"><div class="hud-box-content"><div class="hud-message"><button class="hud-button"><span><span>Answer call from Shane</span></span></button></div></div></div></div></div>' );
					$( '#hud-incoming-call button' ).click( function () {
						clearTimeout( timeout );
						ringing.stop();
						$( '#hud-incoming-call' ).remove();
						window.audio = window.audio || {};
						window.audio.INTRO = new Audio ( window.scripts.INTRO, true, function ( ) { cb(); } );
					} );
				}
			} );
		}, 500 );
	}

} );
