/*
	This Javascript file is for Matrix Construction	
	created 14 April, 2003
*/


/*	The following function compensates for the fact 
		that when an anchor it set to display:block, 
		and no height is specified, it breaks the event
		cascade and thus the anchor cannot be clicked.
		IE5 sucks.
*/
function compensateForIe5onWindows() {
	if((navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Mac") == -1) && (parseInt(navigator.appVersion) >= 4)) {
		var n = document.getElementById("nav").getElementsByTagName("a");
		for(var i=0; i<n.length; i++) {
			n[i].onmouseover = function() {
				this.style.cursor="hand";
			}
			n[i].onclick = function() {
				location.href = this.href;
			}
		}
	}
}

function init() {
	compensateForIe5onWindows();
	try {
		compensateForIe5onWindowsAgain();
	} catch(e) {}
	try {
		preloadImages();
	} catch(e) {}
}

window.onload=init;

