/*	file:	scripts.js
	author:	Gideon Stoop
	edit:	28-08-2009 22:47
*/

function ConvertRowsToLinks(xTableId,noLink,withoutLink) {
	if (!noLink) var noLink = false;
	if (!withoutLink) var withoutLink = false;
	var rows = document.getElementById(xTableId).getElementsByTagName("tr");

	for (i=0;i<rows.length;i++) {
		if (rows[i].className.match("nohighlite") == null) {
			var link = rows[i].getElementsByTagName("a");
			if (link.length != 0 || withoutLink == true) {
				if (noLink == false) {
					rows[i].onclick = new Function("document.location.href='" + link[0].href + "'");
				}
				rows[i].onmouseover = new Function("this.className='highlight'");
				rows[i].onmouseout = new Function("this.className=''");
			}
		}
	}
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i < sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" ie_does_hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" ie_does_hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
