<!--

/*
DHTML analog clock II (By Erik Arvidsson at http://webfx.eae.net)
Slight modifications to script made by Dynamicdrive.com
Permission granted to Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

//specify clock size in pixels
var clocksize=28

function updatePointers() {
	var now = new Date();
	
	secondsPointer.style.rotation = now.getSeconds() * 6;
	minutesPointer.style.rotation = now.getMinutes() * 6 + now.getSeconds() / 10;
	hoursPointer.style.rotation = now.getHours() * 30  + now.getMinutes() / 2;
}

if (document.all&&window.print){
window.attachEvent("onload", initVMLClock);
window.attachEvent("onresize", resizeObjects);
}

function initVMLClock() {
	resizeObjects();
	updatePointers();
	window.setInterval("updatePointers()", 1000);
	

}

function resizeObjects() {
	var size = Math.min(clocksize, clocksize);
	clock.style.pixelWidth = size - 2*(size * 0.045);
	clock.style.pixelHeight = size - 2*(size * 0.045);
	
	clock.childNodes.item(0).childNodes.item(0).weight = size * 0.01;

	secondsPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.001;
	minutesPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.002;
	hoursPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.004;
	
}

function toggle(sId) {
	var el = document.getElementById(sId);
	
	el.style.display = (el.style.display == "none") ? "block" : "none";
}

//-->