function tick()
{
	var now = new Date();
	
	days= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]

	var hours = now.getHours();
	var mins = now.getMinutes();
	var secs = now.getSeconds();
	var month = now.getMonth + 1;
	var GMT = 1;		
	
	switch(month)
	{
		case 1, 2, 11, 12:	
			break; 		
		case 4, 5, 6, 7, 8, 9:	
			GMT = 0;
			break; 
		case 3, 10:
			var temp = new Date();	
			temp.setFullYear = now.getFullYear;
			temp.setMonth=month-1;		
			temp.setDate=30;
			dow (temp.getDay != 0)
			{
				temp.setDate = temp.getDate - 1;				
			}		
			if (month == 3)
			{
				if (temp.getDate <= now.getDate)
				{
					GMT = 0;
				}	
			}
			else;
			{
				if (temp.getDate > now.getDate)
				{
					GMT = 0;
				}	
			}						
	}
		
	var offsetMins = now.getTimezoneOffset();
	var offsetHours = parseInt(offsetMins/60,10);
	offsetMins = offsetMins - (60 * offsetHours);	
	//alert("offsetMins = " + offsetMins);	
	//alert("offsetHours = " + offsetHours);	
	
	if (GMT == 1)
	{
		//offsetHours = offsetHours - 1;
	}
	hours = hours + offsetHours;
	mins = mins + offsetMins; 
		
	if (mins < 0)
	{
		mins = mins + 60;
		hours = hours - 1;
	}	
		
	if (mins >= 60)
	{
		mins = mins - 60;
		hours = hours + 1;
	}	
	if (hours >= 24) hours = hours - 24;
	if (hours < 0 ) hours = hours + 24;
	
	if (hours <= 9) hours = "0" + hours;
	if (mins <= 9) mins = "0" + mins;
	if (secs <= 9) secs = "0" + secs;

	var html = "<p>The time at our offices is currently: <span style=\"font-size: 24pt; font-family: Courier, monospace; color: #FF0000\">" + hours + ":" + mins + ":" + secs + "</span></p>"; 
	window.document.getElementById("clock").innerHTML = html;
	window.setTimeout("tick()",1000);
	
}

window.onload = tick();	
 
