<!--
// Decalre our variables
var timer1 = null;
var timeOut = 5000;     // Delay between switching tabs
var divName = "recent"; // Name of the div's being switched
var current, next;
var tabs = new Array(); // Array of tab ID's
	tabs[0] = 1;
	tabs[1] = 2;
	tabs[2] = 3;
// Start the initial process
function startTabs() {
	current = tabs[0]
	openTab(current);
	window.setTimeout("rotateTabs()",timeOut);
}
// Manual change of tabs (user click)
function switchTab(id) {
	window.clearTimeout(timer1); // Stop the delay timer
	closeTab(current); // Close current tab
	openTab(id); // Open user selected tab
	current = id;
	// Set the delay for auto rotation again
	timer1 = window.setTimeout("rotateTabs()",timeOut*2);
}
// Automatic rotation of tabs
function rotateTabs() {
	// Determine the next tab
	if (tabs[current] == undefined) {
		// No more tabs, go back to start
		next = 1;
	} else {
		// Go to the next tab
		next = tabs[current];
	}
	closeTab(current); // Close the current tab
	openTab(next); // Open the next tab
	current = next;
	// Set a delayed called to repeat this function
	timer1 = window.setTimeout("rotateTabs()",timeOut);
}
function closeTab(id) {
	document.getElementById(divName + id).style.display = "none";
	document.getElementById(divName + id + "Title").style.color = "#d9d9d9";
}
function openTab(id) {
	document.getElementById(divName + id).style.display = "block";
	document.getElementById(divName + id + "Title").style.color = "#999999";
}
startTabs();
-->