<!--
	/*
	var broadcast is date all broadcasts are based upon.
	Format is CRITICAL here (example = "Thu, 3 Jan 2002 18:00:00 PST").
	Remember too that the Timezone Offset is important to in order for the countdown to reflect correctly on the users' computer.
	Depending upon the date entered here, you should indicate Standard or Daylight Savings time (example: PST or PDT for the Pacific time zone).
	*/
	var broadcast = new Date("Thu, 7 Dec 2006 17:00:00 PST");
	if (broadcast.getFullYear() < 1970) {
		broadcast.setDate(1);
		broadcast.setMonth(0);
		broadcast.setFullYear(1970);
		broadcast.setHours(0);
		broadcast.setMinutes(0);
		broadcast.setSeconds(0);
	}

	// length of broadcast in miliseconds (negative vaule)
	var broadcastLen = -5400000; // 1.5 hours

	// frequency of broadcast in miliseconds (positive value)
	var broadcastFrq = 604800000;  // one week

	// event is located in a timezone affected by Daylight Savings Time
	var DST          = true;

	// zeroPad hours/minutes/seconds displays (true or false)
	var zeroPad      = false;
	
////////////////////////////////////////////////////////////////////////////////

	// countdown clock initialization
	var timerID      = null;
	var timerRunning = false;

	function startclock() {
		stopclock()
		showCountdown()
	}

	function stopclock() {
		if (timerRunning) clearTimeout(countdownID);
		timerRunning = false;
	}

	function showCountdown() {
		var now  = new Date();
		var toGo = broadcast.getTime() - now.getTime();
		if (DST) {
			broadcastYear    = broadcast.getFullYear();
			nowYear          = now.getFullYear();
			dstStartA        = new Date(FullDate(NthDay(first,sun,apr,broadcastYear),apr,broadcastYear));
			dstStopA         = new Date(FullDate(NthDay(last,sun,oct,broadcastYear),oct,broadcastYear));
			if (broadcast.getTime() >= dstStartA.getTime() && broadcast.getTime() < dstStopA.getTime()) {
				broadcastDST = true;
			} else {
				broadcastDST = false;
			}
			dstStartB        = new Date(FullDate(NthDay(first,sun,apr,nowYear),apr,nowYear));
			dstStopB         = new Date(FullDate(NthDay(last,sun,oct,nowYear),oct,nowYear));
			if (now.getTime() >= dstStartB.getTime() && now.getTime() < dstStopB.getTime()) {
				nowDST       = true;
			} else {
				nowDST       = false;
			}
			if (!broadcastDST && nowDST) {
				// adjust by subtracting one hour...
				toGo         = toGo-3600000;
			} else if (broadcastDST && !nowDST) {
				// adjust by adding one hour...
				toGo         = toGo+3600000;
			} else {
				// no adjustment required...
			}
		}
		while (toGo < broadcastLen) {
			toGo      = toGo + broadcastFrq;
		}
		if (toGo <= 0 && toGo > broadcastLen) {
			line1     = "Live Broadcast";
			line2     = "now in progress.";
		} else {
			var days  = Math.floor(toGo / (1000 * 60 * 60 * 24));
			var hours = Math.floor(toGo / (1000 * 60 * 60))-days*24;
			var mins  = Math.floor(toGo / (1000 * 60))-(days*24*60)-(hours*60);
			var secs  = 60 - now.getSeconds();
			if (secs == 60) {
				secs  = 0;
				mins  = mins+1;
			}
			if (mins == 60) {
				mins  = 0;
				hours = hours+1;
			}
			if (hours == 24) {
				hours  = 0;
				days   = days+1;
			}
			if (zeroPad) {
				if (secs  < 10) {
					secs  = "0" + secs;
				}
				if (mins  < 10) {
					mins  = "0" + mins;
				}
				if (hours < 10) {
					hours = "0" + hours;
				}
			}
			daysLabel	= (days  == 1) ? " day " : " days ";
			hoursLabel	= (hours == 1) ? " hour " : " hours ";
			minsLabel	= (mins  == 1) ? " minute " : " minutes ";
			secsLabel	= (secs  == 1) ? " second" : " seconds";
			line1		= (days  != 0) ? days + daysLabel : null;
			if (line1 != null) {
				line1	= line1 + hours + hoursLabel;
			} else {
				line1	= (hours != 0) ? hours + hoursLabel : null;
			}
			if (line1 != null) {
				line1	= line1 + mins + minsLabel;
			} else {
				line1	= (mins != 0) ? mins + minsLabel : null;
			}
			line1		= line1 + secs + secsLabel;
			line2		= "to the next live broadcast.";
		}
		if (document.all) {
			countdown.innerText								= line1 + "\r\n" + line2;
		} else if (document.getElementById) {
			document.getElementById('countdown').innerHTML	= line1 + "<br>" + line2;
		} else if (document.layers) {
			document.countdown.value						= line1 + "<br>" + line2;
		}
		countdownID		= setTimeout("showCountdown()",1000);
		timerRunning	= true;
	}
	
	function DayOfWeek(day,month,year) {
		var a = Math.floor((14 - month)/12);
		var y = year - a;
		var m = month + 12*a - 2;
		var d = (day + y + Math.floor(y/4) - Math.floor(y/100) +
				 Math.floor(y/400) + Math.floor((31*m)/12)) % 7;
		return d + 1;
	}
	
	function makeArray()    {
		this[0] = makeArray.arguments.length;
		for (i = 0; i<makeArray.arguments.length; i++)
			this[i+1] = makeArray.arguments[i];
	}
	
	var daysofmonth   = new makeArray( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
	var daysofmonthLY = new makeArray( 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
	
	function LeapYear(year) {
		if ((year/4)   != Math.floor(year/4))   return false;
		if ((year/100) != Math.floor(year/100)) return true;
		if ((year/400) != Math.floor(year/400)) return false;
		return true;
	}
	
	function NthDay(nth,weekday,month,year) {
		if (nth > 0) return (nth-1)*7 + 1 + (7 + weekday - DayOfWeek((nth-1)*7 + 1,month,year))%7;
		if (LeapYear(year)) var days = daysofmonthLY[month];
		else                var days = daysofmonth[month];
		return days - (DayOfWeek(days,month,year) - weekday + 7)%7;
	}
	
	var sun=1,mon=2,tue=3,wed=4,thu=5,fri=6,sat=7;
	var jan=1,feb=2,mar=3,apr=4,may=5,jun=6,jul=7,aug=8,sep=9,oct=10,nov=11,dec=12;
	var first=1,second=2,third=3,fourth=4,fifth=5,last=-1;
	
	var daysofweek   = new makeArray('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	var monthsofyear = new makeArray('January','February','March','April','May','June','July','August','September','October','November','December');
	
	function DayOfWeek(day,month,year) {
		var a = Math.floor((14 - month)/12);
		var y = year - a;
		var m = month + 12*a - 2;
		var d = (day + y + Math.floor(y/4) - Math.floor(y/100) + Math.floor(y/400) + Math.floor((31*m)/12)) % 7;
		return d+1;
	}
	
	function Nths(day) { 
		if (day == 1 || day == 21 || day == 31) return 'st';
		if (day == 2 || day == 22) return 'nd';
		if (day == 3 || day == 23) return 'rd';
		return 'th';
	}
	
	function FullDate(day,month,year) {
		return daysofweek[DayOfWeek(day,month,year)] +' '+ day + Nths(day) +' '+ monthsofyear[month] +' '+ year;
	}

//-->
