	function $e(e, f) { 
		if (f !== null) {
			var tmp = getElementByClass(f,'*',document.getElementById(e));
			if (tmp) return tmp;
		}
		return document.getElementById(e); 
	}
	function showTimes (t) {
		var i,x,next,today,col1,col2,content,body,title,status,last,link;
		
		// TV Times ------------------------------------------------------------------------------

		//e('tourTTBroadcast','TV')
		
		var tourn = '';
		if (window.Tourn_Id) { tourn = "/tournaments/"+Tourn_Id; }
		$e('tourTTTournName','tourTTTournament').innerHTML = '<a href="'+tourn+'">'+t.title+'</a>';
		
		// XM TIMES -------------------------------------------------------------------------------
		if ($e('tourTTBroadcast','XM')) {
			x = t.xm;
			link = 'window.open(\'/multimedia/xmplayer/index.html\',\'xmplayer\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=705,height=510\');';
			
			next = getTimesNext(x),last=x.length-1,today=getTimesToday(x),content='',body='',title='';
			content = '<h4>XM 146</h4>';
			switch (getTimesStatus(x)) {
				case 3:
					content += '<h4>On Today<h4>';
					content += formatTime('<p>[time][p0] - ', x[today].start)+formatTime('[time][p0] ET</p>', x[today].finish);
					break;
				case 4:
					content += '<h4><a href="#" onclick="'+link+'">Listen NOW!<a/></h4>';
					content += formatTime('<p><a href="#" onclick="'+link+'">[time][p0] - ', x[today].start)+formatTime('[time][p0] ET<a/></p>', x[today].finish);
					break;
				case 1:
				case 2:
				case 5:
					content += formatDate('<h4>[d4] [m1]/[d1]</h4>', x[next].date);
					content += formatTime('<p>[time][p0] - ', x[next].start)+formatTime('[time][p0] ET</p>', x[next].finish);
					break;
				case 6:
					content += '<p>Check Listings<p>';
					break;
			}
			$e('tourTTBroadcast','XM').innerHTML = content;
		}		
		
		// TV TIMES -------------------------------------------------------------------------------
		
		if ($e('tourTTBroadcast','TV')) {
			x = t.tv,next = getTimesNext(x),last=x.length-1,today=getTimesToday(x),status=getTimesStatus(x),content=body=title=content='';
			// getChannelName(x[i].channel);
		
		// 1: week ahead, 
		// 2: tomorrow
		// 3: today
		// 4: live now
		// 5: highlights
		// 6: tournament done
		// 7: live now 2: channel 2

			switch (getTimesStatus(x)) {
				case 6:// 6: tournament done
					content += '<h4><br/><a href="/tv-times/>Check TV Listings</a><h4>';
					break;
				default:
					i=next; 
					if (status == 1) { content = '<h4>'+getChannelName(x[today].channel)+'<br/>'+formatDate('[d4] [m1]/[d1]', x[next].date)+'</h4>'; }
					if (status == 2 || status == 5) { content = '<h4>'+getChannelName(x[today].channel)+'<br/>On '+formatDate('[d4] [m1]/[d1]', x[next].date)+'</h4>'; }
					if (status == 3) { i=today; content = '<h4>On Today<br/>'+getChannelName(x[today].channel)+'</h4>'; }
					if (status == 4) { i=today; content = '<h4>On NOW!<br/>'+getChannelName(x[today].channel)+'</h4>'; }
					if (status == 7) { i=today; content = '<h4>On NOW!<br/>'+getChannelName(x[today].channel2)+'</h4>'; }
					if (status == 7){
						content += formatTime('<p>[time][p0] - ', x[i].start2)+formatTime('[time][p0] ET</p>', x[i].finish2);
					} else {
						if (x[i].start2) {
							content += formatTime('<p>[time][p0] & ', x[i].start)+formatTime('[time][p0] ET</p>', x[i].start2);
						} else {
							content += formatTime('<p>[time][p0] - ', x[i].start)+formatTime('[time][p0] ET</p>', x[i].finish);
						}
					}
			}
			$e('tourTTBroadcast','TV').innerHTML = content;
		}
// Liveat ------------------------------------------------------------------------------
		 
		if (t.liveat) {
			//Tourn_Id
			x = t.liveat,next=getTimesNext(x),last=x.length-1,today=getTimesToday(x),content='',body='',title='',status=getTimesStatus(x),col1=col2='';
			body = '<br/>';
			link = "window.location = '/livegolf/'";
			switch(status) {
				case 1:// 1: week ahead
					body += '<b>Coming '+formatDate('[m1]/[d1] -', x[0].date)+formatDate('[m1]/[d1]', x[last].date)+'</b> <br/>'+ formatDate('[d4] [time][p1]', x[next].date, x[next].start ) + formatTime(' - [time][p1] ET', x[next].finish);					
					break;
				case 2: // 2: tomorrow
					body += '<b>Live Tomorrow</b> <br/>'+ formatDate('[d4] [time][p1]', x[next].date, x[next].start ) + formatTime(' - [time][p1] ET', x[next].finish);
					break;
				case 3: // 3: today
					body += '<b>Watch Live Today</b><br/> '+ formatDate('[time][p1]', x[today].date, x[today].start ) + formatTime(' - [time][p1] ET', x[today].finish);
					break;
				case 4: // 4: live now
					body = '<span>WATCH NOW!</span><br/>&nbsp;<br/><b>LIVE '+ formatDate('[time][p1]', x[today].date, x[today].start ) + formatTime(' - [time][p1] ET</b>', x[today].finish);
					link = "javascript:openLiveAtPlayer('/liveat/r060/tour/');";
					break;
				case 5: // 5: highlights
					body += '<b>Watch Highlights</b><br>'+ formatDate('[d4] [time][p1]', x[next].date, x[next].start ) + formatTime(' - [time][p1] ET', x[next].finish);
					link = "window.open('/liveat/r060/tour/', '1000x640','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=640');";
					break;
				case 6: // 6: tournament done
					body += '<b>Watch Highlights</b>';
					link = "window.open('/liveat/r060/tour/', '1000x640','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=640');";
					break;
			}
			if ($e('tourTTLiveAt')) {
				$e('tourTTLiveAt').innerHTML = '<div class="TTcontent" style="width: 100%" onclick="'+link+'">'+body+'</div>';
				show($e('tourTTLiveAt'));
			}
		}
	}
