// Determine browser
var isMinIE5 = (navigator.appVersion.indexOf("MSIE 5.")) >= 0 ? 1 : 0;
var isDOM = (document.getElementById) ? 1 : 0;


function hoverOn(id, elm) {
	if (isMinIE5||isDOM) {
		// change the cursor
		if (isMinIE5) {
			elm.style.cursor='hand';
		}
			
		// underline the link
		var a = document.getElementById(id);
		if (a != null) {
			window.status=a.href;
			a.style.textDecoration = 'underline';
		}
	}
}


function hoverOff(id, elm) {
	if (isMinIE5||isDOM) {
		// change the cursor
		if (isMinIE5) {
			elm.style.cursor='default';
		}	
		
		// underline the link
		var a = document.getElementById(id);
		if (a != null) {
			window.status='';
			a.style.textDecoration = 'none';
		}
	}
}


function activateLink(id) {
	if (isMinIE5||isDOM) {
		var a = document.getElementById(id);
		if (a != null && a.href)
			location = a.href;
	}
}
