function build_player (videoIndex) {
	var player_videos = new Array (
		new Array('president', new Array (0, 36000, 101000, 118000, 166000), 'http://www.youtube.com/watch?v=VGp7dNxKtrQ'), // Our favorite president
		new Array('computer', new Array (0, 41000, 118000, 134000, 177000), 'http://www.youtube.com/watch?v=HAvyVng6cto'), // Our favorite space computer
		new Array('rocker', new Array (0, 35000, 102000, 118000, 159000), 'http://www.youtube.com/watch?v=sAOzvGMrV78'), // Our favorite Rock Start
		new Array('agent', new Array (0, 39000, 93000, 109000, 143000), 'http://www.youtube.com/watch?v=dRYBaRyXsGM'), // Our favorite agent's boss
		new Array('maraka', new Array (0, 39000, 106000, 129000, 172000), 'http://www.youtube.com/watch?v=zE_w2_jt4Xc')); // Our favorite young explorer

	$('.vidBkmrk').each(function(index){
		$(this).attr('cue', player_videos[videoIndex][1][index]);
	});

	$('#sharableLink').val(player_videos[videoIndex][2]);
	$('#sharableLink').focus(function() {
		$.clipboard($(this).val());
		$(this).select();
	});

	updateBookmarks(0);

	flowplayer(
		"embedded",
		"/flash/flowplayer/flowplayer.commercial-3.1.5.swf",
		{
			key: '#$00e49d9205e3111f53b',
			clip: {
				url: "http://i.letmego.com/videos/video_training_travelers_" + player_videos[videoIndex][0] + "_b_700.flv",
				autoPlay: true,
				autoBuffering: true,
				scaling: "fit",
				captionUrl: "/files/video_training_travelers_" + player_videos[videoIndex][0] + "_cc.xml",
				onCuepoint: [
					player_videos[videoIndex][1],
					function(clip, cuepoint) {
						updateBookmarks(cuepoint);
					}
				],
				onBegin: function() {
					setTimeout(handleBufferToEnableBookmarks, 500);
				},
				onSeek: function() {
					updateBookmarks();
				},
				onResume: function(clip, cuepoint) {
					updateBookmarks();
				},
				urlResolvers: 'bwcheck'
			},
			screen: {
				bottom:36
			},
			plugins: {
				controls:{
					height: 20,
					backgroundGradient: 'none',
					progressGradient: 'none',
					bufferGradient: 'none',
					sliderGradient: 'none',
					butonGradient: 'none',
					backgroundColor: 'transparent',
					buttonColor: '#677F16',
					progressColor: '#677F16',
					bufferColor: '#90B11F',
					sliderColor: '#969598',
					buttonOverColor: '#EA5A13',
					time: false,
					volume: false,
					tooltips: {
						buttons: true
					}
				},
				ccContent: {
					url:'/flash/flowplayer/flowplayer.content-3.1.0.swf',
					bottom: 20,
					width: '100%',
					height: 18,
					backgroundColor: 'transparent',
					backgroundGradient: 'none',
					borderRadius: 0,
					border: 0,
					opacity: 0.9,
					padding: '2px',
					zIndex: 1
				},
				captions: {
					url: '/flash/flowplayer/flowplayer.captions-3.1.1.swf',
					captionTarget: 'ccContent',
					button: {
						left: 30,
						bottom: 20,
						zIndex: 2,
						height: 13,
						width: 19
					}
				},

				bwcheck: {
					url: '/flash/flowplayer/flowplayer.bwcheck-3.2.0.swf',
					netConnectionUrl: 'http://i.letmego.com/videos/bwcheck.swf',
					bitrates: [700], /* We are not using this plugin to decide which file to deliver, but we still need to declare this */
					urlPattern: '{0}_{1}.{2}',
					rememberBitrate: false,
					onBwDone: function(url, chosenBitrate, bitrate) {}
			}
		},
		canvas: {
			backgroundColor: "#ffffff"
		}});
}