<!--

//======================================================================================
// Set the color of a particular menu item so it is distinguished from the others
function SetThisMenu(menu)
{
	theMenu = document.getElementById(menu);
	theMenu.style.color = '#FCB333';
}

//======================================================================================
// A simple timer to show how long before an event
function countdown_clock(year, month, day, hour, minute)
{
	html_code = '<div id="countdown"></div>';
	document.write(html_code);
	countdown(year, month, day, hour, minute);
}

// Variable for our coutdown timer
var c_t

//
function countdown(year, month, day, hour, minute)
{
	Today = new Date();
	Todays_Year = Today.getFullYear() - 2000;
	Todays_Month = Today.getMonth() + 1;
	
	//Convert both today's date and the target date into miliseconds.
	Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(),
						 Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();
	Target_Date = (new Date(year, month, day, hour, minute, 00)).getTime();
	
	//Find their difference, and convert that into seconds.
	Time_Left = Math.round((Target_Date - Todays_Date) / 1000);
 
 	if (Time_Left > 0) {
		days = Math.floor(Time_Left / (60 * 60 * 24));
		Time_Left %= (60 * 60 * 24);
		hours = Math.floor(Time_Left / (60 * 60));
		Time_Left %= (60 * 60);
		minutes = Math.floor(Time_Left / 60);
		Time_Left %= 60;
		seconds = Time_Left;
		
		if (days == 1) dps = '';
				  else dps='s';
		thecountdown = document.getElementById('countdown');
		thecountdown.innerHTML = 'Countdown to return:<br>' + days + ' day' + dps + ' ';
		thecountdown.innerHTML += hours + 'h' + ':';
		thecountdown.innerHTML += minutes + 'm' + ':';
		thecountdown.innerHTML += seconds + 's';

		// Now add a count of sleeps until the move.
		// Use 6am as the cut-off time for a 'sleep'
//		Target_Date2 = (new Date(8, 8, 31, 6, 0, 0)).getTime();
//		Time_Left2 = Math.round((Target_Date2 - Todays_Date) / 1000);
//		sleeps = Math.floor(Time_Left2 / (60 * 60 * 24)) + 1;
//		if (1 == sleeps) thecountdown.innerHTML += '<br/><span style="color:#77F">That\'s 1 sleep!</span>';
//					else thecountdown.innerHTML += '<br/><span style="color:#77F">That\'s ' + sleeps + ' sleeps!</span>';

		//Recursive call, keeps the clock ticking.
		c_t = setTimeout('countdown(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute + ');', 1000);
	}
	else {
		thecountdown = document.getElementById('countdown');
		thecountdown.innerHTML = ' ';
	}
}

//======================================================================================
// Reload the main page image by refreshing the page every 5 seconds

var ir_t   // Variable for the reload timer

function start_image_rotate()
{
	var ir_t = setTimeout('document.location.reload()', 5000);
}

//======================================================================================
// Clean up the timers for this page
function stop_image_rotate()
{
	var c1 = clearTimeout(c_t);
	var c2 = clearTimeout(ir_t);
}

// -->