function gametimelive_launch(team_to_track) {
	ls_file_name = '/games/game_component/dynamic/simple_scoreboard.xml';
	
	$.get(ls_file_name,{},function(xml){
		
		//Loop the XML to find the Celtics game.
		$('game[gcd*="BOS"]',xml).each(function(i) {
		gameCode = $(this).attr("gcd");
		gameCodeArray = gameCode.split('/');
		gameCodeDate = String(gameCodeArray[0]); /* This mage have to change to Number */
		gameCodeTeams = String(gameCodeArray[1]);		
		gameCodeAwayTeam = gameCodeTeams.substr(0,3);
		gameCodeHomeTeam = gameCodeTeams.substr(3,3);
		gameStatusNumber = $(this).attr("gstat");
		gameLocationString = "";
		rawVideoLink = $(this).attr("vid");
		
		// Check gamecode to see if Celtics appear on NBA scoreboard. 1) Pregame 2)In-Game 3)Postgame.
				if (gameStatusNumber == 2) {
				
				$("#gametimelive").css("display","block");
					autoupdate_scoreboard("BOS");
					setInterval("autoupdate_scoreboard()", 5 * 1000); //Refresh scoreboard every 5 seconds.
					$('<iframe src="http://www.coveritlive.com/index2.php?option=com_altcaster&task=viewaltcast&template=celtics&width=470&height=550" width="470px" height="550px" frameborder="0" scrolling="no" allowTransparency="true" ><a href="http://www.coveritlive.com/mobile.php?option=com_mobile&task=viewaltcast&template=celtics"></a></iframe>').insertAfter("#live_blog_h1");
					checkVideo(rawVideoLink);
					setInterval("checkVideo(rawVideoLink)", 300 * 1000); //Refresh video every 5 minutes.
					
					
					getTwitters('twitters', { 
					  id: 'celtics', 
					  clearContents: true, 
					  count: 6, 
					  withFriends: true,
					  ignoreReplies: false,
					  template: '%text%<br /><span class="tweet_timestamp"><a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a></span><br />'
					});
					
				}
				else if (gameStatusNumber == 3)
				{
					$("#gametimelive").css("display","block");
					autoupdate_scoreboard();
					$('<iframe src="http://www.coveritlive.com/index2.php?option=com_altcaster&task=viewaltcast&template=celtics&width=470&height=550" width="470px" height="550px" frameborder="0" scrolling="no" allowTransparency="true" ><a href="http://www.coveritlive.com/mobile.php?option=com_mobile&task=viewaltcast&template=celtics"></a></iframe>').insertAfter("#live_blog_h1");
					checkVideo(rawVideoLink);
					
					getTwitters('twitters', { 
					  id: 'celtics', 
					  clearContents: true, 
					  count: 6, 
					  withFriends: true,
					  ignoreReplies: false,
					  template: '%text%<br /><span class="tweet_timestamp"><a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a></span><br />'
					});
				}
				else { $("#gametimelive").hide(); }
		});
	});
}

function checkVideo(rawVideoLink) {
	if (rawVideoLink != "") {
	videoHighlightsArray = rawVideoLink.split('/index.html');
	videoHighlightsLink = String(videoHighlightsArray[0]);
	videoHighlightsCode = '<iframe id="new_video" name="new_video" src="http://www.nba.com/video/cvp/teamarticleplayer.html?videoID='+videoHighlightsLink+'&amp;width=416&amp;height=234" width="416" height="330" frameBorder="0" scrolling="no" style="margin:0;"></iframe>';
	}
	
	else 
	{
		videoHighlightsCode = "<p>Please check back later for video highlights.</p>";	
	}
	$("#game_video_highlights").empty().append(videoHighlightsCode);
}