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]);
		gameCodeTeams = String(gameCodeArray[1]);		
		gameCodeAwayTeam = gameCodeTeams.substr(0,3);
		gameCodeHomeTeam = gameCodeTeams.substr(3,3);
		gameStatusNumber = $(this).attr("gstat");
		broadcastStatusNumber = $(this).attr("bstat");
		gameLocationString = "";
		rawVideoLink = $(this).attr("vid");
		blogHTML = '<iframe id="coveritlive" src="http://www.coveritlive.com/index2.php/option=com_altcaster/task=viewaltcast/template=celtics/width=300/height=735" width="300px" height="735px" frameborder="0" scrolling="no" allowTransparency="true"><a href="http://www.coveritlive.com/mobile.php?option=com_mobile&task=viewaltcast&template=celtics"></iframe>';
		
		// Check gamecode to see if Celtics appear on NBA scoreboard. 1) Pregame 2)In-Game 3)Postgame.
				if (gameStatusNumber == 2 || broadcastStatusNumber == 2) {
				$("#gtl3_box").css("display","block");
				$("#coveritlive").css("display","block");
					autoupdate_scoreboard("BOS");
					setInterval("autoupdate_scoreboard()", 5 * 1000); //Refresh scoreboard every 5 seconds.
					setInterval("grab_boxscores()", 5 * 1000);		  //Grabs Boxscores and top scoreboard.
					$("#blog_iframe_insert").empty().append(blogHTML);
					checkVideo(rawVideoLink);
					setInterval("checkVideo(rawVideoLink)", 600 * 1000); //Refresh video every 10 minutes.
				}
				else if (gameStatusNumber == 3 || broadcastStatusNumber == 3)
				{
					$("gtl3_box").css("display","block");
					$("#coveritlive").css("display","block");
					autoupdate_scoreboard();
					$("#blog_iframe_insert").empty().append(blogHTML);
					checkVideo(rawVideoLink);
				}
				else { $("#gtl3_box").hide(); }
		});
	});
	changeGTL1Tab("gtl1_tab1"); /* Sets default tab on bottom to Celtics' boxscore */
}

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=576&amp;height=324" width="576" height="352" frameBorder="0" scrolling="no" style="margin:0;"></iframe>';
	}
	
	else 
	{
		videoHighlightsCode = '<p class="no_video">Please check back later for video highlights.</p>';	
	}
	$("#game_video_highlights").empty().append(videoHighlightsCode);
}
