sfHover = function() {
	var sfEls = document.getElementById('nav').getElementsByTagName('LI');
	for (var i = 0; i < sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

function AlternateTable()
{
	var divbody = document.getElementById("verkDetail");
	if (divbody)
	{
		//var tables = divbody.getElementsByTagName("table")
		//for (var i = 0; i < tables.length; i++)
		//{
			var tbodies = divbody.getElementsByTagName("tbody");
			for (var j = 0; j < tbodies.length; j++)
			{
				var trows = tbodies[j].getElementsByTagName("tr");
				for (var k = 0; k < trows.length; k++)
				{
					var myRow = trows[k];
					/*
					alert(myRow.getAttribute('onmouseover'));
					alert(myRow.getAttribute('class'));
					*/
					myRow.setAttribute('onmouseover', "this.className = 'hover'");
					if ((k%2)==1){
						myRow.className = "alternate";
						myRow.setAttribute('onmouseout', "this.className = 'alternate'");
					} else {
						myRow.className = "";
						myRow.setAttribute('onmouseout', "this.className = ''");
					}
					
				}
			
			}
			
		//}
	}
}
