<!--


	var preloaded = new Array(16);
	var images = new Array(16);
	
	images[0] = 'zpimages/group_grey.png';
	images[1] = 'zpimages/grouptl_grey.png';
	images[2] = 'zpimages/grouptr_grey.png';
	images[3] = 'zpimages/groupbl_grey.png';
	images[4] = 'zpimages/groupbr_grey.png';
	images[5] = 'zpimages/group_white.png';
	images[6] = 'zpimages/grouptl_white.png';
	images[7] = 'zpimages/grouptr_white.png';
	images[8] = 'zpimages/groupbl_white.png';
	images[9] = 'zpimages/groupbr_white.png';
	images[10] = 'zpimages/navbgleft.png';
	images[11] = 'zpimages/navbgcentre.png';
	images[12] = 'zpimages/navbgright.png';
	images[13] = 'zpimages/logo.png';
	images[14] = 'zpimages/loading.gif';
	images[15] = 'zpimages/heading.png';

	load_images(images);

window.onload = function () {
	setTimeout("roll()", 10000);
}

var tabs = new Array();
tabs[0] = "tab0";
tabs[1] = "tab1";
tabs[2] = "tab2";
var tabsh = new Array();
tabsh[0] = "tabh0";
tabsh[1] = "tabh1";
tabsh[2] = "tabh2";

var ctab = 0;
var timer = null;
function roll()
{
	var tabCurrent = document.getElementById(tabs[ctab]);
	if(tabCurrent)
	{
		tabCurrent.style.display = 'none';
	}
	var tabhCurrent = document.getElementById(tabsh[ctab]);
	if(tabhCurrent)
	{
		tabhCurrent.style.display = 'block';
	}
	ctab = (ctab >= (tabs.length - 1) ? 0 : (ctab + 1));
	var tabNext    = document.getElementById(tabs[ctab]);
	if(tabNext)
	{
		tabNext.style.display = 'block';
	}
	var tabhNext    = document.getElementById(tabsh[ctab]);
	if(tabhNext)
	{
		tabhNext.style.display = 'none';
	}
	timer = setTimeout("roll()", 10000);
}

function show($i)
{
	clearTimeout(timer);
	var tabCurrent = document.getElementById(tabs[ctab]);
	if(tabCurrent)
	{
		tabCurrent.style.display = 'none';
	}
	var tabhCurrent = document.getElementById(tabsh[ctab]);
	if(tabhCurrent)
	{
		tabhCurrent.style.display = 'block';
	}
	ctab = $i;
	var tabNext    = document.getElementById(tabs[ctab]);
	if(tabNext)
	{
		tabNext.style.display = 'block';
	}
	var tabhNext    = document.getElementById(tabsh[ctab]);
	if(tabhNext)
	{
		tabhNext.style.display = 'none';
	}
	timer = setTimeout("roll()", 10000);
	return (false);
}
	
function load_images(imagearray)
{
	for( i=0; i<imagearray.length; i++ )
	{
		preloaded[i] = new Image()
		preloaded[i].src = imagearray[i]
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	var done = false;
	var httpObject = null;

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	// Get the HTTP Object
	function getHTTPObject()
	{
		if(window.ActiveXObject)
			return new ActiveXObject("Microsoft.XMLHTTP");
		else if(window.XMLHttpRequest)
			return new XMLHttpRequest();
		else
		{
			alert("Your browser does not support AJAX.");
			return null;
		}
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	// Change the value of the outputText field
	function setOutput()
	{
		if(httpObject.readyState == 4)
		{
			//alert(httpObject.responseText);
			cStatus = document.getElementById('archive');
			if(cStatus)
			{
				cStatus.innerHTML = httpObject.responseText;
				done = true;
			}
		}
		if(done == true)
		{
			done = false;
			// setTimeout('LoadStatus()', 60000);
		}
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	// Implement business logic
	function Load(c)
	{
		
		cStatus = document.getElementById('archive');
		cStatus.innerHTML = '<div style="text-align: center;"><img src="zpimages/loading.gif" align="center" /></div>';
		var szDate = '';
		// if(c !== false)
		{
			szDate = ab.year.value + '-' + (ab.month.value < 10 ? '0' + ab.month.value : ab.month.value) + '-' + (ab.day.value < 10 ? '0' + ab.day.value : ab.day.value);
			set('arcy', ab.year.value, 0);
			set('arcm', ab.month.value, 0);
			set('arcd', ab.day.value, 0);
		}
		httpObject = getHTTPObject();
		if(httpObject != null)
		{
			httpObject.open("POST", "scripts/list.php?date=" + szDate, true);
			httpObject.send(null);
			httpObject.onreadystatechange = setOutput;
		}
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	// Implement business logic
	function LoadByYear()
	{
		cStatus = document.getElementById('archive');
		httpObject = getHTTPObject();
		if(httpObject != null)
		{
			httpObject.open("POST", "scripts/list.php", true);
			httpObject.send(null);
			httpObject.onreadystatechange = setOutput;
		}
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	function set(name,value,days)
	{
		if (days)
		{
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	function get(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	function del(name) {
		createCookie(name,"",-1);
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	function setCBItemByValue(id, val)
	{
		if((list = document.getElementById(id)))
		{
			for(x=0; x<list.options.length; x++)
			{
				if(list.options[x].value == val)
				{
					list.selectedIndex = x;
					return;
				}
			}
		}
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	function initialise()
	{
		var d = new Date();
		var year = d.getFullYear();
		var month = (d.getMonth() + 1);
		var day = d.getDate();
		setCBItemByValue('year', (get('arcy') ? get('arcy') : year));
		setCBItemByValue('month', (get('arcm') ? get('arcm') : month));
		setCBItemByValue('day', (get('arcd') ? get('arcd') : day));
		// alert(year + '=' + month + '=' + day + "\n" + get("arcy") + "=" + get("arcm") + "=" + get('arcd'));
		Load(false);
	}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

-->